Jump to content

Revision 820: fixed #114 fixed #115 fixed #110 fixed #113, refs #27


Nabeel

Recommended Posts

  • Administrators

Revision 820: fixed #114 fixed #115 fixed #110 fixed #113, refs #27

19 December 2009, 1:29 pm

fixed #114 fixed #115 fixed #110 fixed #113, refs #27

Source: Revisions of /

Download from http://downloads.phpvms.net/phpvms.beta.zip

---

ALOT of internal changes on this one, there shouldn't be any changes on the front-end. Finally got to implement a powerful new schedule and PIREP search interface, and replaced all of that code in the modules to use it.

Simply put, queries like this are easily possible now, without any new *Data classes or writing any SQL or adding any functions:

<?php

// Find flights out of KJFK that leave at 10:00-10:59,
//    and are longer than 400 distance units
$search=array(
    's.depicao' => 'KJFK',
    's.deptime' => '10:%',
    's.distance' => '> 400',
);

$schedules = SchedulesData::findSchedules($search);

// Find passenger flights which are on Mondays, and
// haven't been bid on
$search=array(
    's.type' => 'P',
    's.dayofweek' => '%1%',
    's.bidid' => 0,
);

$schedules = SchedulesData::findSchedules($search);

// Get flights which have been bid on (doesn't return pilot info, however)
$search = array(
    's.bidid != 0',
);

$schedules = SchedulesData::findSchedules($search);

This makes it much easier for add-on modules or for your site to develop custom searches. The same thing has been done for PIREPs:

<?php
// Return all the PIREPS which are accepted, where the user's hub
//    who subitted it is KJFK
$search = array(
    'p.accepted' => PIREP_ACCEPTED,
    'u.hub' => 'KJFK',
);

$pireps =  PIREPData::findPIREPS($params);

Hopefully sometime this weekend there will be another update, which will enabled vaCentral and that will be in open-beta, so I can fix some of those bugs up. I don't think there's anything major left for phpVMS, so I'm aiming for a final version sometime between Christmas and New Years.

---

Note

There's an error with PIREPs listing. I don't want to do another commit just yet, but to fix it:

Open /admin/modules/pirepadmin/pirepadmin.php

Line 159 is:

$allreports = PIREPData::GetAllReports($this->get->start, $num_per_page);

replace it with the next two lines:

$params = array();
$allreports = PIREPData::findPIREPS($params, $num_per_page, $this->get->start);

Link to comment
Share on other sites

HI

here it is 

Checking PHP version
[OK] PHP version is 5.2.x

Checking connectivity...
[OK] Can contact outside servers

Checking for SimpleXML module...
[OK] SimpleXML module exists!

Checking file hashes for corrupt or mismatched files
[Checksum failed] /install/checkinstall.php did not match, possibly corrupt or out of date
[Checksum failed] /install/install.php did not match, possibly corrupt or out of date
[Checksum failed] /core/common/PIREPData.class.php did not match, possibly corrupt or out of date
[Checksum failed] /core/classes/ezDB.class.php did not match, possibly corrupt or out of date
[Checksum failed] /core/modules/XML/XML.php did not match, possibly corrupt or out of date
[Checksum failed] /core/modules/ACARS/fspax.php did not match, possibly corrupt or out of date
[Checksum failed] /core/modules/FrontBids/FrontBids.php did not match, possibly corrupt or out of date
[Error] ../unit_test.php doesn't exist
[Checksum failed] /admin/modules/Maintenance/Maintenance.php did not match, possibly corrupt or out of date
[Checksum failed] /admin/modules/PIREPAdmin/PIREPAdmin.php did not match, possibly corrupt or out of date
[Checksum failed] /core/templates/schedule_briefing.tpl did not match, possibly corrupt or out of date
[Checksum failed] /core/templates/core_navigation.tpl did not match, possibly corrupt or out of date
[Checksum failed] /admin/templates/awards_allawards.tpl did not match, possibly corrupt or out of date
[Checksum failed] /admin/templates/settings_customfieldsform.tpl did not match, possibly corrupt or out of date
[Checksum failed] /admin/templates/reports_main.tpl did not match, possibly corrupt or out of date
[Checksum failed] /install/update.sql did not match, possibly corrupt or out of date

-- Checked 205 files, found 16 errors

Link to comment
Share on other sites

  • Moderators

here is mine

phpVMS Virtual Airline Administration Software
Install Check

Checking PHP version
[OK] PHP version is 5.2.x

Checking connectivity...
[OK] Can contact outside servers

Checking for SimpleXML module...
[OK] SimpleXML module exists!

Checking file hashes for corrupt or mismatched files
[Checksum failed] /install/checkinstall.php did not match, possibly corrupt or out of date
[Checksum failed] /install/install.php did not match, possibly corrupt or out of date
[Checksum failed] /core/common/PIREPData.class.php did not match, possibly corrupt or out of date
[Checksum failed] /core/classes/ezDB.class.php did not match, possibly corrupt or out of date
[Checksum failed] /core/modules/XML/XML.php did not match, possibly corrupt or out of date
[Error] ../unit_test.php doesn't exist
[Checksum failed] /admin/modules/Maintenance/Maintenance.php did not match, possibly corrupt or out of date
[Checksum failed] /core/templates/pireps_addcomment.tpl did not match, possibly corrupt or out of date
[Checksum failed] /core/templates/fsfk_liveacars_config.tpl did not match, possibly corrupt or out of date
[Checksum failed] /core/templates/registration_autoconfirm.tpl did not match, possibly corrupt or out of date
[Checksum failed] /core/templates/fsfk_log_flightdata.tpl did not match, possibly corrupt or out of date
[Checksum failed] /core/templates/xacars_config.tpl did not match, possibly corrupt or out of date
[Checksum failed] /core/templates/fsfk_pirep_config.tpl did not match, possibly corrupt or out of date
[Checksum failed] /install/install.sql did not match, possibly corrupt or out of date

-- Checked 205 files, found 14 errors

Link to comment
Share on other sites

  • Administrators

There's an error with PIREPs listing. I don't want to do another commit just yet, but to fix it:

Open /admin/modules/pirepadmin/pirepadmin.php

Line 159 is:

$allreports = PIREPData::GetAllReports($this->get->start, $num_per_page);

replace it with the next two lines:

$params = array();
$allreports = PIREPData::findPIREPS($params, $num_per_page, $this->get->start);

Link to comment
Share on other sites

:o I have 3 errors more

phpVMS Virtual Airline Administration Software
Install Check

Checking PHP version
[OK] PHP version is 5.2.x

Checking connectivity...
[OK] Can contact outside servers

Checking for SimpleXML module...
[OK] SimpleXML module exists!

Checking file hashes for corrupt or mismatched files
[Checksum failed] /install/checkinstall.php did not match, possibly corrupt or out of date
[Checksum failed] /install/install.php did not match, possibly corrupt or out of date
[Checksum failed] /core/common/PIREPData.class.php did not match, possibly corrupt or out of date
[Checksum failed] /core/classes/ezDB.class.php did not match, possibly corrupt or out of date
[Checksum failed] /core/modules/XML/XML.php did not match, possibly corrupt or out of date
[Error] ../unit_test.php doesn't exist
[Checksum failed] /admin/modules/Import/Import.php did not match, possibly corrupt or out of date
[Checksum failed] /admin/modules/Maintenance/Maintenance.php did not match, possibly corrupt or out of date
[Checksum failed] /core/templates/pireps_addcomment.tpl did not match, possibly corrupt or out of date
[Checksum failed] /core/templates/fsfk_liveacars_config.tpl did not match, possibly corrupt or out of date
[Checksum failed] /core/templates/registration_autoconfirm.tpl did not match, possibly corrupt or out of date
[Checksum failed] /core/templates/fsfk_log_flightdata.tpl did not match, possibly corrupt or out of date
[Checksum failed] /core/templates/xacars_config.tpl did not match, possibly corrupt or out of date
[Checksum failed] /core/templates/fsfk_pirep_config.tpl did not match, possibly corrupt or out of date
[Checksum failed] /admin/templates/dashboard.tpl did not match, possibly corrupt or out of date
[Checksum failed] /admin/templates/pages_editpage.tpl did not match, possibly corrupt or out of date
[Checksum failed] /install/install.sql did not match, possibly corrupt or out of date

-- Checked 205 files, found 17 errors

Link to comment
Share on other sites

  • Moderators

found a small error/bug i think

using mass mail option getting this

Fatal error: Class 'PHPMailer' not found in /home/tntvirtua/domains/tnt-virtual.be/public_html/admin/modules/MassMailer/MassMailer.php on line 55

ticket #118

Link to comment
Share on other sites

×
×
  • Create New...