-
Posts
246 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by t_bergman
-
Nabeel, What do you mean by subfleet? Would this be a group of AC grouped by type? I'm trying to think how this could be easiest to implement; I'm familiar with php but not at the level of most people on this forum. By linking a cost to the tail number instead of type, its more work on the airline administration but you could also implement cost differences based on small nuances in the fleet. CRJ700 1 has airstairs and CRJ700 2 doesn't. Each time you fly 2 ground handing would be $200 vs each flight on 1 would be $150 based on the tail number. Food for thought, let me know if I can be of any assistance with the new version.
-
Servetas. I would nice to have the ability to differentiate costs based on a few different things: -Cost per passenger -Cost per aircraft based on tail number (ground handling is different for a 737-800 than a small turboprop) -Cost per flight hour dependent on the tail number (for maintenance expenses) -Single cost items such as a purchase of a new hangar etc.
-
Back working without any warnings; I am a big fan of HTTPS, especially with sites like letsencrypt.org that offer free and easy tools for sites.
-
Does anyone know of a way to enable a cost per passenger per flight expense?
-
Thank you David for all that you have done for the community.
-
SimPilot, VA Central, Version 3 and This Site
t_bergman replied to ProAvia's topic in Off-Topic Banter
ProAvia, Definitely an interesting question, and one that no one really knows an answer too. With Nabeel showing v4 screen shots, one would hope an announcement would be made as to the ownership of the site and the forum. I'm sure if either Nabeel or SimPilot are not going to keep it up, someone else surely would be willing too. . While phpVMS belongs to Nabeel, the collection of information and all of its contributions on the forum definitely belong to the community which keep supporting the project via 3rd party code and improvements. -
Posted on the main simpilotgroup website " Simpilotgroup.com will be closing in July 2017. If you have any questions please Contact Simpilotgroup.Thank You to all that have helped support the site in the past. "
-
I reached out to simpilot regarding the documentation and haven't heard back.
-
Servetas, Thanks for the reply, it would be great to be able to integrate the passenger/financial aspect along with the maintenance aspects of FSeconomy. Financial aspects: -Ground crew, different airports have different financial impacts to an airline. -Rental/Lease costs, gate rentals, terminals. Passenger/Cargo: -airports have different amount of cargo and passenger needs. One load factor across all of the flights is simply unrealistic. Even if somehow phpVMS allowed for the manual input of many factors on a flight, however I suspect that would require a lot of rewriting of the core program.
-
I am looking to see if anyone has or has the ability to integrate FSEconomy into phpvms in regards to aircraft/financials from an FSeconomy group.
-
You should be able to do this with a php if statement: if airline a then hub a, and go through the list. You can also hid the hub selection box by using the "hidden" attribute.
-
All of the information that has been released can be found in the phpVMS v3 forum section.
-
I would open up a ticket here: http://billing.fivedev.net/submitticket.php?step=2&deptid=1
-
You need to run the cron job under the maintenance portion of the phpvms admin panel. Contact your host if you need help setting up a cron job, however it is very simple especially if you are using cPanel.
-
[SOLVED] Change Signature (Badge) variables
t_bergman replied to ProSkyDesign's topic in Support Forum
It should be the basic all around one already set up in the admin panel. It also does a host of other things. PhpVMS will also give you the command to put into the control panel of your hosting account. -
Everyone has a different hosting environment, however I'll take a guess that you're using some version of CPanel. The command you need to use is located at YourphpVMSDirectory/admin/index.php/maintenance/options. Here is a tutorial for cPanel: https://documentation.cpanel.net/display/ALD/Configure+cPanel+Cron+Jobs
-
Put the system into debug mode via the local.config.php file and look at the logs. Most likely it is tied to your MySQL database structure.
-
Yes, I saw quotations when I opened the local file in notepad++. Which means excel is the culprit and for some reason saving them inside the file. As soon as I mess around with it a bit more hopefully I have an answer about how to fix it.
-
ProAvia, I opened the file in Notepad++, this is definitely a local issue and not a phpvms or web host. Thanks for pointing me in the right direction for troubleshooting this one. I'm migrating to linuxmint slowly and I'm going to try it in LibreOffice and see how it goes.
-
ProAvia, Thanks for the reply, I'm using office 2010, I've tried saving an uploading the sheet in all of the csv file formats and nothing seems to make a different. I've attached my import.php file below. public function processimport() { $this->checkPermission(IMPORT_SCHEDULES); echo '<h3>Processing Import</h3>'; if (!file_exists($_FILES['uploadedfile']['tmp_name'])) { $this->set('message', 'File upload failed!'); $this->render('core_error.php'); return; } echo '<p><strong>DO NOT REFRESH OR STOP THIS PAGE</strong></p>'; set_time_limit(270); $errs = array(); $skip = false; # Fix for bug VMS-325 $temp_name = $_FILES['uploadedfile']['tmp_name']; $new_name = CACHE_PATH . $_FILES['uploadedfile']['name']; move_uploaded_file($temp_name, $new_name); $fp = fopen($new_name, 'r'); if (isset($_POST['header'])) $skip = true; /* Delete all schedules before doing an import */ if (isset($_POST['erase_routes'])) { SchedulesData::deleteAllSchedules(); } $added = 0; $updated = 0; $total = 0; echo '<div style="overflow: auto; height: 400px; border: 1px solid #666; margin-bottom: 20px; padding: 5px; padding-top: 0px; padding-bottom: 20px;">'; while ($fields = fgetcsv($fp, 1000, ',')) { // Skip the first line if ($skip == true) { $skip = false; continue; } // list fields: $code = $fields[0]; $flightnum = $fields[1]; $depicao = $fields[2]; $arricao = $fields[3]; $route = $fields[4]; $aircraft = $fields[5]; $flightlevel = $fields[6]; $distance = $fields[7]; $deptime = $fields[8]; $arrtime = $fields[9]; $flighttime = $fields[10]; $notes = $fields[11]; $price = $fields[12]; $flighttype = $fields[13]; $daysofweek = $fields[14]; $enabled = $fields[15]; $week1 = $fields[16]; $week2 = $fields[17]; $week3 = $fields[18]; $week4 = $fields[19]; if ($code == '') { continue; } // Check the code: if (!OperationsData::GetAirlineByCode($code)) { echo "Airline with code $code does not exist! Skipping...<br />"; continue; } // Make sure airports exist: if (!($depapt = OperationsData::GetAirportInfo($depicao))) { $this->get_airport_info($depicao); } if (!($arrapt = OperationsData::GetAirportInfo($arricao))) { $this->get_airport_info($arricao); } # Check the aircraft $aircraft = trim($aircraft); $ac_info = OperationsData::GetAircraftByReg($aircraft); # If the aircraft doesn't exist, skip it if (!$ac_info) { echo 'Aircraft "' . $aircraft . '" does not exist! Skipping<br />'; continue; } $ac = $ac_info->id; if ($flighttype == '') { $flighttype = 'P'; } if ($daysofweek == '') $daysofweek = '0123456'; // Replace a 7 (Sunday) with 0 (since PHP thinks 0 is Sunday) $daysofweek = str_replace('7', '0', $daysofweek); # Check the distance if ($distance == 0 || $distance == '') { $distance = OperationsData::getAirportDistance($depicao, $arricao); } $flighttype = strtoupper($flighttype); if ($enabled == '0') $enabled = false; else $enabled = true; # This is our 'struct' we're passing into the schedule function # to add or edit it $data = array( 'code' => $code, 'flightnum' => $flightnum, 'depicao' => $depicao, 'arricao' => $arricao, 'route' => $route, 'aircraft' => $ac, 'flightlevel' => $flightlevel, 'distance' => $distance, 'deptime' => $deptime, 'arrtime' => $arrtime, 'flighttime' => $flighttime, 'daysofweek' => $daysofweek, 'notes' => $notes, 'enabled' => $enabled, 'price' => $price, 'flighttype' => $flighttype, 'week1' => $week1, 'week2' => $week2, 'week3' => $week3, 'week4' => $week4 ); # Check if the schedule exists: if (($schedinfo = SchedulesData::getScheduleByFlight($code, $flightnum))) { # Update the schedule instead $val = SchedulesData::updateScheduleFields($schedinfo->id, $data); $updated++; } else { # Add it $val = SchedulesData::addSchedule($data); $added++; } if ($val === false) { if (DB::errno() == 1216) { echo "Error adding $code$flightnum: The airline code, airports, or aircraft does not exist"; } else { $error = (DB::error() != '') ? DB::error() : 'Route already exists'; echo "$code$flightnum was not added, reason: $error<br />"; } echo '<br />'; } else { $total++; echo "Imported {$code}{$flightnum} ({$depicao} to {$arricao})<br />"; } } CentralData::send_schedules(); echo "The import process is complete, added {$added} schedules, updated {$updated}, for a total of {$total}<br />"; foreach ($errs as $error) { echo ' ' . $error . '<br />'; } echo '</div>'; unlink($new_name); } It is the stock import.
-
Here are a few links: they are not the documentation I wanted to show you but may get you started in the right direction. I don't have any formal web development training however by just messing around I've learned a whole lot about how to develop for phpVMS. https://forum.phpvms.net/article/developers-guides/code-layout-and-coding-conventions-r17/
-
Aedwards521, With the new site addition for phpvms3 a lot of the documentation has been taken away. I have pm'd simpilot to see if those pages can be re-activated as it will greatly increase your ability to learn and extend the phpvms system.
-
I've checked and everything is set to text, as well as within the csv excel sheet. I've been doing more troubleshooting and I haven't found an answer yet.
-
I'm having an issue with schedule imports, specifically the route during import. When I import a schedule, the route imports question marks instead of spaces ie: MARCI?V7?SWAGS???. Is there a fix? I have not changed anything in my environment, has anyone else seen this before? Thanks,
-
Where to start...I need a VA Consultant for an operational site...
t_bergman replied to OMGEDSON's topic in Support Forum
OMGEDSON, Unfortunately I don't have a database of aircraft for you, however you can import aircraft via a .csv document which should cut down on the workload. phpVMS has pilot groups, you could use an if statement to show an icon. If pilot x is a member of groupa, then show url(site.com/image.jpg). Your third question would definitely need to be someone custom to the system, through the acars logging software as phpVMS calculates miles based on the airports. There is not a user input to adjust the value. Not to mention if someone went into the mx mode of the site and ran the re-calculate pireps function it would reset miles of all of the flights back to its true distance.