Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Commit b88acd7

Browse files
author
Nabeel Shahzad
committed
2.1 release, kACARS fix
1 parent 4d7c66b commit b88acd7

File tree

5 files changed

+17
-30
lines changed

5 files changed

+17
-30
lines changed

core/logs/log.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +0,0 @@
1-
=====
2-
Time:
3-
=====
4-
Time: 04.19.10 14:03:35
5-
Backtrace: DB::write_debug > DB::get_results > StatsData::TotalFlightsToday > include > TemplateSet->getTemplate > TemplateSet->showTemplate > Template::show > CodonModule->render > Dashboard->index > call_user_func_array > MainController::RunAllActions
6-
Query: SELECT COUNT(*) AS `total` FROM phpvms_pirepsDATE(`submitdate`) = CURDATE()
7-
Error: (1064) - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(`submitdate`) = CURDATE()' at line 1
8-
=====
9-
10-
11-
=====
12-

core/modules/kACARS_Free/kACARS_Free.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ public function index()
3535
return;
3636
}
3737

38-
$this->log(print_r($this->xml->asXML(), true), 'kacars');
38+
$this->log(print_r($xml->asXML(), true), 'kacars');
3939

40-
$case = strtolower($this->xml->switch->data);
40+
$case = strtolower($xml->switch->data);
4141
switch($case)
4242
{
4343
case 'verify':
@@ -60,7 +60,7 @@ public function index()
6060

6161
case 'getbid':
6262

63-
$pilotid = PilotData::parsePilotID($this->xml->verify->pilotID);
63+
$pilotid = PilotData::parsePilotID($xml->verify->pilotID);
6464
$pilotinfo = PilotData::getPilotData($pilotid);
6565
$biddata = SchedulesData::getLatestBid($pilotid);
6666
$aircraftinfo = OperationsData::getAircraftByReg($biddata->registration);
@@ -108,7 +108,7 @@ public function index()
108108

109109
case 'getflight':
110110

111-
$flightinfo = SchedulesData::getProperFlightNum($this->xml->pirep->flightNumber);
111+
$flightinfo = SchedulesData::getProperFlightNum($xml->pirep->flightNumber);
112112

113113
$params = array(
114114
's.code' => $flightinfo['code'],
@@ -153,7 +153,7 @@ public function index()
153153

154154
case 'liveupdate':
155155

156-
$pilotid = PilotData::parsePilotID($this->xml->verify->pilotID);
156+
$pilotid = PilotData::parsePilotID($xml->verify->pilotID);
157157

158158
# Get the distance remaining
159159
$depapt = OperationsData::GetAirportInfo($xml->liveupdate->depICAO);
@@ -209,7 +209,7 @@ public function index()
209209
$code = $flightinfo['code'];
210210
$flightnum = $flightinfo['flightnum'];
211211

212-
$pilotid = PilotData::parsePilotID($this->xml->verify->pilotID);
212+
$pilotid = PilotData::parsePilotID($xml->verify->pilotID);
213213

214214
# Make sure airports exist:
215215
# If not, add them.
@@ -414,7 +414,6 @@ public static function ProcessLogin($useridoremail, $password)
414414
$sql = 'SELECT * FROM '.TABLE_PREFIX.'pilots
415415
WHERE pilotid='.$id;
416416
}
417-
418417
else
419418
{
420419
return false;

core/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
926
1+
927

install/hashlist

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fac7c09a2f7b3c46a3c4d20ccb0eb2fb *./install/templates/s2_site_setup.tpl
1111
98159de4e2de83127db1931eb35f818c *./install/update_437.sql
1212
26ef658d7e68ae3cd8f5e34e9e9c5e65 *./install/checkinstall.php
1313
c6384626328e54dd77c534d04ff65a44 *./install/update_700.sql
14-
78ac341bb1c1ae65d37cc37cc4bef4c5 *./install/update.sql
14+
0bb6976bcc06e209c28b684afca2b2bf *./install/update.sql
1515
d41d8cd98f00b204e9800998ecf8427e *./install/index.php
1616
55c3722f079209f61fcfce707f077548 *./install/update_400.sql
1717
56522f3521444add8835afbba7375a11 *./install/update_854.sql
@@ -20,11 +20,11 @@ d41d8cd98f00b204e9800998ecf8427e *./install/index.php
2020
1ee77934d1a602e9c74861c9391a55d9 *./install/update_628.sql
2121
c272ba4d5e3656768e851f448face751 *./install/loader.inc.php
2222
20aed0ce417ba947f254459309b4ac1f *./install/Installer.class.php
23-
d79871df7bcc5aaabb166feb2d0252fc *./install/update.php
23+
d617e0d979ec50733d2040661038b738 *./install/update.php
2424
6b8d1dc1b006ef2a88e8130ce7bb157a *./install/update_441.sql
2525
87a5365aeff06351424ae56fdb561909 *./install/checkdb.php
2626
d4d204c3560c283fa4d7a3a367473740 *./install/navdata.sql
27-
b0bf9020a8fcc2736ef8eb90a21261a7 *./install/install.php
27+
654a8ef74503b880f8526873986da3af *./install/install.php
2828
0ce9f88088bd78d869525b8b202fb1bd *./core/lang/en.lang.php
2929
ca3ba6576a81f6107b9017187bc2f484 *./core/common/MaintenanceData.class.php
3030
66ac4c7de16bb72aaeefa00e949da84c *./core/common/PIREPData.class.php
@@ -171,7 +171,7 @@ e989746517699422f43d3d1d5ba0d799 *./core/modules/Profile/Profile.php
171171
db56836cad01ef0f2b40a482e1b49828 *./core/modules/Registration/Registration.php
172172
fe8673f5292627c7589eed45b591a20b *./core/modules/Downloads/Downloads.php
173173
e6eb59f2814008a2a20eb01591c12447 *./core/modules/Pilots/Pilots.php
174-
20e1a65966388952372b1089c50cae29 *./core/modules/kACARS_Free/kACARS_Free.php
174+
be83521d9521fbf0078d27e114f32faf *./core/modules/kACARS_Free/kACARS_Free.php
175175
d41d8cd98f00b204e9800998ecf8427e *./core/modules/index.php
176176
c75e1f34d88a90272e8b4f665e62ea3d *./core/modules/Frontpage/Frontpage.php
177177
4745bff609adac50676f834dbf25f46c *./core/modules/ACARS/fsacars.php

install/structure.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@
7777
<field Field="hub" Type="smallint(6)" Null="NO" Key="" Default="0" Extra="" />
7878
<field Field="fuelprice" Type="float" Null="NO" Key="" Default="0" Extra="" />
7979
<field Field="chartlink" Type="text" Null="NO" Key="" Extra="" />
80-
<key Table="phpvms_airports" Non_unique="0" Key_name="PRIMARY" Seq_in_index="1" Column_name="id" Collation="A" Cardinality="258" Null="" Index_type="BTREE" Comment="" />
81-
<key Table="phpvms_airports" Non_unique="0" Key_name="icao" Seq_in_index="1" Column_name="icao" Collation="A" Cardinality="258" Null="" Index_type="BTREE" Comment="" />
82-
<options Name="phpvms_airports" Engine="InnoDB" Version="10" Row_format="Compact" Rows="553" Avg_row_length="118" Data_length="65536" Max_data_length="0" Index_length="16384" Data_free="6291456" Auto_increment="1469" Create_time="2010-04-09 17:02:46" Collation="latin1_swedish_ci" Create_options="" Comment="" />
80+
<key Table="phpvms_airports" Non_unique="0" Key_name="PRIMARY" Seq_in_index="1" Column_name="id" Collation="A" Cardinality="292" Null="" Index_type="BTREE" Comment="" />
81+
<key Table="phpvms_airports" Non_unique="0" Key_name="icao" Seq_in_index="1" Column_name="icao" Collation="A" Cardinality="292" Null="" Index_type="BTREE" Comment="" />
82+
<options Name="phpvms_airports" Engine="InnoDB" Version="10" Row_format="Compact" Rows="160" Avg_row_length="409" Data_length="65536" Max_data_length="0" Index_length="16384" Data_free="6291456" Auto_increment="1469" Create_time="2010-04-09 17:02:46" Collation="latin1_swedish_ci" Create_options="" Comment="" />
8383
</table_structure>
8484
<table_structure name="phpvms_awards">
8585
<field Field="awardid" Type="int(11)" Null="NO" Key="PRI" Extra="auto_increment" />
@@ -363,8 +363,8 @@
363363
<field Field="pilotid" Type="int(11)" Null="NO" Key="" Extra="" />
364364
<field Field="ipaddress" Type="varchar(25)" Null="NO" Key="" Extra="" />
365365
<field Field="logintime" Type="datetime" Null="NO" Key="" Extra="" />
366-
<key Table="phpvms_sessions" Non_unique="0" Key_name="PRIMARY" Seq_in_index="1" Column_name="id" Collation="A" Cardinality="102" Null="" Index_type="BTREE" Comment="" />
367-
<options Name="phpvms_sessions" Engine="MyISAM" Version="10" Row_format="Dynamic" Rows="102" Avg_row_length="32" Data_length="3320" Max_data_length="281474976710655" Index_length="2048" Data_free="0" Auto_increment="1678" Create_time="2009-10-31 20:05:09" Update_time="2010-04-19 05:20:00" Check_time="2010-04-09 17:02:47" Collation="latin1_swedish_ci" Create_options="" Comment="" />
366+
<key Table="phpvms_sessions" Non_unique="0" Key_name="PRIMARY" Seq_in_index="1" Column_name="id" Collation="A" Cardinality="119" Null="" Index_type="BTREE" Comment="" />
367+
<options Name="phpvms_sessions" Engine="MyISAM" Version="10" Row_format="Dynamic" Rows="119" Avg_row_length="32" Data_length="3864" Max_data_length="281474976710655" Index_length="4096" Data_free="0" Auto_increment="1695" Create_time="2009-10-31 20:05:09" Update_time="2010-04-20 02:26:30" Check_time="2010-04-09 17:02:47" Collation="latin1_swedish_ci" Create_options="" Comment="" />
368368
</table_structure>
369369
<table_structure name="phpvms_settings">
370370
<field Field="id" Type="int(11)" Null="NO" Key="PRI" Extra="auto_increment" />
@@ -383,7 +383,7 @@
383383
<field Field="lastupdate" Type="datetime" Null="NO" Key="" Extra="" />
384384
<key Table="phpvms_updates" Non_unique="0" Key_name="PRIMARY" Seq_in_index="1" Column_name="id" Collation="A" Cardinality="9" Null="" Index_type="BTREE" Comment="" />
385385
<key Table="phpvms_updates" Non_unique="1" Key_name="name" Seq_in_index="1" Column_name="name" Collation="A" Cardinality="9" Null="" Index_type="BTREE" Comment="" />
386-
<options Name="phpvms_updates" Engine="MyISAM" Version="10" Row_format="Dynamic" Rows="9" Avg_row_length="33" Data_length="300" Max_data_length="281474976710655" Index_length="3072" Data_free="0" Auto_increment="10" Create_time="2009-12-20 17:51:29" Update_time="2010-04-17 23:03:52" Check_time="2010-04-09 17:02:47" Collation="latin1_swedish_ci" Create_options="" Comment="" />
386+
<options Name="phpvms_updates" Engine="MyISAM" Version="10" Row_format="Dynamic" Rows="9" Avg_row_length="33" Data_length="300" Max_data_length="281474976710655" Index_length="3072" Data_free="0" Auto_increment="10" Create_time="2009-12-20 17:51:29" Update_time="2010-04-19 18:03:35" Check_time="2010-04-09 17:02:47" Collation="latin1_swedish_ci" Create_options="" Comment="" />
387387
</table_structure>
388388
</database>
389389
</mysqldump>

0 commit comments

Comments
 (0)