Jump to content

djtiger76

Members
  • Posts

    44
  • Joined

  • Last visited

Recent Profile Visitors

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

djtiger76's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Whoops, sorry! phpvms 5.5.2 mysql 5.7.30-cll-lve php 5.6 The exact errors are in my post above: Deprecated: mysql_affected_rows(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/tstamer/public_html/crew/admin/modules/LoA/LoA.php on line 63 Warning: mysql_affected_rows(): Access denied for user ''@'localhost' (using password: NO) in /home/tstamer/public_html/crew/admin/modules/LoA/LoA.php on line 63 Warning: mysql_affected_rows(): A link to the server could not be established in /home/tstamer/public_html/crew/admin/modules/LoA/LoA.php on line 63 The code for /home/tstamer/public_html/crew/admin/modules/LoA/LoA.php is also in my post, with Line 63 noted out.
  2. Hey ProAvia, Here are me and William's errors in admin: Deprecated: mysql_affected_rows(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/tstamer/public_html/crew/admin/modules/LoA/LoA.php on line 63 Warning: mysql_affected_rows(): Access denied for user ''@'localhost' (using password: NO) in /home/tstamer/public_html/crew/admin/modules/LoA/LoA.php on line 63 Warning: mysql_affected_rows(): A link to the server could not be established in /home/tstamer/public_html/crew/admin/modules/LoA/LoA.php on line 63 And here is that file with line 63 noted: Thanks class LoA extends CodonModule { public $title = "Leave of Absence Admin"; public function HTMLHead() { $this->set('sidebar', 'loa/loa_admin_sidebar.php'); } public function NavBar () { echo '<li><a href="'.SITE_URL.'/admin/index.php/LoA">LoA Admin</a></li>'; } public function index () { $version = '1.0'; $leaves = LoAData::GetAllRequests(array()); $this->set('all_leaves', $leaves); $this->render('loa/loa_admin_index.php'); $this->check($version); } public function viewLOA() { $id = $this->get->id; $getinfo = LoAData::GetInfoByID($id); $this->set('info', $getinfo); $this->render('loa/loa_admin_view_request.php'); } public function confirmDeleteLOA() { $id = $this->get->id; $getinfo = LoAData::GetInfoById($id); $this->set('info', $getinfo); $this->render('loa/loa_admin_confirm_delete_request.php'); } public function deleteLOA() { $id = $this->get->id; $getinfo = LoAData::DeleteLoA($id); Line 63-> if (mysql_affected_rows() == -1) { $this->set('message', 'The LoA Reqest hasn\'t been deleted from the database for some reason. This isn\'t suppose to happen. Check the phpVMS forums for support.'); $this->render('loa/loa_admin_delete_request.php'); } else { $this->set('message', 'The LoA Reqest has been successfuly deleted from the database.'); $this->render('loa/loa_admin_delete_request.php'); } } protected function check ($version) { $version_to_check = $version; $url = 'http://www.savamarkovic.com/loa.csv'; $fp = @fopen ($url, 'r') or $message = "The updater checking service is currently offline"; //If the server is unreachable $read = fgetcsv ($fp); fclose ($fp); // Closes the connection if ($read[0] > $version_to_check && $read[2] == "1") { $critical = TRUE; } // If its 1, set ciritcal to true if ($read[0] > $version_to_check) { $update = TRUE; } // Anything other than 1 set update to true if ($read[0] == $version_to_check) { echo '<p id="success">Your version of this module is up to date. Wohooooo! ;))</p>'; }else if ($critical) { echo '<h4>CRITICAL UPDATE FOUND!</h4>'; echo '<p id="error">There is a critical update available! Here is the information associated with the update. <br/><b>Version: '.$read[0].' - '. $read[1].' <br /></b>Please send an email to ceo@airserbiavirtual.com to receive the updated version.</p>'; }else if ($update){ echo '<h4>NON CRITICAL UPDATE FOUND!</h4>'; echo '<p id="error" style="background:#fffca7;border-color:orange">There is NON critical update available! Here is the information associated with the update. <br/><b>Version: '.$read[0].' - '. $read[1].' <br /></b>Please send an email to ceo@airserbiavirtual.com to receive the updated version.</p>'; } } }
  3. Hey guys, Fiiiinally, got my crew center going live! I have a pilot asking about the prefile feature on the SimBrief website (where pilots could prefile their report with VATSIM, IVAO, etc). That option doesn't appear to be available in the template/module. Is that correct or is there a way I can add that to the template? Thanks --edit My IT department figured it out. Looks like just needed to add some additional code on the actual briefing.
  4. Oh, i wasnt aware we couldn't discuss payware. Its not an urgent issue. CrazyCreatives is not active and getting access to their forums is like waiting for Jesus to come back. LOL. You can delete this post if necessary. I have a work around. Thanks
  5. Anyone using this module? How do you clear the forum requirement if your forum is not an external forum? edit- I can do it through SQL, but it should recognize a pilot visited the forum after setting the forum website address in the settings
  6. Hey @Parkho, You have screenshots or error messages you want to share?
  7. Wait.. I don't understand whats happening in this thread anymore. Im just now seeing this. @shakamonkey88 My solution was simple but may not work for everyone. In the schedule_briefing.php file, find the line that says: onclick="simbriefsubmit make sure the web address after onclick="simbriefsubmit, has a www. in the URL. And of course make sure you are using the correct protocol (http or https). Adding 'www' to my web address allowed my SimBrief dispatch to show up in the skin. I hope that helps (sidenote) i thought I already shared this information. @Shadesb181 You solution may be different. Please share what you solution was.
  8. Is your site secure (https)? When i go to https://www.vexvirtual.com/index.php/ it says the site is not secure. Try changing it to http://www.vexvirtual.com/index.php/SimBrief. Otherwise, I am not sure why. This solution worked for me.. surprisingly
  9. Got it. It used to be called "Select PHP Version" or something like that. Anyway, I changed it to 5.6 and the errors went away
  10. mp hosting provider TFDi changed their host. So its been causing me a headache for the past couple days. The ability to change php version is no longer available, and im sure they changed my version to 7.2. I put in a ticket with them.
  11. @ProAvia I have been getting all kinds of PHP 7 errors. My php version is set to 5.6 and running phpvms 5.5.2. I don't know why I am running 7.2.29 per phpinfo or how to change it to what it should be. http://www.test.americanva.org/phpinfo.php @servetas I sent you a ticket for the academy that has an error in the admin panel. Could the be the reason for it?
  12. Another day, another error 😀 Wondering if anyone could assist. I was looking to approve a PIREP in the admin panel and got 2 errors: -Warning: count(): Parameter must be an array or an object that implements Countable in /home/tstamer/public_html/crew/admin/modules/PIREPAdmin/PIREPAdmin.php on line 120 -Warning: Invalid argument supplied for foreach() in /home/tstamer/public_html/crew/admin/modules/PIREPAdmin/PIREPAdmin.php on line 122 0 of 0 were approved (0 has errors) Ive looked around the internet for solutions to fix and while there are several suggestion on how to fix, i swear its like reading a different language! I can't wrap my head around it. phpVMS 5.5.2 - PHP 5.6 Here is that section on the PIREPAdmin.php from admin/modules/: public function approveall() { $this->checkPermission(MODERATE_PIREPS); echo '<h3>Approve All</h3>'; $allpireps = PIREPData::findPIREPS(array('p.accepted' => PIREP_PENDING)); $total = count($allpireps); $count = 0; foreach ($allpireps as $pirep_details) { if ($pirep_details->aircraft == '') { continue; } # Update pilot stats SchedulesData::IncrementFlownCount($pirep_details->code, $pirep_details->flightnum); PIREPData::ChangePIREPStatus($pirep_details->pirepid, PIREP_ACCEPTED); // 1 is accepted #PilotData::UpdatePilotStats($pirep_details->pilotid); #RanksData::CalculateUpdatePilotRank($pirep_details->pilotid); RanksData::CalculatePilotRanks(); #PilotData::GenerateSignature($pirep_details->pilotid); #StatsData::UpdateTotalHours(); CodonEvent::Dispatch('pirep_accepted', 'PIREPAdmin', $pirep_details); $count++; } $skipped = $total - $count; echo "$count of $total were approved ({$skipped} has errors)"; } Thanks
  13. Giving me a parse error: Parse error: syntax error, unexpected end of file in /home/tstamer/public_html/dev/lib/skins/crewcenter/profile_main.php
  14. Hi all. I have a section on the front page of my crew center that gives a snapshot of how many hours are left before the pilot reaches the next rank. The problem... When the pilot maxes out it starts to give a negative number. I would like to add an "if" statement to the following code that says basically, if the hours = < 0, then display "Congratulations<br>You have reached the highest rank." <div class="small-box bg-blue"> <div class="inner"> <h3><?php echo ($nextrank->minhours - $pilot_hours)?> Hours</h3> <p>until promotion to<br> <?php echo $nextrank->rank?>!</p> </div> <div class="icon"> <i class="ion ion-checkmark"></i> </div> </div>
×
×
  • Create New...