Jump to content

VIELMA16

Members
  • Posts

    46
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by VIELMA16

  1. Hello everyone! I accidentally deleted the download database. I would like, please, can you share with me the file (.sql) to create the download database again. Thank you.
  2. Hello, I would like to know a code with which the network in which a pilot has flown or is flying online can be detected (IVAO / VATSIM or OFFLINE). In my airline, taking into account the current regulations, pilots who do not fly ONLINE in IVAO or VATSIM their flights are rejected. We use smartCARS but I have detected that even if they select fly "ONLINE IN IVAO", for example, they are not flying in IVAO and I want to prevent that. I really appreciate the help! Best Regards, JULIO
  3. Oh I'm sorry! You are using phpVMS (v7) and in that case it couldn't help. The information I gave you was for previous versions (phpVMS 5.5.X). I don't use phpVMS v7. Best Regards.
  4. Hi Nickcko, Yes, it is possible from the administration panel. Hope this is the easiest way to explain that: Pilots & Groups - View All pilots - (You select the pilot) - At the top of the new window (Pilot Awards) - And finally in (Give Award) you select the award and assign it. Remember to have the awards in the database before (added). Best Regards. JULIO
  5. Hello everyone! It is a great pleasure to announce that SRILANKAN VIRTUAL AIRLINES has started operations. The airline was recently created, the hiring of new pilots and corporate staff members is open. If you want to be part of my team, contact me: ceo@srilankanva.com or visit our website: https://www.srilankanva.com At Srilankan we can offer you: -Real world airline schedules, updated, added and removed according to schedule changes. With integrated simbrief to easily generate the flight plan. -Customized tracking system (smartCARS) that facilitates the reporting of flights in real time. With realistic voices and sounds for all planes in the virtual airline fleet. -Join our friendly community where you can get prizes, ranks, earn money and redeem it for real money (Paypal) with our SRILANKAN CLUB and more. Best Regards, J.R.V.C.
  6. How do I get that? precisely that is another problem. I don't know what encoding to use or where to put it correctly. Thank you Strider!
  7. This is the map inside phpvms: https://ibb.co/dKhvqmf
  8. Yes, within phpVMS the online flight map works flawlessly. There if the online traffic is shown. The problem I have is in the page outside the phpvms installation where I want to make it visible.
  9. Do not worry! No, it is not a payware CC module. I simply wanted to create on the website (external to phpVMS) a page with the online flights. But I ran into that problem. This is my acarsmap.php code: <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> <?php /** * These are some options for the ACARS map, you can change here * * By default, the zoom level and center are ignored, and the map * will try to fit the all the flights in. If you want to manually set * the zoom level and center, set "autozoom" to false. */ ?> <div id="acarsmap" style="width: 100%; height: 500px; position: relative; overflow: hidden;"></div> <script src="<?php echo SITE_URL?>/lib/js/base_map.js"></script> <script src="<?php echo SITE_URL?>/lib/js/acarsmap.js"></script> <?php /* This is the template which is used in the table above, for each row. Be careful modifying it. You can simply add/remove columns, combine columns too. Keep each "section" (<%=...%>) intact Variables you can use (what they are is pretty obvious) Variable: Notes: <%=flight.pilotid%> <%=flight.firstname%> <%=flight.lastname%> <%=flight.pilotname%> First and last combined <%=flight.flightnum%> <%=flight.depapt%> Gives the airport name <%=flight.depicao%> <%=flight.arrapt%> Gives the airport name <%=flight.arricao%> <%=flight.phasedetail%> <%=flight.heading%> <%=flight.alt%> <%=flight.gs%> <%=flight.disremaining%> <%=flight.timeremaning%> <%=flight.aircraft%> Gives the registration <%=flight.aircraftname%> Gives the full name <%=flight.client%> FSACARS/Xacars/FSFK, etc <%=flight.trclass%> "even" or "odd" You can also use logic in the templating, if you so choose: http://ejohn.org/blog/javascript-micro-templating/ */ ?> <script type="text/html" id="acars_map_row"> <tr class="<%=flight.trclass%>"> <td><a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotid%> - <%=flight.pilotname%></a></td> <td><%=flight.flightnum%></td> <td><%=flight.depicao%></td> <td><%=flight.arricao%></td> <td><%=flight.phasedetail%></td> <td><%=flight.alt%></td> <td><%=flight.gs%></td> <td><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%></td> </tr> </script> <?php /* This is the template for the little map bubble which pops up when you click on a flight Same principle as above, keep the <%=...%> tags intact. The same variables are available to use here as are available above. */ ?> <script type="text/html" id="acars_map_bubble"> <span style="font-size: 10px; text-align:left; width: 100%" align="left"> <a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotid%> - <%=flight.pilotname%></a><br /> <strong>Flight <%=flight.flightnum%></strong> (<%=flight.depicao%> to <%=flight.arricao%>)<br /> <strong>Status: </strong><%=flight.phasedetail%><br /> <strong>Dist/Time Remain: </strong><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%><br /> </span> </script> <?php /* This is a small template for information about a navpoint popup Variables available: <%=nav.title%> <%=nav.name%> <%=nav.freq%> <%=nav.lat%> <%=nav.lng%> <%=nav.type%> 2=NDB 3=VOR 4=DME 5=FIX 6=TRACK */ ?> <script type="text/html" id="navpoint_bubble"> <span style="font-size: 10px; text-align:left; width: 100%" align="left"> <strong>Name: </strong><%=nav.title%> (<%=nav.name%>)<br /> <strong>Type: </strong> <?php /* Show the type of point */ ?> <% if(nav.type == 2) { %> NDB <% } %> <% if(nav.type == 3) { %> VOR <% } %> <% if(nav.type == 4) { %> DME <% } %> <% if(nav.type == 5) { %> FIX <% } %> <% if(nav.type == 6) { %> TRACK <% } %> <br /> <?php /* Only show frequency if it's not a 0*/ ?> <% if(nav.freq != 0) { %> <strong>Frequency: </strong><%=nav.freq%> <% } %> </span> </script> <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) */ ?> const opts = { render_elem: 'acarsmap', provider: '<?php echo Config::Get("MAP_TYPE"); ?>', autozoom: true, zoom: <?php echo Config::Get('MAP_ZOOM_LEVEL'); ?>, center: L.latLng("<?php echo Config::Get('MAP_CENTER_LAT'); ?>", "<?php echo Config::Get('MAP_CENTER_LNG'); ?>"), refreshTime: 10000 }; renderAcarsMap(opts); </script>
  10. Hello Yusuf Budi! I'm not sure about that but I don't know exactly what to modify because I'm afraid of damaging something. I leave here the current code of that page, external to phpvms, where I intend to make the online flights visible. As I said before, I made the map visible but it doesn't work properly because no traffic is visible. So I ask for help from someone who has knowledge and who can help me with that. <!-- section content begin --> <div class="page-title-container"> <nav aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item active" aria-current="page">Home</li> <li class="breadcrumb-item active" aria-current="page">Operations</li> <li class="breadcrumb-item active" aria-current="page">Live Flights</li> </ol> </nav> <div class="uk-section"> <div class="section-headline text-center"> <h2>Live Flights</h2> <div class="uk-card uk-card-default uk-card-body"> <p><?php Template::Show('acarsmap.php'); ?> </p> <div class="table-responsive"> <table class="uk-table uk-table-striped"> <thead> <tr> <th><center>FLIGHT STATUS</center></th> <th><center>AIRLINE</center></th> <th><center>FLIGHT</center></th> <th><center>DESTINATION</center></th> <th><center>ETE</center></th> <th><center>DISTANCE REMAINING</center></th> <th><center>REMARKS</center></th> </tr> </thead> <tbody> <?php $results = ACARSData::GetACARSData(); if(is_array ($results) || $results instanceof Countable) { if (count($results) > 0) { foreach($results as $flight) { ?> <tr> <td><center><?php echo $flight->phasedetail; ?></center></td> <td><center><?php $flightcode= SchedulesData::getProperFlightNum($flight->flightnum);?><img src="<?php echo SITE_URL?>/lib/images/logos/<?php echo $flightcode['code'];?>.png" alt="<?php echo $flight->flightnum;?>"/></center></td> <td><center><?php echo $flight->flightnum; ?></center></td> <td><center><?php echo $flight->arrname; ?></center></td> <td><center><?php echo $flight->timeremaining; ?></center></td> <td><center><?php echo $flight->distremain ?> Nm.</center></td> <td><center><?php $schedule = SchedulesData::getScheduleByFlight($flight->code,$flight->flightnum); $fltime = explode(".", $schedule->flighttime); $minstar = substr($fltime[1],0,1); $minstarmin = substr($fltime[1],1,2); $flmin = $minstar * 10; $flhou = $fltime[0] * 60; $flminu = $flhou + $flmin + $minstarmin; $actfltime = explode(".", $pirep->flighttime); $actminstar = substr($actfltime[1],0,1); $actminstarmin = substr($actfltime[1],1,2); $actflmin = $actminstar * 10; $actflhou = $actfltime[0] * 60; $actflminu = $actflhou + $actflmin + $actminstarmin; if(($flminu - 20) > $actflminu) { echo "<font color='#FF9900'><b>EARLY</b></font>"; } elseif (($flminu + 15) < $actflminu) { echo "<font color='#FF0000'><b>DELAYED</b></font>"; } else { echo "<font color='#008000'><b>ON TIME</b></font>"; } ?></center></td> </tr> <?php } } } else { ?> <tr> <div class="uk-alert-danger" uk-alert> <a class="uk-alert-close" uk-close></a> <p><strong> Oh No!</strong> Looks Like No Pilots Are Currently Flying.</p> </div> </tr> </tbody> <?php } ?> </table> </br> </br> </div> </div> </div> </div> </div> <!-- End Latest Flights -->
  11. Well, doing a little research I was able to make the map visible but now when there is someone online it is not seen on the map. https://ibb.co/0rnSnrc
  12. Hello everybody! I hope you are well. Could you help me? I am trying to place the route map (CreazyCreatives) and another of the online flights out of the installation (phpVMS) and it is not possible that it appears visible. I've tried various things and I don't know what I'm doing wrong. I have the google map API KEY included. Does anyone have a code to help solve this problem? Thank you so much.
  13. I am also interested in this!
  14. Hi Strider, I thought the same but unfortunately I did not change anything except the style to fit my website.
  15. Any help with this error? I have the Live Flight Info module (CreazyCreative) and it works correctly but unfortunately the map is not visible and its support is very bad. MODERATOR EDIT: Code snippet removed Thank you so much.
  16. No problem ProAvia! Thank you.
  17. Hi ProAvia. Okay. Although I know that CrazyCreatives has excellent modules and some I have bought and installed, their support service is very bad. I have a problem with two of their modules and there is no way to get excellent support and that disappoints me. I will look at other options for payware modules. Best Regards,
  18. Hi all! Some airlines offer the possibility of earning points for each flight, landing, etc .; and I would like to know if anyone here knows what module is used for that and where I can find it for free or paid. I want to implement a points system in my airline like those of other airlines. Thank you so much. Julio
  19. Hi everyone! I have downloaded and installed the "Hub Transfer Request" module and it works perfectly but I get the following error (view image) https://i.ibb.co/NN9bTrk/Screenshot-2.png Deprecated: Non-static method HubTransferData::GetAllHubs() should not be called statically in /home/level/public_html/phpvms/core/modules/HubTransfer/HubTransfer.php on line 30 This is the code: <?php /** * Hub Transfer Request v.1.0 * * phpVMS Module for pilots to submit a Hub Transfer request that is stored in a database * and an option for staff to view all the requests through the admin panel and decide to reject/approve the request. * This module is released under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License * Note: Please play fair. I will act immediately upon receiving information of copyright infringement. Thank you. * @author Sava Markovic - airserbiavirtual.com * @copyright Copyright (c) 2012, Sava Markovic * @link http://www.airserbiavirtual.com * @license http://creativecommons.org/licenses/by-nc-sa/3.0/ */ class HubTransfer extends CodonModule { public $title = "Hub Transfer Request"; public function index () { if (!Auth::LoggedIn()) { $this->set('error', 'You are not logged in.'); $this->render('hubtransfer/hubtransfer_error.php'); } else { $hubs = HubTransferData::GetAllHubs(array()); //have to set the values for populating the drop down list $this->set('all_hubs', $hubs); $this->render('hubtransfer/hubtransfer_index.php'); } } public function submit() { if ($this->post->reason == '') //checking if the reason filed is empty, you can change == '' to something like > 20 to require more than 20 characters { $this->set('error', 'You haven\'t specified a reason for your hub transfer request. Please supply one below. Thank you.'); $this->render('hubtransfer/hubtransfer_error.php'); $hubs = HubTransferData::GetAllHubs(array()); $this->set('all_hubs', $hubs); $this->render('hubtransfer/hubtransfer_index.php'); } else { $reqcheck = HubTransferData::CheckRequest(Auth::$userinfo->pilotid); //checking if there is already a request with the logged in pilot's id if ($reqcheck > 0) { $this->set('error', 'You already have a hub transfer request submitted for your ID.'); $this->render('hubtransfer/hubtransfer_error.php'); $hubs = HubTransferData::GetAllHubs(array()); $this->set('all_hubs', $hubs); $this->render('hubtransfer/hubtransfer_index.php'); } else { $data = array( 'pilotid' => Auth::$userinfo->pilotid, 'hub_initial' => Auth::$userinfo->hub, 'hub_req' => $this->post->desired_hub, 'date_submitted' => date("F jS, Y"), 'reason' => $this->post->reason ); //loaded the array, do the magic HubTransferData::AddRequest($data); $this->SendMail(); } } } protected function SendMail() { //sending email to pilot $subject = SITE_NAME . ' Hub Transfer Request Submitted'; $email = Auth::$userinfo->email; $message = "This is an automated message sent by our system. <br> Your request has been submitted and processed by our system. You will be contacted when our staff team reviews your request. <Br> Thank you."; Util::SendEmail($email, $subject, $message); //send email to admin $subject_admin = SITE_NAME . ' A pilot has submitted a Hub Transfer Request'; $email_admin = ADMIN_EMAIL; $message_admin = "A pilot has submitted a Hub Transfer Request. Review the request from the administration panel."; Util::SendEmail($email_admin, $subject_admin, $message_admin); //after all is done, render the submitted tpl file $this->render('hubtransfer/hubtransfer_submitted.php'); } } I really appreciate the help to fix this error. I am using: Version 5.5.2.72 simpilot / php7.2. Thank you so much.
  20. Thanks proavia! Okay. The idea would be that when a pilot requests a "random flight" since the results also come with a price, the total amount of those flights will be subtracted from your money. That the flights they request in this way are paid. Best Regards.
  21. Hi. I was wondering if there is the possibility of adding that when a pilot requests a "Random Flights" the amount of the flights is deducted from his current money?
  22. I am also looking for this module. But no, it doesn't appear.
×
×
  • Create New...