Jump to content

Chriger

Members
  • Posts

    12
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Chriger's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Solution: In the codon.config.php file located in /core, edit lines 45-47. Old define('DS', DIRECTORY_SEPARATOR); define('SITE_ROOT', str_replace('core', '', dirname(__FILE__))); define('CORE_PATH', dirname(__FILE__) ); Replace: (If you have it in a directory folder, www.airline.com/airline). Edit --> '/Add your directory name here' and make it '/airline/' or whatever your directory is called. define('DS', DIRECTORY_SEPARATOR); define('SITE_ROOT', $_SERVER['DOCUMENT_ROOT'] . '/Add your directory name here/' ); define('CORE_PATH', dirname(__FILE__) ); Replace: (If you have it in your main www(public_html) directory. define('DS', DIRECTORY_SEPARATOR); define('SITE_ROOT', $_SERVER['DOCUMENT_ROOT'] . '' ); define('CORE_PATH', dirname(__FILE__) ); This should solve any issues with having the word "core" in your URL, directory name, or cpanel account name.
  2. Fixed it! I'll write up the solution tomorrow, but it has to do with the codon.config file we are both talking about at the end...
  3. Capture 1 - Fresh Install - Coreyandrews.ca/flight/phpvms Capture 2 - Fresh Install - Coreyandrews.ca/flight/phpvms/install/checkinstall.php Capture 3 - Installing Capture 4 - After Install - Coreyandrews.ca/flight/phpvms Capture 5 - Directory Layout P.S. Sorry I accidently deleted my old setup, I totally misread your comment! Oops... Edit: At the end of the day, I still really think that because my cpanel account for hosting: coreyand, it will continue to remove "core", and then it probably screws up the installation somewhere. I just don't know, because I'm not well versed with how this whole platform was made. As you can see, the URLs after a fresh install are wrong again. But the URL is correct in the local.config.php file.
  4. I relocated the folder inside the Public_HTML, new location is http://coreyandrews.ca/flight. Listed in local.config.php define('SITE_URL', 'http://coreyandrews.ca/flight'); All of files and folders, admin, core, lib, +files are located in /flight... So /flight/admin or /flight/core... Error message remains... :/
  5. I've added new details above, comments took a while to be approved... Let me know if you have any thoughts...
  6. Quick question, Do you know where the script pulls the Airline and Flight Number? Every time I click "Click to Generate" it puts a random flight number, that 1. Isn't in my aircraft database, or listed anyone on my site. So I'm not sure how to fix that. Example: Airline = LXA Flight Number = LXA57 on Brief Page. After clicking Generate, Flight Number = N320SB. Edit: So I figured out it's pulling the registration number of the aircraft from the SimBrief database. Is there any way to transmit our airline and flight number, in order for it to show up like that on generated pilot brief under flight number? Solution: Fixed by adding this code before the submit button. <input type="hidden" name="airline" value="<?php echo $schedule->code?>"> <input type="hidden" name="fltnum" value="<?php echo $schedule->flightnum?>"> <input type="hidden" name="reg" value="<?php echo $schedule->registration?>">
  7. Hey, Quick question: I'm trying to style my map, but every time I insert this code, it doesn't work. Am I missing something? <script type="text/javascript"> <?php /* These are the settings for the Google map. You can see the Google API reference if you want to add more options. There's two options I've added: autozoom: This will automatically center in on/zoom so all your current flights are visible. If false, then the zoom and center you specify will be used instead refreshTime: Time, in seconds * 1000 to refresh the map. The default is 10000 (10 seconds) */ ?> var acars_map_defaults = { autozoom: true, zoom: 4, center: new google.maps.LatLng("<?php echo Config::Get('MAP_CENTER_LAT'); ?>", "<?php echo Config::Get('MAP_CENTER_LNG'); ?>"), mapTypeId: google.maps.MapTypeId.TERRAIN, refreshTime: 5000 styles: [ { "featureType": "all", "elementType": "labels.text.fill", "stylers": [ { "color": "#ffffff" } ] }, { "featureType": "all", "elementType": "labels.text.stroke", "stylers": [ { "color": "#000000" }, { "lightness": 13 } ] }, { "featureType": "administrative", "elementType": "geometry.fill", "stylers": [ { "color": "#000000" } ] }, { "featureType": "administrative", "elementType": "geometry.stroke", "stylers": [ { "color": "#144b53" }, { "lightness": 14 }, { "weight": 1.4 } ] }, { "featureType": "administrative.locality", "elementType": "all", "stylers": [ { "visibility": "on" } ] }, { "featureType": "administrative.locality", "elementType": "labels.icon", "stylers": [ { "visibility": "on" } ] }, { "featureType": "landscape", "elementType": "all", "stylers": [ { "color": "#08304b" } ] }, { "featureType": "poi", "elementType": "geometry", "stylers": [ { "color": "#0c4152" }, { "lightness": 5 } ] }, { "featureType": "road.highway", "elementType": "geometry.fill", "stylers": [ { "color": "#000000" } ] }, { "featureType": "road.highway", "elementType": "geometry.stroke", "stylers": [ { "color": "#0b434f" }, { "lightness": 25 } ] }, { "featureType": "road.arterial", "elementType": "geometry.fill", "stylers": [ { "color": "#000000" } ] }, { "featureType": "road.arterial", "elementType": "geometry.stroke", "stylers": [ { "color": "#0b3d51" }, { "lightness": 16 } ] }, { "featureType": "road.local", "elementType": "geometry", "stylers": [ { "color": "#000000" } ] }, { "featureType": "transit", "elementType": "all", "stylers": [ { "color": "#146474" } ] }, { "featureType": "water", "elementType": "all", "stylers": [ { "color": "#021019" } ] } ] }; </script>
  8. phpvms_5.5.x\core\codeon.config removes part of my directory name /home/"core"yand/... and makes it /home/yand/... define('DS', DIRECTORY_SEPARATOR); define('SITE_ROOT', str_replace('core', '', dirname(__FILE__))); define('CORE_PATH', dirname(__FILE__) ); So I am not sure if there is a fix, or if this is the first time this issue has arisen. There is also core in the SQL name as well. I have tried installing this on the exact same server, but with a different cpanel account/different domain, and had no problems. So I'm assuming this has to do with my cpanel account name.
  9. Solution: Don't have "Core" in your username or as a directory name. Otherwise everything gets messed up! Somewhere in the script, it renames/removes "Core" thus not allowing me to run this correctly. Just my odds that my firstname is Corey...
  10. Ok, So the admin panel also gives me an incorrect URL. "/home/yand/flight/ " The correct directory is /home/coreyand/flight not yand. Where does it pull the URL so I can corrrect it?
  11. Sure, URL is http://flight.coreyandrews.ca My concern is " /home/yand/flight//lib/skins/crystal/header.php " isnt a valid directory, and I don't know where the website is pulling this URL from. Also, I dont know if the double // has any impact either. But again, I dont know where it pulls this URL, so I can't even correct it, if thats the issue.
  12. Good Afternoon Everyone, I'm trying to install phpVMS 5.5.2 on my website, which is currently running PHP version 5.6. I have run the PHP Checker: Install Check phpVMS Build Number: simpilot 5.5.2 Checking PHP version[OK] PHP version is 5.6.29.xASP Tags[OK] ASP-style tags are disabledChecking connectivity...[OK] Can contact outside serversChecking for SimpleXML module...[OK] SimpleXML module exists! When I go to the default directory, it returns this: Notice: The template file "/home/yand/public_html/flight//lib/skins/crystal/header.php" doesn't exist in /home/coreyand/public_html/flight/core/classes/TemplateSet.class.php on line 231 Welcome to phpVMS! Posted by phpVMS Installer on 01/14/2017 Thanks for installing and using phpVMS! Check out the docs for help and information on getting started on your VA. This is just a starter skin - customize yours completely. This is just a basic, barebones example of what a skin is and how it works. Check out the crystal folder in the lib/skins directory. Make your own copy and fiddle around. For help, check out the forum, and skinning docs. Also, be sure to check out the skinning tutorials for a quick primer. The forums are also filled with plenty of helpful people for any questions you may have. Good luck! Activity Feed LXA0001 has just joined, welcome aboard! View Profile Recent Reports No reports have been filed Newest Pilots LXA0001 Users Online There have been 0 user(s), and 0 guest(s) online in the past 20 minutes. Notice: The template file "/home/yand/public_html/flight//lib/skins/crystal/footer.php" doesn't exist in /home/coreyand/public_html/flight/core/classes/TemplateSet.class.php on line 231 Going to /admin returns this: Warning: opendir(/home/yand/public_htl/flight//admin/modules): failed to open dir: No such file or directory in /home/coreyand/public_html/flight/core/classes/MainController.class.php on line 68Warning: readdir() expects parameter 1 to be resource, boolean given in /home/coreyand/public_html/flight/core/classes/MainController.class.php on line 70Warning: readdir() expects parameter 1 to be resource, boolean given in /home/coreyand/public_html/flight/core/classes/MainController.class.php on line 70Warning: readdir() expects parameter 1 to be resource, boolean given in /home/coreyand/public_html/flight/core/classes/MainController.class.php on line 70 I have tried googling at least 10 other support threads or websites, with no results in solving to fix this. Does anyone here have any suggestions? I have attempted reinstalling this 5-6 times now.
×
×
  • Create New...