Jump to content

Vangelis

Members
  • Posts

    1076
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Vangelis

  1. What kind of id do you pass ? For ex avs001 or 001?
  2. As it looks like a javascript problem cant you do the redirect via php ? <?php header( 'Location: http://www.yoursite.com/new_page.html' ) ; ?>
  3. To be honest i never liked yellow letters also when you switch to english the login box goes off also the tour table and the callendar i dont think that it is nice to be in the front page, if fleet table the corners are upside down, on http://www.virtualiroma.it/newvar/index.php/Airports the table is off to the right, i regolamento you ask for the user to accept the rules but in registration you dont , vatsim online would be nice to have map rather than the tables. Thats what i saw from my view op point wish you luck
  4. Try this code <?php include($_SERVER['DOCUMENT_ROOT'].'test/phpvms/core/codon.config.php'); ?> <html> <div class="column"> <div id="featured"> <h2>Newest Pilots</h2> </div> <div id="featured"> <h2>Recent Forum Posts</h2> <?php /*require_once('forum/config.php'); $link = mysql_connect($dbhost,$dbuser,$dbpasswd); mysql_select_db($dbname, $link); $result = mysql_query("SELECT * FROM `phpbb_posts` ORDER BY `post_id` DESC LIMIT 5", $link); while($r = mysql_fetch_array($result)) { echo "<a href=\"http://www.bluespiritva.co.uk/forum/viewtopic.php?f=7&t=76" . $r['post_id'] . "\">" . $r['post_subject'] . "</a><br />"; }*/ ?> </div> <div id="featured"> <h2>Pilots on Teamspeak</h2> <div id="ts3viewer_1020584" style="width:; background-color:;"> </div> <script type="text/javascript" src="http://static.tsviewer.com/short_expire/js/ts3viewer_loader.js"></script> <script type="text/javascript"> <!-- var ts3v_url_1 = "http://www.tsviewer.com/ts3viewer.php?ID=1020584&text=000000&text_size=12&text_family=1&js=1&text_s_weight=bold&text_s_style=normal&text_s_variant=normal&text_s_decoration=none&text_s_color_h=525284&text_s_weight_h=bold&text_s_style_h=normal&text_s_variant_h=normal&text_s_decoration_h=underline&text_i_weight=normal&text_i_style=normal&text_i_variant=normal&text_i_decoration=none&text_i_color_h=525284&text_i_weight_h=normal&text_i_style_h=normal&text_i_variant_h=normal&text_i_decoration_h=underline&text_c_weight=normal&text_c_style=normal&text_c_variant=normal&text_c_decoration=none&text_c_color_h=525284&text_c_weight_h=normal&text_c_style_h=normal&text_c_variant_h=normal&text_c_decoration_h=underline&text_u_weight=bold&text_u_style=normal&text_u_variant=normal&text_u_decoration=none&text_u_color_h=525284&text_u_weight_h=bold&text_u_style_h=normal&text_u_variant_h=normal&text_u_decoration_h=none"; ts3v_display.init(ts3v_url_1, 1020584, 100); --> </script> </div> <!--------------------------------------------------------> <div align="center"> <table class="qtable" width="200px" style="margin-left:-4px;"> <tbody> <tr> <td style="border-bottom:1px dashed #CDCDCD;"><div align="left"> <strong>Flights Today</strong> </div></td><br /> <td style="border-bottom:1px dashed #CDCDCD;"><div align="center"><span class="label"><?php echo StatsData::totalflightstoday(); ?></span></div></td> </tr> <tr> <td style="border-bottom:1px dashed #CDCDCD;"><div align="left"> <strong>Total Flights</strong> </div></td> <td style="border-bottom:1px dashed #CDCDCD;"><div align="center"><span class="label"><?php echo StatsData::TotalFlights(); ?></span></div></td> </tr> <tr> <td style="border-bottom:1px dashed #CDCDCD;"><div align="left"> <strong>Registrations Status</strong> </div></td> <td style="border-bottom:1px dashed #CDCDCD;"><div align="center"><span class="success label">OPEN</span></div></td> </tr> <tr> <td style="border-bottom:1px dashed #CDCDCD;"><div align="left"> <strong>Total Pilots</strong> </div></td> <td style="border-bottom:1px dashed #CDCDCD;"><div align="center"><span class="label">375</span></div></td> </tr> <tr> <td style="border-bottom:1px dashed #CDCDCD;"><div align="left"> <strong>Total Passengers Carried</strong> </div></td> <td style="border-bottom:1px dashed #CDCDCD;"><div align="left"><span class="label"><?php echo StatsData::TotalPaxCarried (); ?></span></div></td> </tr><tr> <td style="border-bottom:1px dashed #CDCDCD;"><div align="left"> <strong>Total Aircraft</strong> </div></td> <td style="border-bottom:1px dashed #CDCDCD;"><div align="left"><span class="label"><?php echo StatsData::TotalAircraftInFleet () ; ?></span></div></td> </tr> <tr> <td style="border-bottom:1px dashed #CDCDCD;"><div align="left"> <strong>Total Schedules</strong> </div></td> <td style="border-bottom:1px dashed #CDCDCD;"><div align="left"><span class="label"><?php echo StatsData::TotalSchedules (); ?></span></div></td> </tr> <tr> <td style="border-bottom:1px dashed #CDCDCD;"><div align="left"> <strong>Pending Applications</strong> </div></td> <td style="border-bottom:1px dashed #CDCDCD;"><div align="left"><span class="alert label"><?php echo count(PilotData::GetPendingPilots())?></span></div></td> </tr></tbody></table></div> -----------------------------------------------------------> <div class="holder"> <script type="text/javascript" src="http://jk.revolvermaps.com/r.js"></script><script type="text/javascript">rm_f1st('8','200','true','false','000000','afpo5r6m7b8','true','ff0000');</script><noscript><applet codebase="http://rk.revolvermaps.com/j" code="core.RE" width="260" height="260" align="absmiddle" archive="g.jar"><param name="cabbase" value="g.cab" /><param name="r" value="true" /><param name="n" value="false" /><param name="i" value="afpo5r6m7b8" /><param name="m" value="8" /><param name="s" value="200" /><param name="c" value="ff0000" /><param name="v" value="true" /><param name="b" value="000000" /><param name="rfc" value="true" /></applet></noscript> </div> </div> </html> On my setup this seems to be working i have a small doubt about the forum recent posts thats why i commented it out only edit the include($_SERVER['DOCUMENT_ROOT'].'test/phpvms/core/codon.config.php'); to match your setup.
  5. When i was writing the post after that geek squad came and slaped me in the face
  6. If it is localhost he wont be able to use the tool best ways is to go to cpanel or the admin panel of your domain - > phpmyadmin - > import -> load file -> go
  7. Ok my bad. This is the Pirepadmin module in admin section https://github.com/n.../PIREPAdmin.php in line 298 is function approve_pirep_post where if you put side by side the pirepdata.class you will be able to see what is happening For example protected function approve_pirep_post() { $pirepid = $this->post->id; if($pirepid == '') return; $pirep_details = PIREPData::GetReportDetails($pirepid); # See if it's already been accepted if(intval($pirep_details->accepted) == PIREP_ACCEPTED) return; # Update pilot stats SchedulesData::IncrementFlownCount($pirep_details->code, $pirep_details->flightnum); -------------------------------------------------------------------------------------------------------------------------------- public static function IncrementFlownCount($code, $flightnum) /located in schedulesData.class.php { $schedid = intval($schedid); $code = strtoupper($code); $flightnum = strtoupper($flightnum); $sql = 'UPDATE '.TABLE_PREFIX."schedules SET timesflown=timesflown+1 WHERE code='{$code}' AND flightnum='{$flightnum}'"; $res = DB::query($sql); if(DB::errno() != 0) return false; return true; } -------------------------------------------------------------------------------------------------------------------------------- PIREPData::ChangePIREPStatus($pirepid, PIREP_ACCEPTED); // 1 is accepted -------------------------------------------------------------------------------------------------------------------------------- public static function ChangePIREPStatus($pirepid, $status)// located in PIREPData.class.php { return self::editPIREPFields($pirepid, array('accepted' => $status)); } with public static function editPIREPFields($pirepid, $fields) { if(!is_array($fields)) { return false; } $sql = "UPDATE `".TABLE_PREFIX."pireps` SET "; $sql .= DB::build_update($fields); $sql .= ' WHERE `pirepid`='.$pirepid; $res = DB::query($sql); if(DB::errno() != 0) { return false; } return true; } ------------------------------------------------------------------------------------------------------------------------------------------------------------------- PilotData::UpdateFlightData($pirep_details->pilotid, $pirep_details->flighttime, 1); PilotData::UpdatePilotPay($pirep_details->pilotid, $pirep_details->flighttime); RanksData::CalculateUpdatePilotRank($pirep_details->pilotid); PilotData::GenerateSignature($pirep_details->pilotid); StatsData::UpdateTotalHours(); LogData::addLog(Auth::$userinfo->pilotid, 'Approved PIREP #'.$pirepid); # Call the event CodonEvent::Dispatch('pirep_accepted', 'PIREPAdmin', $pirep_details); } end etc In a summary when you click on accept pirep these functions are executed $pirep_details = PIREPData::GetReportDetails($pirepid); # Update pilot stats SchedulesData::IncrementFlownCount($pirep_details->code, $pirep_details->flightnum); PIREPData::ChangePIREPStatus($pirepid, PIREP_ACCEPTED); // 1 is accepted PilotData::UpdateFlightData($pirep_details->pilotid, $pirep_details->flighttime, 1); PilotData::UpdatePilotPay($pirep_details->pilotid, $pirep_details->flighttime); RanksData::CalculateUpdatePilotRank($pirep_details->pilotid); PilotData::GenerateSignature($pirep_details->pilotid); StatsData::UpdateTotalHours(); LogData::addLog(Auth::$userinfo->pilotid, 'Approved PIREP #'.$pirepid); # Call the event CodonEvent::Dispatch('pirep_accepted', 'PIREPAdmin', $pirep_details); I hope i have solved your questions if not here we are if you want tomorrow i can make a post with the sql queries only
  8. I dont know what you want to do but, when you or your acars software send a pirep then a function with the name filepirep is executed This function is located in PIREPData.class https://github.com/nshahzad/phpVMS/blob/master/core/common/PIREPData.class.php And starts from line 547 till line 837 the sql statement is located in line 748
  9. New Version is up Curent Version of APVacars is 1.0.0.4 Curent module version is 1.0.0.3 Admins do not forget to update the module asswell Source Code can be founded on GitHub https://github.com/vangelisb/APVacars PHPvms Module https://github.com/v...s_PHPvms_Module And APVacars client can be downloaded from http://www.baggelis.com/APVacars.zip Bug that let you get the bid without password authentication fixed Bug with progress bar gave an error when distance is 0 fixed Bug with flight status in acarsmap when you started a new flight fixed If you have any problem's or you find a bug please let me know Happy flying
  10. Are you the site owner ? if not you have to make sure that the site owner or admin has uploaded the module or you username or password might be wrong Also you have to bid on a flight before you click on get flight
  11. In settings you have to type in full url http://www.yoursite.com
  12. I will have a look at it and fix it asap
  13. I will have a look at it and fix it asap
  14. You need to update the module download it from github and replace the one that you have now
  15. New Version is up Curent Version of APVacars is 1.0.0.3 and module version is 1.0.0.2 Admins do not forget to update the module asswell Source Code can be founded on GitHub https://github.com/vangelisb/APVacars PHPvms Module https://github.com/v...s_PHPvms_Module And APVacars client can be downloaded from http://www.baggelis.com/APVacars.zip Bug that didnt updated the distance in AcarsMap fixed New feature added progressbar see Screen shot If you have any problem's or you find a bug please let me know Happy flying
  16. JIT compiler is a part of (re-distributed) .NET Framework, Can you please tell us with framework you have installed ? APVacars needs Framework 4 do be installed also this messages come's also from a corrupted Framewrok that is installed on your system Try this 1.Download http://blogs.msdn.co...p_5F00_tool.zip 2. Run Cleanup_tool.exe 3.Clik on Cleanup Now (It will take a while) 4. Download and run http://www.microsoft...s.aspx?id=17851 And the you will be ready to install.
  17. you will keep the codon.config in the parent folder and on your static page you will have to include it and then you will be able to utilisize all the functions of phpvms, Or you could just do what you did with fsairliners put everything in the static page in an iframe Have a look at this thread http://forum.phpvms.net/topic/3686-implenting-codonconfigphp-in-a-standalone-php-page/ and this http://forum.phpvms.net/topic/3394-external-pilot-centre/page__p__23466__hl__%22include%22__fromsearch__1#entry23466 it will help you somehow if you have any questions do not hesitate to post them
  18. What kind of a website is it ? because i am not at home i am not sure but i think you have to include codon.config in your website and then use those codes that in this post
  19. Nice that i helped you. What was it btw ? because i didnt do anything
  20. i resended an email back that i am not able to download the database as you have it private on mediashare your template with mine setup is working fine and i only corrected the sum of the pilots and sended back the template. also Parkho's is working asswel Please check your email or else tell me to send it again.
  21. New version is up Curent Version 1.0.0.2 No need for module update. Features added Now sim rate is recorded in flightlog Now pause status is recorded in flightlog When the flight is paused flghttime stops counting when you resus he flight the flighttime starts again to count Source Code can be founded on GitHub https://github.com/vangelisb/APVacars PHPvms Module https://github.com/v...s_PHPvms_Module And APVacars client can be downloaded from http://www.baggelis.com/APVacars.zip
  22. clear cookies temp and provide a link so that we can look on what you are talking about
  23. New Version is up Curent Version of APVacars is 1.0.0.1 beta Admins do not forget to update the module asswell Source Code can be founded on GitHub https://github.com/vangelisb/APVacars PHPvms Module https://github.com/v...s_PHPvms_Module And APVacars client can be downloaded from http://www.baggelis.com/APVacars.zip 1 -Fixed FsPassengerX support up 7 characters in flight number. APVA only show 6. 2 -Already done so the info is in Flight Information select the actual aircraft from DB or similar. 3 -Fixed the log not regist the true airplane used, if the VA have prohibited fly 100nm with a 747, the admins can't check this. 4.a -Fixed when you have landed and after put parking brake your status change to boarding, not to arrived or similar. 4.b -Fixed when you stay in ground and put off parking brakes your status change to landed, not taxi to runway or similar. now when you have landed and you are without brakes status will be taxiing to gate now when you have landed and you are witht brakes status will be ofloading passengers 5 -Fixed the status word "desending" is wrong, may be "descending". 6-Fixed When you are "approaching" the status show "departing". now status is approaching 7- if you use the default client and there is a new version you will get a message on program startup 8- Landing rate is now registering as it should in pirep table People that have changed the design and do not want to do it all over again just open both projects and copy paste the code in each form without altering the design if you have any questions feel free to ask. also for people that do not know VB.2010 this is a verry nice tutorial http://www.homeandlearn.co.uk/net/vbNet.html If i did it you can do it asswel I would like to thank the people that are trying the software and reporting back their findings. and again if you find anything or you think that something is missing let me know . Happy flying
  24. Yes i did the connect and disconect are now working as they should
  25. ok found it. or i was blind when i was looking for it or tired
×
×
  • Create New...