Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


servetas last won the day on March 29 2020

servetas had the most liked content!

About servetas

Profile Information

  • Gender
  • Location
    Athens, Greece

Contact Methods

  • Skype

Recent Profile Visitors

26359 profile views

servetas's Achievements


Newbie (1/14)

  • One Month Later
  • One Year In Rare
  • Week One Done

Recent Badges



  1. That means that the function you added already exists and there is no reason to add it. What are you whilling to do?
  2. Yes, the error is shown because there is not a closing bracket before the new function ("public static function.........") statement. Did you randomly past it into the file? The previous function should close using a bracket "}" without the "" before you start declaring a new one.
  3. Where did you did you find this part. of code? Remove the following part from the above statement and it should be working correctly: public static function get_stats_by_cur_month($howmany) What are you trying to do?
  4. Maybe the aircraft table of your database is currepted or there is an issue the primary/foreign keys. Would you like to pm me your cpanel/phpvms details to check it out for you? As soon as I check it, I will post the solution so the community is aware of the issue and the resolution of it.
  5. Feel's like you are passing the pirepid or even the pilotid when we are talking about pilot's management through the url (get request) and not through a post request. Because of that, the pirepid is not parsed correctly. There should be something wrong with your javascript running on the admin center.
  6. What's on line 337 on your PIREPData.class.php file? Share with us line 337 plus a few lines before and after to understand what it is trying to parse.
  7. Have you tried getting in touch with your web hosting provider?
  8. I do not know what cause the issue. Are you hosted on a shared hosting environment or is it on a private server (vps or dedicated)? Initially, I would try to do a database table optimization and repair through my phpmyadmin.
  9. I am pretty sure that the issue has to do with the days of week. Can you get into your phpmyadmin and run the following query: UPDATE phpvms_schedules SET daysofweek='0123456', week1='0123456', week2='0123456', week3='0123456', week4='0123456'; Don't forget to replace "phpvms_" with your database table prefix if you are using a different one. Let us know if it worked.
  10. Also make sure that you have removed from all the Pilot Groups. You can also change his email to an email under your control and his password too. This way he won't be able to reset his password using his email.
  11. Open your core/ScreenshotsData.class.php file and find this: public static function get_comments($ss_id) { $query = "SELECT * FROM ".TABLE_PREFIX."screenshots_comments WHERE ss_id='$ss_id'"; return DB::get_results($query); } add the following after the closing bracket of the above statement: public static function getLatestComment($ss_id) { $sql = "SELECT * FROM ".TABLE_PREFIX."screenshots_comments WHERE ss_id='$ss_id' ORDER BY ss_id DESC LIMIT 1"; return DB::get_row($sql); } Then, within your code replace: $comment = ScreenshotsData::get_comments($ss_id); with this: $comment = ScreenshotsData::getLatestComment($ss_id); Let us know if it worked for you.
  12. Have you tried getting in touch with the developer of the module beforehand?
  13. Yeah, you should be able to do that. Open your core/modules/Screenshots/Screenshots.php file and find the following statement: ScreenshotsData::send_message($who_to, $who_from, $subject, $message); There should be two of these statements in the above mentioned file. One of them is within the "approve_screenshot" function and the second one is within the "reject_screenshot" function. Below the above mentioned statement you can add the following: $pilotdata = PilotData::getPilotData($who_to); $subject = "Screenshot Approved or Rejected"; $message = "Congratulations, you screenshot has been approved. etc"; Util::SendEmail($pilotdata->email, $subject, $message); You can update any of the above variables (subject or message) to send the right message for "reject_screenshot" too. You can also comment out the statement that exists to send the airmail to the pilot like this: //ScreenshotsData::send_message($who_to, $who_from, $subject, $message);
  14. Unfortunately no, the ranks can be either auto or manual. Alternatively, you will have to edit the core of the phpVMS. If you at least have some basic knowledge of coding you can give it a try. Do not forget to keep backup of every file before you edit it! You will have to bypass your staff members from the auto ranks calculation function of your phpVMS system. This means that first of all, you will have to enable the rank editing option on the admin side for your staff members and stop the auto rank recalculation. Step 1 Open your admin/templates/pilot_details.php and find the following: if(Config::Get('RANKS_AUTOCALCULATE') == false) { replace it with this: if(Config::Get('RANKS_AUTOCALCULATE') == false || $pilotinfo->pilotid == X || $pilotinfo->pilotid == X) { Step 2 After that, open your admin/modules/PilotAdmin/PilotAdmin.php and find the following: if (Config::Get('RANKS_AUTOCALCULATE') == false) { replace it with this: if (Config::Get('RANKS_AUTOCALCULATE') == false || $this->post->pilotid == X || $this->post->pilotid == X) { Step 3 Then, open your core/common/RanksData.class.php file and find the following: foreach ($pilots as $pilot) { below this line, add the following statement: if($pilot->pilotid == X || $pilot->pilotid == X) continue; In both of the pasted snippets, you will have to replace X with the pilot id which is just a number (for example: 1 or 5 or 11), do not confuse it with your pilot code and you can add ad many "|| $pilotinfo->pilotid == X" or "|| $this->post->pilotid == X" or "|| $pilot->pilotid == X" as you want based on the statements above. Give me an example what would you write if you wanted to bypass four different pilots. In any case, let us know if it worked for you.
  • Create New...