Jump to content

Ashj24uk

Members
  • Posts

    62
  • Joined

  • Last visited

Everything posted by Ashj24uk

  1. sorry still getting the first error its strange 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 9
  2. i just tried the new one and got #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO `phpvms_autopirep` (`id`, `criteria_description`, `created_by`, `ena' at line 12
  3. when i try to add the sql i get this error 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM AUTO_INCREMENT=38' at line 9 any ideas what could be wrong?
  4. Hi I seem to have a issue with some flights not displaying on my website but they are showing on my custom kacars tracker any idea what the issue could be?
  5. Hi i seem to be getting this error Warning: session_start() [function.session-start]: open(/tmp/sess_ea8b806aa40790709680c4934be57f08, O_RDWR) failed: Permission denied (13) in /home/jetvcom/public_html/en/core/codon.config.php on line 40 any ideas what the problem is?
  6. HI Fernando Im interested in buying the point system module you have shown on this forum If you could pm me or something
  7. HI Reachva Hi i was wondering if you could make a tui russia livery for me here is a picture http://www.planespotters.net/Aviation_Photos/photo.show?id=411380 http://www.planespotters.net/Aviation_Photos/photo.show?id=384666 if you could give me a price i would like it for aerosoft airbus x extended one for the A320 and one for the A320 how much would it cost? regards Ashley
  8. This is great Just wondering how you can implement it into the templeates
  9. Thanks dave i will give that a try with the plugin manager
  10. Hi guys I have a problem with adding modules I follow the instructions to add the modules correct along with the sql but for some reason it comes up with an error saying the /public_html/en/core/templates/credits index.tpl doesnt exsist so when i look in filezilla it has that file as a php file so i change it to a tpl file and it works but in my admin centre where i can add edit and stuff for the module i just get this error credits/sidebar_credits.php and i can seem to fix it i have attached a screenshot aswell
  11. thanks for that dave Jet2 was attacked aswell
  12. I know you do not know when the data feeds are back up i have check when i put this post up and they were back online but as i stated the vatsim data file is still not being created
  13. Hi sim pilot the data feeds links in the vatsim.php but for some reason its still not creating the new vatsim file in the root of my install have you got any ideas what could be wrong?
  14. here you sava <?php /** * Leave of Absence (LoA) v.1.0 Module * * phpVMS Module for pilots to submit a LoA request that is stored in a database * and an option for staff to view all the LoA requests through the admin panel * This module is released under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License * You are free to redistribute and alter this work as you wish but you must keep the original 'copyright' information on all the places it comes in the original work. * You are not allowed to delete the copyright information and/or gain any profit by adopting or using this module. * * @author Sava Markovic - savamarkovic.com * @copyright Copyright © 2013, Sava Markovic * @link http://www.savamarkovic.com * @license http://creativecommons.org/licenses/by-nc-sa/3.0/ */ class LoA extends CodonModule { public $title = "Leave of Absence Request"; public function index () { if (!Auth::LoggedIn()) { $this->set('message', 'You are not logged in.'); $this->render('core_error.tpl'); } else { $this->render('loa/loa_index.tpl'); } } public function submit() { date_default_timezone_set('UTC'); $date_now = time(); $date_ref = strtotime($this->post->day.'-'.$this->post->month.'-'.$this->post->year); $days = ($date_ref - $date_now)/(60*60*24); if ($days > 61 || $days < 0) { $this->set('error_lenght', 'The requested leave duration exceeds our policy.'); $this->render('loa/loa_error.tpl'); $this->render('loa/loa_index.tpl'); } else { if ($this->post->reason == '') //check if the LoA reason field is empty or not, if empty -> { $this->set('error_reason', 'You haven\'t specified a reason for your leaeve of absence.'); $this->render('loa/loa_error.tpl'); $this->render('loa/loa_index.tpl'); } else { $data = array('pilotid' => Auth::$userinfo->pilotid, 'start' => $date_now, 'end' => $date_ref, 'reason' => $this->post->reason); $pilotid_check = LoAData::CheckPilotID($data['pilotid']); if ($pilotid_check > 0) { $this->set('error_id', 'There is already a LoA request with your Pilot ID.'); $this->render('loa/loa_error.tpl'); $this->render('loa/loa_index.tpl'); } else { LoAData::AddLoA($data); $this->sendmail($data); $this->render('loa/loa_submitted.tpl'); } } } } protected function sendmail($data) { //send mail to admin $email_admin = ADMIN_EMAIL; $subject_admin = SITE_NAME . ' LoA Request Submitted'; $message_admin = "Dear admin, a user has sent a LoA Requst. Check the details below. To edit the LoA request, go to your admin panel. <br> Here are the details of your request: <br> Pilot ID: {$data['pilotid']} <br> Start Date: ".date( DATE_FORMAT, $data['start'])."<br /> End Date: ".date(DATE_FORMAT,$data['end'])." <br /> Reason: {$data['reason']}<br> Thank you for submitting the request."; Util::SendEmail($email_admin, $subject_admin, $message_admin); //send mail to pilot $subject = SITE_NAME . ' Leave of Absence Confirmation'; $email = Auth::$userinfo->email; $message = "Your leave of absence request has been submitted and processed by our system. <br> Here are the details of your request: <br> Pilot ID: {$data['pilotid']} <br> Start Date: ".date( DATE_FORMAT, $data['start'])."<br /> End Date: ".date(DATE_FORMAT,$data['end'])." <br /> Reason: {$data['reason']}<br> Thank you for submitting the request."; Util::SendEmail($email, $subject, $message); } }
  15. Hi guy I have recently added the Leave of absence module now in this module in the pilot center it wont let you enter a start date so after a bit of tinkering i manged to get it to let me choose a start date for my leave of absence as a drop down box now the thing is in the admin center it still shows today date as the start of my leave of absence even tho in the pilot center i choose a different date now how do i get it to display the start date correctly in the admin center il post some screen shots too
  16. hi guys i keep getting this error Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Operations' does not have a method 'aircraft' in /home/jetvcom/public_html/en/core/classes/MainController.class.php on line 218 when i go to look at my fleet any ideas what could be causeing this?
  17. Hi guys i have a downloaded and installed the build but i get this error come up An Error Was Encountered The module "VIEWCHARTS" doesn't exist! any ideas whats up? Its ok i fixed i realise what i was doing wrong
  18. It a great mod but seriously its too much to try and find all the stats for all the aircraft
  19. hi thier i keep getting an error saying modual doesn't exists when i click on the link whats up with that?
  20. How is thier aircraft manager comeing along it looks awesome when can we get our hand on it?
×
×
  • Create New...