Patrick1246 Posted April 13, 2016 Report Posted April 13, 2016 install works, but it doesn't accept any pirep. on line 755 in PIREPData.Class.php # Do other assorted tasks that are along with a PIREP filing # Update the flown count for that route self::UpdatePIREPFeed(); # Update any pilot's information $pilotinfo = PilotData::getPilotData($pirepdata['pilotid']); $pilotcode = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); PilotData::UpdateLastPIREPDate($pilotinfo->pilotid); PirepAcData::search($pirepid); if (Config::Get('EMAIL_SEND_PIREP') === true) { # Send an email to the admin that a PIREP was submitted $sub = "A PIREP has been submitted by {$pilotcode} ({$pirepdata['depicao']} - {$pirepdata['arricao']})"; $message = "A PIREP has been submitted by {$pilotcode} " ."({$pilotinfo->firstname} {$pilotinfo->lastname})\n\n" ."{$pirepdata['code']}{$pirepdata['flightnum']}: {$pirepdata['depicao']} to {$pirepdata['arricao']}\n" ."Aircraft: {$pirepdata['aircraft']}\n" . "Flight Time: {$pirepdata['flighttime']}\n" ."Landing Rate: {$pirepdata['landingrate']}\n"."Filed using: {$pirepdata['source']}\n\n" ."Comment: {$comment}\n\n" ."Click to approve this pirep (admin must be signed in):\n" .adminurl('/pirepadmin/approvepirep/'.$pirepid); Quote
Members Vangelis Posted April 14, 2016 Author Members Report Posted April 14, 2016 Do you have any errors in your logs ? Quote
Patrick1246 Posted April 14, 2016 Report Posted April 14, 2016 ]Backtrace: DB::write_debug > DB::query > PIREPData::addComment > PirepAcData::search > PIREPData::fileReport > ACARSData::FilePIREP > smartCARS::filepirep Query: INSERT INTO phpvms_pirepcomments (`pirepid`, `pilotid`, `comment`, `postdate`) VALUES (17874, 1, 'Your Pirep has been rejected because you exeeded maximum landing rate of-600', NOW()) Error: (1062) - Duplicate entry '0' for key 'PRIMARY' that was my fault auto increment was not set however, it still doesn't accept an pirep, and there is no error in the log Quote
Members Vangelis Posted April 14, 2016 Author Members Report Posted April 14, 2016 does it reject the pireps that should be rejected ? Quote
Patrick1246 Posted April 14, 2016 Report Posted April 14, 2016 It doesn't reject the pirep, but it adds the comment to it Your Pirep has been rejected because you exeeded maximum landing rate of-100 Quote
DesComm Posted May 29, 2016 Report Posted May 29, 2016 (edited) [sOLVED] We have done a clean install of this and converted all of the .tpl - .php. We are getting the following errors: Strict Standards: Non-static method PirepAcData::get_criteria() should not be called statically, assuming $this from incompatible context in /......com/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 52 Criteria List Strict Standards: Non-static method PirepAcData::get_settings() should not be called statically, assuming $this from incompatible context in /......com/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 54 Extra Settings If I "enable" and 'Save" get the following error: Strict Standards: Non-static method PirepAcData::editSettings() should not be called statically, assuming $this from incompatible context in /......com/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 135 There was an error editing the Settings This is with the custom PirepAcData.class.php installed Looking for a fix! Edited June 6, 2016 by DesComm Quote
zakachkin Posted June 27, 2016 Report Posted June 27, 2016 Hello! This plugin can reject pireps transferred from VA website? How to do it? Quote
Members Vangelis Posted June 29, 2016 Author Members Report Posted June 29, 2016 This plugin work only during the filing of the pirep Quote
FlightDeckES Posted June 30, 2016 Report Posted June 30, 2016 Here we go again 1 more to try hello I get no matter autopirep.sql help please Quote
Members Vangelis Posted July 2, 2016 Author Members Report Posted July 2, 2016 i dont understand . Do you mean that there is no autopirep.sql ? Quote
DanishFlipper Posted July 22, 2016 Report Posted July 22, 2016 Hi guys, I just installed this module today, but i got some errors in it.. When im removing () this on line 52 in PirepAutoAccept.php an just leave it with ), im getting a fatal error. Error 1 : http://prntscr.com/bw9xeq Error 2 : http://prntscr.com/bw9xxe Can some one please help me out Regards Michael Quote
web541 Posted July 22, 2016 Report Posted July 22, 2016 Replace the code with the original with the () and then go into core/common/PIREPAcData.class.php and find this public function get_criteria() and replace it with public static function get_criteria() Quote
DanishFlipper Posted July 23, 2016 Report Posted July 23, 2016 (edited) Replace the code with the original with the () and then go into core/common/PIREPAcData.class.php and find this public function get_criteria() and replace it with public static function get_criteria() Hello web541, Thanks for you help, that worked .. But now i just have this error when im viewing my pending pireps after putting this code inside Pirepdata.class.php PirepAcData::search($pirepid); its giving me this error now : Strict Standards: Non-static method PirepAcData::search() should not be called statically in /span/spanstrong/home/vaemirat/public_html/core/common/PIREPData.class.php on line 812. An when adding some settings to it, after pressing save changes, im getting this error : Strict Standards Non-static method PirepAcData::editSettings() should not be called statically, assuming $this from incompatible context in /home/vaemirat/public_html/admin/modules/PirepAutoAccept/PirepAutoAccept.php on line 135 Can you help with that ?? Or what are im doing wrong with this module Thanks Edited July 23, 2016 by DanishFlipper Quote
web541 Posted July 23, 2016 Report Posted July 23, 2016 Yeah, same issue here, I assume you are using the phpvms 5.5.x version, therefore all public function should be replaced with public static function in core/common/PIREPAcData.class.php or conveniently, use this version that I modified a while back http://forum.phpvms.net/topic/20692-auto-acceptreject-pirep/page__st__160#entry123625 Quote
DanishFlipper Posted July 23, 2016 Report Posted July 23, 2016 (edited) Yeah, same issue here, I assume you are using the phpvms 5.5.x version, therefore all public function should be replaced with public static function in core/common/PIREPAcData.class.php or conveniently, use this version that I modified a while back http://forum.phpvms....160#entry123625 Thanks for file champ ... Some of the errors went away, but i still have some errors left, so i decided to delete the plugin totally.. I have no idea what the hell is going on, but thanks for your help anyway champ .. Regards Michael Edited July 23, 2016 by DanishFlipper Quote
web541 Posted July 24, 2016 Report Posted July 24, 2016 Thanks for file champ ... Some of the errors went away, but i still have some errors left, so i decided to delete the plugin totally.. I have no idea what the hell is going on, but thanks for your help anyway champ .. Regards Michael Which errors? Quote
Txmmy83 Posted July 24, 2016 Report Posted July 24, 2016 two Problems when using this Module it does not sent PIREP to Vacentral second is that it is not compatible with any custom reward system like Simpilots Pilot Rewards or Crazycreatives Premium Miles if it would work with these Reward Systems it would be Great Quote
DanishFlipper Posted July 25, 2016 Report Posted July 25, 2016 Which errors? I did not look at which ones, i got mad on it cause i keept getting errors, so it´s gone now .. Quote
eliezerazevedo Posted September 10, 2016 Report Posted September 10, 2016 Not valid my PIREP. I use CAVACARS PIREPData.class.php <?php /** * phpVMS - Virtual Airline Administration Software * Copyright (c) 2008 Nabeel Shahzad * For more information, visit www.phpvms.net * Forums: http://www.phpvms.net/forum * Documentation: http://www.phpvms.net/docs * * phpVMS is licenced under the following license: * Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) * View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/ * * @author Nabeel Shahzad * @copyright Copyright (c) 2008, Nabeel Shahzad * @link http://www.phpvms.net * @license http://creativecommons.org/licenses/by-nc-sa/3.0/ */ class PIREPData extends CodonData { public static $lasterror; public static $pirepid; /** * A generic find function for schedules. As parameters, do: * * $params = array( 's.depicao' => 'value', * 's.arricao' => array ('multiple', 'values'), * ); * * Syntax is ('s.columnname' => 'value'), where value can be * an array is multiple values, or with a SQL wildcard (%) * if that's what is desired. * * Columns from the schedules table should be prefixed by 's.', * the aircraft table as 'a.' * * You can also pass offsets ($start and $count) in order to * facilitate pagination * * @tutorial http://docs.phpvms.net/media/development/searching_and_retriving_schedules */ public static function findPIREPS($params, $count = '', $start = '') { $sql = 'SELECT p.*, UNIX_TIMESTAMP(p.submitdate) as submitdate, u.pilotid, u.firstname, u.lastname, u.email, u.rank, a.id AS aircraftid, a.name as aircraft, a.registration, dep.name as depname, dep.lat AS deplat, dep.lng AS deplng, arr.name as arrname, arr.lat AS arrlat, arr.lng AS arrlng FROM '.TABLE_PREFIX.'pireps p LEFT JOIN '.TABLE_PREFIX.'aircraft a ON a.id = p.aircraft LEFT JOIN '.TABLE_PREFIX.'airports AS dep ON dep.icao = p.depicao LEFT JOIN '.TABLE_PREFIX.'airports AS arr ON arr.icao = p.arricao LEFT JOIN '.TABLE_PREFIX.'pilots u ON u.pilotid = p.pilotid '; /* Build the select "WHERE" based on the columns passed */ $sql .= DB::build_where($params); if(Config::Get('PIREPS_ORDER_BY') != '') { $sql .= ' ORDER BY '.Config::Get('PIREPS_ORDER_BY'); } if(strlen($count) != 0) { $sql .= ' LIMIT '.$count; } if(strlen($start) != 0) { $sql .= ' OFFSET '. $start; } $ret = DB::get_results($sql); return $ret; }/** * Get internal data for the past $interval months, including the * total number of PIREPS and revenue * * @param array $where_params Any specific conditions to search on * @param int $interval The interval, in months * @return mixed This is the return value description * */ public static function getIntervalDataByMonth($where_params, $interval='6') { $date_clause = "DATE_SUB(NOW(), INTERVAL {$interval} MONTH) <= p.submitdate"; /* See if this array already exists */ if(!is_array($where_params)) { $where_params=array($date_clause); } else { $where_params[] = $date_clause; } $data = self::getIntervalData($where_params); if(!$data) { return array(); } foreach($data as $month) { $month = FinanceData::calculateFinances($month); } return $data; } /** * Get internal data for the past $interval days, including the * total number of PIREPS and revenue * * @param array $where_params Any specific conditions to search on * @param int $interval The interval, in days * @return mixed This is the return value description * */ public static function getIntervalDataByDays($where_params, $interval='7') { $date_clause = "DATE_SUB(CURDATE(), INTERVAL {$interval} DAY) <= p.submitdate"; /* See if this array already exists */ if(!is_array($where_params)) { $where_params=array($date_clause); } else { $where_params[] = $date_clause; } return self::getIntervalData($where_params, 'D'); } /** * Get interval financial data, with the date clause * passed in as a WHERE: * * "DATE_SUB(CURDATE(), INTERVAL {$interval} DAY) <= p.submitdate"; * * Or some form of a date limitation, but has to be within the * where clause * * @param array $where_params Any WHERE parameters * @param char $grouping How to group data - Y for yearly, M for monthly, D for daily * @return array Returns finance data according to the above grouping * */ public static function getIntervalData($where_params, $grouping='M') { $grouping = strtolower($grouping); if($grouping == 'y') { $format = '%Y'; } elseif($grouping == 'm') { $format = '%Y-%m'; } elseif($grouping == 'd') /* go by day */ { $format = '%Y-%m-%d'; } $sql = "SELECT DATE_FORMAT(p.submitdate, '{$format}') AS ym, UNIX_TIMESTAMP(p.submitdate) AS timestamp, COUNT(p.pirepid) AS total, SUM(p.revenue) as revenue, SUM(p.gross) as gross, SUM(p.fuelprice) as fuelprice, SUM(p.price) as price, SUM(p.expenses) as expenses, SUM((TIME_TO_SEC(flighttime_stamp)/60) * (pilotpay/60)) as pilotpay FROM ".TABLE_PREFIX."pireps p"; $sql .= DB::build_where($where_params); $sql .= ' GROUP BY `ym` ORDER BY `timestamp` ASC'; $results = DB::get_results($sql); return $results; } /** * Return all of the pilot reports. Can pass a start and * count for pagination. Returns 20 rows by default. If you * only want to return the latest n number of reports, use * getRecentReportsByCount() * */ public static function getAllReports($count = '', $start = 0) { return self::findPIREPS(array(), $count, $start); } /** * Get all of the reports by the accepted status. Use the * constants: * PIREP_PENDING, PIREP_ACCEPTED, PIREP_REJECTED,PIREP_INPROGRESS */ public static function getAllReportsByAccept($accepted = 0) { $params = array( 'p.accepted'=>$accept ); return self::findPIREPS($params); } public static function getAllReportsFromHub($accepted = 0, $hub) { $params = array( 'p.accepted' => $accepted, 'u.hub' => $hub ); return self::findPIREPS($params); } /** * Get the latest reports that have been submitted, * return the last 10 by default */ public static function getRecentReportsByCount($count = 10) { if($count == '') $count = 10; return self::findPIREPS('', $count); }/** * Get the latest reports by n number of days */ public static function getRecentReports($days=2) { # No => assumes just to plop in the entire expression "raw" $params = array( 'DATE_SUB(CURDATE(), INTERVAL '.$days.' DAY) <= p.submitdate' ); return self::findPIREPS($params); } /** * Get all of the reports by the exported status (true or false) */ public static function getReportsByExportStatus($status) { if($status === true) $status = 1; else $status = 0; return self::findPIREPS(array('p.exported'=>$status)); } /** * Get the number of reports on a certain date * Pass unix timestamp for the date */ public static function getReportCount($date) { $sql = 'SELECT COUNT(*) AS count FROM '.TABLE_PREFIX.'pireps WHERE DATE(submitdate)=DATE(FROM_UNIXTIME('.$date.'))'; $row = DB::get_row($sql); if(!$row) return 0; return ($row->count=='') ? 0 : $row->count; } /** * Get the number of reports on a certain date, for a certain route * * @param string $code Airline code * @param string $flightnum Flight number * @param timestamp $date UNIX timestamp */ public static function getReportCountForRoute($code, $flightnum, $date) { $MonthYear = date('mY', $date); $sql = "SELECT COUNT(*) AS count FROM ".TABLE_PREFIX."pireps WHERE DATE_FORMAT(submitdate, '%c%Y') = '$MonthYear' AND code='$code' AND flightnum='$flightnum'"; $row = DB::get_row($sql); return $row->count; }/** * Get the number of reports for the last x number of days * Returns 1 row for every day, with the total number of * reports per day */ public static function getCountsForDays($days = 7) { $sql = 'SELECT DISTINCT(DATE(submitdate)) AS submitdate, (SELECT COUNT(*) FROM '.TABLE_PREFIX.'pireps WHERE DATE(submitdate)=DATE(p.submitdate)) AS count FROM '.TABLE_PREFIX.'pireps p WHERE DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= p.submitdate'; return DB::get_results($sql); }/** * Get all of the details for a PIREP, including lat/long of the airports */ public static function getReportDetails($pirepid) { $sql = 'SELECT p.*, s.*, s.id AS scheduleid, p.route, p.route_details, u.pilotid, u.firstname, u.lastname, u.email, u.rank, dep.name as depname, dep.lat AS deplat, dep.lng AS deplng, arr.name as arrname, arr.lat AS arrlat, arr.lng AS arrlng, p.code, p.flightnum, p.depicao, p.arricao, p.price AS price, a.id as aircraftid, a.name as aircraft, a.registration, p.flighttime, p.distance, UNIX_TIMESTAMP(p.submitdate) as submitdate, p.accepted, p.log FROM '.TABLE_PREFIX.'pilots u, '.TABLE_PREFIX.'pireps p LEFT JOIN '.TABLE_PREFIX.'airports AS dep ON dep.icao = p.depicao LEFT JOIN '.TABLE_PREFIX.'airports AS arr ON arr.icao = p.arricao LEFT JOIN '.TABLE_PREFIX.'aircraft a ON a.id = p.aircraft LEFT JOIN '.TABLE_PREFIX.'schedules s ON s.code = p.code AND s.flightnum = p.flightnum WHERE p.pilotid=u.pilotid AND p.pirepid='.$pirepid; $row = DB::get_row($sql); $row->rawdata = unserialize($row->rawdata); /* Do any specific replacements here */ if($row) { /* If it's FSFlightKeeper, process the `rawdata` column, which contains array()'d copied of extra data that was sent by the ACARS. Run that through some templates which we've got. This can probably be generic-ized but it's fine now for FSFK. This can probably move through an outside function, but seems OK to stay in getReportDetails() for now, since this is semi-intensive code here (the most expensive is populating the templates, and I wouldn't want to run it for EVERY PIREP which is called by the system. */ if($row->source == 'fsfk') { /* Do data stuff in the logs */ $data = $row->rawdata; /* Process flight data */ if(isset($data['FLIGHTDATA'])) { Template::Set('data', $data['FLIGHTDATA']); $flightdata = Template::Get('fsfk_log_flightdata.tpl', true, true, true); $row->log.=$flightdata; unset($flightdata); } /* Process the flightplan */ if(isset($data['FLIGHTPLAN'])) { $value = trim($data['FLIGHTPLAN']); $lines = explode("\n", $value); Template::Set('lines', $lines); $flightplan = Template::Get('fsfk_log_flightplan.tpl', true, true, true); $row->log.=$flightplan; unset($flightplan); } /* Process flight critique data */ if(isset($data['FLIGHTCRITIQUE'])) { $value = $data['FLIGHTCRITIQUE']; $value = trim($value); preg_match_all("/(.*) \| (.*)\n/", $value, $matches); # Get these from a template Template::Set('matches', $matches); $critique = Template::Get('fsfk_log_flightcritique.tpl', true, true, true); $row->log.=$critique; unset($critique); } /* Process the flight images, last */ if(isset($data['FLIGHTMAPS'])) { Template::Set('images', $data['FLIGHTMAPS']); $flightimages = Template::Get('fsfk_log_flightimages.tpl', true, true, true); $row->log.=$flightimages; unset($flightimages); } } /* End "if FSFK" */ if($row->route_details != '') { $row->route_details = unserialize($row->route_details); } else { $row->route_details = NavData::parseRoute($row); # Save it for future? //PIREPData::updatePIREPFields($row->pirepid, array('route_details'=>serialize($row->route_details))); } } /* End "if $row" */ return $row; }/** * Get the latest reports for a pilot */ public static function getLastReports($pilotid, $count = 1, $status='') { $sql = 'SELECT * FROM '.TABLE_PREFIX.'pireps WHERE pilotid='.intval($pilotid); # Check it via the status if($status != '') { $sql .= ' AND accepted='.$status; } $sql .=' ORDER BY submitdate DESC LIMIT '.intval($count); if($count == 1) return DB::get_row($sql); else return DB::get_results($sql); }/** * Get a pilot's reports by the status. Use the * constants: * PIREP_PENDING, PIREP_ACCEPTED, PIREP_REJECTED, PIREP_INPROGRESS */ public static function getReportsByAcceptStatus($pilotid, $accept=0) { $sql = 'SELECT * FROM '.TABLE_PREFIX.'pireps WHERE pilotid='.intval($pilotid).' AND accepted='.intval($accept); return DB::get_results($sql); } /** * Get the count of comments */ public static function getCommentCount($pirepid) { $sql = 'SELECT COUNT(*) AS total FROM '.TABLE_PREFIX.'pirepcomments WHERE pirepid='.$pirepid.' GROUP BY pirepid'; $total = DB::get_row($sql); if($total == '') return 0; return $total->total; } public static function setAllExportStatus($status) { if($status === true) $status = 1; else $status = 0; $sql = 'UPDATE '.TABLE_PREFIX.'pireps SET `exported`='.$status; $res = DB::query($sql); if(DB::errno() != 0) { return false; } return true; } public static function setExportedStatus($pirepid, $status) { if($status === true) $status = 1; else $status = 0; return self::editPIREPFields($pirepid, array('exported' => $status)); }/** * Get all of the comments for a pilot report */ public static function getComments($pirepid) { $sql = 'SELECT c.*, UNIX_TIMESTAMP(c.postdate) as postdate, p.firstname, p.lastname FROM '.TABLE_PREFIX.'pirepcomments c, '.TABLE_PREFIX.'pilots p WHERE p.pilotid=c.pilotid AND c.pirepid='.$pirepid.' ORDER BY postdate ASC'; return DB::get_results($sql); } public static function deleteComment($comment_id) { $sql = 'DELETE FROM '.TABLE_PREFIX.'pirepcomments WHERE `id`='.$comment_id; $res = DB::query($sql); if(DB::errno() != 0) { return false; } return true; } /** * File a PIREP */ public static function newPIREP($pirepdata) { self::fileReport($pirepdata); } public static function filePIREP($pirepdata) { self::fileReport($pirepdata); } public static function fileReport($pirepdata) { /*$pirepdata = array('pilotid'=>'', 'code'=>'', 'flightnum'=>'', 'depicao'=>'', 'arricao'=>'', 'aircraft'=>'', 'flighttime'=>'', 'submitdate'=>'', 'comment'=>'', 'fuelused'=>'', 'source'=>'' 'log'=>'');*/ if(!is_array($pirepdata)) return false; $pirepdata['code'] = strtoupper($pirepdata['code']); $pirepdata['flightnum'] = strtoupper($pirepdata['flightnum']); $pirepdata['depicao'] = strtoupper($pirepdata['depicao']); $pirepdata['arricao'] = strtoupper($pirepdata['arricao']); /* Check if this PIREP was just submitted, check the last 10 minutes */ if(Config::Get('PIREP_CHECK_DUPLICATE') == true) { $time_limit = Config::Get('PIREP_TIME_CHECK'); if(empty($time_limit)) { $time_limit = 1; } $sql = "SELECT `pirepid` FROM ".TABLE_PREFIX."pireps WHERE `pilotid`={$pirepdata['pilotid']} AND `code`='{$pirepdata['code']}' AND `flightnum`='{$pirepdata['flightnum']}' AND DATE_SUB(NOW(), INTERVAL {$time_limit} MINUTE) <= `submitdate`"; $res = DB::get_row($sql); if($res) { self::$lasterror = 'This PIREP was just submitted!'; return; } } if(isset($pirepdata['log'])) { $pirepdata['log'] = DB::escape($pirepdata['log']); } else { $pirepdata['log'] = ''; } if($pirepdata['depicao'] == '' || $pirepdata['arricao'] == '') { self::$lasterror = 'The departure or arrival airports are blank'; return false; } # Check the aircraft if(!is_numeric($pirepdata['aircraft'])) { // Check by registration $ac = OperationsData::getAircraftByReg($pirepdata['aircraft']); if($ac) { $pirepdata['aircraft'] = $ac->id; } else { // Check by name $ac = OperationsData::getAircraftByName($pirepdata['aircraft']); if($ac) { $pirepdata['aircraft'] = $ac->id; } } } # Check the airports, add to database if they don't exist $depapt = OperationsData::getAirportInfo($pirepdata['depicao']); if(!$depapt) { $depapt = OperationsData::RetrieveAirportInfo($pirepdata['depicao']); } $arrapt = OperationsData::getAirportInfo($pirepdata['arricao']); if(!$arrapt) { $arrapt = OperationsData::RetrieveAirportInfo($pirepdata['arricao']); } # Look up the schedule $sched = SchedulesData::getScheduleByFlight($pirepdata['code'], $pirepdata['flightnum']); /* Get route information, and also the detailed layout of the route Store it cached, in case the schedule changes later, then the route information remains intact. Also, if the nav data changes, then the route is saved as it was */ if(!empty($pirepdata['route'])) { /* They supplied some route information, so build up the data based on that. It needs a certain structure passed, so build that */ $pirepdata['route'] = str_replace('SID', '', $pirepdata['route']); $pirepdata['route'] = str_replace('STAR', '', $pirepdata['route']); $pirepdata['route'] = trim($pirepdata['route']); $tmp = new stdClass(); $tmp->deplat = $depapt->lat; $tmp->deplng = $depapt->lng; $tmp->route = $pirepdata['route']; $pirepdata['route_details'] = NavData::parseRoute($tmp); $pirepdata['route_details'] = serialize($pirepdata['route_details']); unset($tmp); } if(empty($pirepdata['route']) && !empty($sched->route)) { $pirepdata['route'] = $sched->route; $pirepdata['route'] = str_replace('SID', '', $pirepdata['route']); $pirepdata['route'] = str_replace('STAR', '', $pirepdata['route']); $pirepdata['route'] = trim($pirepdata['route']); /* The schedule doesn't have any route_details, so let's populate the schedule while we're here. Then we'll use that same info to populate our details information */ if(empty($sched->route_details)) { $pirepdata['route_details'] = serialize(SchedulesData::getRouteDetails($sched->id)); } else { /* The schedule does have route information, and it's already been cached */ $pirepdata['route_details'] = $sched->route_details; } } $pirepdata['route'] = DB::escape($pirepdata['route']); if(!empty($pirepdata['route_details'])) { $pirepdata['route_details'] = DB::escape($pirepdata['route_details']); } /* This setting forces the next code to automatically calculate a load value for this current PIREP */ if(Config::Get('PIREP_OVERRIDE_LOAD') == true) { $pirepdata['load'] == ''; } # Check the load, if it's blank then look it up # Based on the aircraft that was flown if(!isset($pirepdata['load']) || empty($pirepdata['load'])) { $pirepdata['load'] = FinanceData::getLoadCount($pirepdata['aircraft'], $sched->flighttype); } /* If the distance isn't supplied, then calculate it */ if(!isset($pirepdata['distance']) || empty($pirepdata['distance'])) { $pirepdata['distance'] = OperationsData::getAirportDistance($depapt, $arrapt); } /* See if there's a landing rate */ if(!isset($pirepdata['landingrate']) || empty($pirepdata['landingrate'])) { $pirepdata['landingrate'] = 0; } /* Any "raw" parameterized data which needs to be added */ if(isset($pirepdata['rawdata'])) { $pirepdata['rawdata'] = DB::escape(serialize($pirepdata['rawdata'])); } else { $pirepdata['rawdata'] = ''; } /* Escape the comment field */ $pirepdata['log'] = DB::escape($pirepdata['log']); $comment = DB::escape($pirepdata['comment']); /* Proper timestamp */ $flighttime_stamp = str_replace('.', ':', $pirepdata['flighttime']).':00'; $pirepdata['flighttime'] = str_replace(':', '.', $pirepdata['flighttime']); /* Export status as 0 */ $pirepdata['exported'] = 0; $sql = "INSERT INTO ".TABLE_PREFIX."pireps( `pilotid`, `code`, `flightnum`, `depicao`, `arricao`, `route`, `route_details`, `distance`, `aircraft`, `flighttime`, `flighttime_stamp`, `landingrate`, `submitdate`, `accepted`, `log`, `load`, `fuelused`, `expenselist`, `source`, `exported`, `rawdata`) VALUES ( {$pirepdata['pilotid']}, '{$pirepdata['code']}', '{$pirepdata['flightnum']}', '{$pirepdata['depicao']}', '{$pirepdata['arricao']}', '{$pirepdata['route']}', '{$pirepdata['route_details']}', '{$pirepdata['distance']}', '{$pirepdata['aircraft']}', '{$pirepdata['flighttime']}', '{$flighttime_stamp}', '{$pirepdata['landingrate']}', NOW(), ".PIREP_PENDING.", '{$pirepdata['log']}', '{$pirepdata['load']}', '{$pirepdata['fuelused']}', '0', '{$pirepdata['source']}', {$pirepdata['exported']}, '{$pirepdata['rawdata']}')"; $ret = DB::query($sql); $pirepid = DB::$insert_id; // Add the comment if its not blank if($comment != '') { self::addComment($pirepid, $pirepdata['pilotid'], $pirepdata['comment']); } # Update the financial information for the PIREP, true to refresh fuel self::PopulatePIREPFinance($pirepid, true); # Do other assorted tasks that are along with a PIREP filing # Update the flown count for that route self::UpdatePIREPFeed(); # Update any pilot's information $pilotinfo = PilotData::getPilotData($pirepdata['pilotid']); $pilotcode = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); PilotData::UpdateLastPIREPDate($pilotinfo->pilotid); PirepAcData::search($pirepid); # Send an email to the admin that a PIREP was submitted $sub = "A PIREP has been submitted by {$pilotcode} ({$pirepdata['depicao']} - {$pirepdata['arricao']})"; $message="A PIREP has been submitted by {$pilotcode} ({$pilotinfo->firstname} {$pilotinfo->lastname})\n\n" ."{$pirepdata['code']}{$pirepdata['flightnum']}: {$pirepdata['depicao']} to {$pirepdata['arricao']}\n" ."Aircraft: {$pirepdata['aircraft']}\n" ."Flight Time: {$pirepdata['flighttime']}\n" ."Filed using: {$pirepdata['source']}\n\n" ."Comment: {$pirepdata['comment']}"; $email = Config::Get('EMAIL_NEW_PIREP'); if(empty($email)) { $email = ADMIN_EMAIL; } Util::SendEmail($email, $sub, $message); CentralData::send_pirep($pirepid); // Reset this ID back DB::$insert_id = $pirepid; self::$pirepid = $pirepid; return true; } public static function updateReport($pirepid, $pirepdata) { self::updateFlightReport($pirepid, $pirepdata); } public static function updatePIREP($pirepid, $pirepdata) { self::updateFlightReport($pirepid, $pirepdata); } public static function updateFlightReport($pirepid, $pirepdata) { /*$pirepdata = array('pirepid'=>$this->post->pirepid, 'code'=>$this->post->code, 'flightnum'=>$this->post->flightnum, 'leg'=>$this->post->leg, 'depicao'=>$this->post->depicao, 'arricao'=>$this->post->arricao, 'aircraft'=>$this->post->aircraft, 'flighttime'=>$this->post->flighttime, 'load'=>$this->post->load, 'price'=>$this->post->price, 'pilotpay' => $this->post->pilotpay, 'fuelused'=>$this->post->fuelused, 'fuelunitcost'=>$this->post->fuelunitcost, 'fuelprice'=>$fuelcost, 'expenses'=>$this->post->expenses ); */ if(!is_array($pirepdata)) { return false; } if($pirepdata['depicao'] == '' || $pirepdata['arricao'] == '') { return false; } $pirepinfo = self::getReportDetails($pirepid); $pirepdata['fuelprice'] = $pirepdata['fuelused'] * $pirepdata['fuelunitcost']; $flighttime_stamp = str_replace('.', ':', $pirepdata['flighttime']).':00'; $pirepdata['flighttime'] = str_replace(':', ',', $pirepdata['flighttime']); $data = array( 'price' => $pirepdata['price'], 'load' => $pirepdata['load'], 'expenses' => $pirepdata['expenses'], 'fuelprice' => $pirepdata['fuelprice'], 'pilotpay' => $pirepdata['pilotpay'], 'flighttime' => $pirepdata['flighttime'], ); $gross = floatval($pirepdata['load']) * floatval($pirepdata['price']); $revenue = self::getPIREPRevenue($data); $fields = array( 'code' => $pirepdata['code'], 'flightnum' => $pirepdata['flightnum'], 'depicao' => $pirepdata['depicao'], 'arricao' => $pirepdata['arricao'], 'aircraft' => $pirepdata['aircraft'], 'flighttime' => $pirepdata['flighttime'], 'flighttime_stamp' => $flighttime_stamp, 'load' => $pirepdata['load'], 'price' => $pirepdata['price'], 'gross' => $gross, 'pilotpay' => $pirepdata['pilotpay'], 'fuelused' => $pirepdata['fuelused'], 'fuelunitcost' => $pirepdata['fuelunitcost'], 'fuelprice' => $pirepdata['fuelprice'], 'expenses' => $pirepdata['expenses'], 'revenue' => $revenue, ); return self::editPIREPFields($pirepid, $fields); } /** * Update any fields in a PIREP, other update functions come down to this * * @param int $pirepid ID of the PIREP to update * @param array $fields Array, column name as key, with values to update * @return bool * */ public static function updatePIREPFields($pirepid, $fields) { return self::editPIREPFields($pirepid, $fields); } /** * Update any fields in a PIREP, other update functions come down to this * * @param int $pirepid ID of the PIREP to update * @param array $fields Array, column name as key, with values to update * @return bool * */ 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; } /** * * Populate PIREPS which have 0 values for the load/price, etc */ public static function populateEmptyPIREPS() { $sql = 'SELECT * FROM '.TABLE_PREFIX.'pireps '; $results = DB::get_results($sql); if(!$results) { return true; } foreach($results as $row) { self::PopulatePIREPFinance($row, true); } return true; } /** * Populate the PIREP with the fianancial info needed * Pass the PIREPID or the PIREP row */ public static function populatePIREPFinance($pirep, $reset_fuel = false) { if(!is_object($pirep) && is_numeric($pirep)) { $pirep = PIREPData::getReportDetails($pirep); if(!$pirep) { self::$lasterror = 'PIREP does not exist'; return false; } } # Set the PIREP ID $pirepid = $pirep->pirepid; $sched = SchedulesData::getScheduleByFlight($pirep->code, $pirep->flightnum, ''); if(!$sched) { self::$lasterror = 'Schedule does not exist. Please update this manually.'; return false; } $pilot = PilotData::getPilotData($pirep->pilotid); # Get the load factor for this flight if($pirep->load == '' || $pirep->load == 0) { $pirep->load = FinanceData::getLoadCount($pirep->aircraft, $sched->flighttype); } // Fix for bug #62, check the airport fuel price as 0 for live //$depapt = OperationsData::getAirportInfo($pirep->depicao); if($pirep->fuelunitcost == '' || $pirep->fuelunitcost == 0 || $reset_fuel == true) { $pirep->fuelunitcost = FuelData::getFuelPrice($pirep->depicao); } # Check the fuel if($pirep->fuelprice != '' || $reset_fuel == true) { $pirep->fuelprice = FinanceData::getFuelPrice($pirep->fuelused, $pirep->depicao); } # Get the expenses for a flight $total_ex = 0; $expense_list = ''; /* Account for any fixed-cost percentages */ $allexpenses = FinanceData::getFlightExpenses(); if(is_array($allexpenses)) { foreach($allexpenses as $ex) { $total_ex += $ex->cost; } } /* Account for any per-flight %age expenses */ $all_percent_expenses = FinanceData::getFlightPercentExpenses(); $gross = floatval($sched->price) * floatval($pirep->load); if(is_array($all_percent_expenses)) { foreach($all_percent_expenses as $ex) { $cost = str_replace('%', '', $ex->cost); $percent = $cost / 100; $total = ($gross * $percent); $total_ex += $total; } } $data = array( 'price' => $sched->price, 'load' => $pirep->load, 'fuelprice' => $pirep->fuelprice, 'expenses' => $total_ex, 'pilotpay' => $pilot->payrate, 'flighttime' => $pirep->flighttime, ); $revenue = self::getPIREPRevenue($data); /* Now update the PIREP */ $fields = array( 'price' => $sched->price, 'load' => $pirep->load, 'gross' => $gross, 'fuelprice' => $pirep->fuelprice, 'fuelunitcost' => $pirep->fuelunitcost, 'expenses' => $total_ex, 'pilotpay' => $pilot->payrate, 'revenue' => $revenue ); if(isset($data['load']) && $data['load'] != '') $fields['load'] = $data['load']; return self::editPIREPFields($pirepid, $fields); } public static function getPIREPRevenue($data) { $gross = $data['price'] * $data['load']; $pilotpay = $data['pilotpay'] * $data['flighttime']; if($data['expenses'] == '') $data['expenses'] = 0; $revenue = $gross - $data['expenses'] - $data['fuelprice'] - $pilotpay; return $revenue; } /** * Delete a flight report and all of its associated data */ public static function deletePIREP($pirepid) { self::deleteFlightReport($pirepid); } public static function deleteFlightReport($pirepid) { $pirepid = intval($pirepid); $pirep_details = self::getReportDetails($pirepid); $sql = 'DELETE FROM '. TABLE_PREFIX.'pireps WHERE pirepid='.$pirepid; DB::query($sql); # Delete any comments and fields $sql = 'DELETE FROM '. TABLE_PREFIX.'pirepcomments WHERE pirepid='.$pirepid; DB::query($sql); # Delete any custom field data $sql = 'DELETE FROM '. TABLE_PREFIX.'pirepvalues WHERE pirepid='.$pirepid; DB::query($sql); # Check if this was accepted report # If it was, remove it from that pilot's stats if($pirep_details->accepted == PIREP_ACCEPTED) { PilotData::UpdateFlightData($pirep_details->pilotid, ($pirep_details->flighttime) * -1, -1); } self::UpdatePIREPFeed(); } public static function deleteAllRouteDetails() { $sql = "UPDATE ".TABLE_PREFIX."pireps SET `route_details` = ''"; $row = DB::get_row($sql); if(!$row) { return false; } return true; } public static function UpdatePIREPFeed() { # Load PIREP into RSS feed $reports = PIREPData::findPIREPS(array(), 10); $rss = new RSSFeed('Latest Pilot Reports', SITE_URL, 'The latest pilot reports'); # Empty the rss file if there are no pireps if(!$reports) { //file_put_contents(LIB_PATH.'/rss/latestpireps.rss', ''); $reports = array(); return; } foreach($reports as $report) { $rss->AddItem('Report #'.$report->pirepid.' - '.$report->depicao.' to '.$report->arricao, SITE_URL.'/admin/index.php?admin=viewpending','', 'Filed by '.PilotData::getPilotCode($report->code, $report->pilotid) . " ($report->firstname $report->lastname)"); } $rss->BuildFeed(LIB_PATH.'/rss/latestpireps.rss'); } /** * Return true if a PIREP if under $age_hours old * * @param int $pirepid PIREP ID * @param int $age_hours The age in hours to see if a PIREP is under * @return bool True/false * */ public static function PIREPUnderAge($pirepid, $age_hours) { $pirepid = intval($pirepid); $sql = "SELECT pirepid FROM ".TABLE_PREFIX."pireps WHERE DATE_SUB(CURDATE(), INTERVAL {$age_hours} HOUR) <= submitdate AND pirepid={$pirepid}"; $row = DB::get_row($sql); if(!$row) { return false; } return true; } /** * Append to a flight report's log */ public static function appendToLog($pirepid, $log) { $sql = 'UPDATE '.TABLE_PREFIX.'pireps SET `log` = CONCAT(`log`, \''.$log.'\') WHERE `pirepid`='.$pirepid; $res = DB::query($sql); if(DB::errno() != 0) return false; return true; } /** * Get all of the reports for a pilot. Pass the pilot id * The ID is their database ID number, not their airline ID number * * @deprecated Use findPIREPS() instead */ public static function getAllReportsForPilot($pilotid) { return self::findPIREPS(array('p.pilotid'=>$pilotid)); } /** * Change the status of a PIREP. For the status, use the * constants: * PIREP_PENDING, PIREP_ACCEPTED, PIREP_REJECTED,PIREP_INPROGRESS * * @deprecated Use editPIREPFields instead */ public static function ChangePIREPStatus($pirepid, $status) { return self::editPIREPFields($pirepid, array('accepted' => $status)); } /** * Add a comment to the flight report */ public static function addComment($pirepid, $pilotid, $comment) { $comment = DB::escape($comment); $sql = "INSERT INTO ".TABLE_PREFIX."pirepcomments (`pirepid`, `pilotid`, `comment`, `postdate`) VALUES ($pirepid, $pilotid, '$comment', NOW())"; $res = DB::query($sql); if(DB::errno() != 0) return false; return true; } public static function getAllFields() { return DB::get_results('SELECT * FROM '.TABLE_PREFIX.'pirepfields'); } /** * Get all of the "cusom fields" for a pirep */ public static function getFieldData($pirepid) { $sql = 'SELECT f.title, f.name, v.value FROM '.TABLE_PREFIX.'pirepfields f LEFT JOIN '.TABLE_PREFIX.'pirepvalues v ON f.fieldid=v.fieldid AND v.pirepid='.intval($pirepid); return DB::get_results($sql); } public static function getFieldInfo($id) { $sql = 'SELECT * FROM '.TABLE_PREFIX.'pirepfields WHERE fieldid='.$id; return DB::get_row($sql); } public static function getFieldValue($fieldid, $pirepid) { $sql = 'SELECT * FROM '.TABLE_PREFIX.'pirepvalues WHERE fieldid='.$fieldid.' AND pirepid='.$pirepid; $ret = DB::get_row($sql); return $ret->value; } /** * Add a custom field to be used in a PIREP */ public static function AddField($title, $type='', $values='') { $fieldname = strtoupper(str_replace(' ', '_', $title)); //$values = DB::escape($values); if($type == '') $type = 'text'; $sql = "INSERT INTO " . TABLE_PREFIX ."pirepfields (title, name, type, options) VALUES ('$title', '$fieldname', '$type', '$values')"; $res = DB::query($sql); if(DB::errno() != 0) return false; return true; } /** * Edit the field */ public static function EditField($id, $title, $type, $values='') { $fieldname = strtoupper(str_replace(' ', '_', $title)); $sql = "UPDATE ".TABLE_PREFIX."pirepfields SET title='$title',name='$fieldname', type='$type', options='$values' WHERE fieldid=$id"; $res = DB::query($sql); if(DB::errno() != 0) return false; return true; } /** * Save PIREP fields */ public static function SaveFields($pirepid, $list) { if(!is_array($list) || $pirepid == '') return false; $allfields = self::getAllFields(); if(!$allfields) return true; foreach($allfields as $field) { // See if that value already exists $sql = 'SELECT id FROM '.TABLE_PREFIX.'pirepvalues WHERE fieldid='.$field->fieldid.' AND pirepid='.$pirepid; $res = DB::get_row($sql); $fieldname =str_replace(' ', '_', $field->name); $value = $list[$fieldname]; if($res) { $sql = 'UPDATE '.TABLE_PREFIX."pirepvalues SET value='$value' WHERE fieldid=$field->fieldid AND pirepid=$pirepid"; } else { $sql = "INSERT INTO ".TABLE_PREFIX."pirepvalues (fieldid, pirepid, value) VALUES ($field->fieldid, $pirepid, '$value')"; } DB::query($sql); } return true; } public static function DeleteField($id) { $sql = 'DELETE FROM '.TABLE_PREFIX.'pirepfields WHERE fieldid='.$id; $res = DB::query($sql); if(DB::errno() != 0) return false; return true; //TODO: delete all of the field values! //$sql = 'DELETE FROM '.TABLE_PREFIX.' } /** * Show the graph of the past week's reports. Outputs the * image unless $ret == true * * @deprecated */ public static function ShowReportCounts($ret=false) { // Recent PIREP #'s $max = 0; $data = array(); # Get the past 7 days $time_start = strtotime('-7 days'); $time_end = date('Ymd'); do { $count = PIREPData::getReportCount($time_start); $data[date('m/d', $time_start)] = $count; $time_start += SECONDS_PER_DAY; $check = date('Ymd', $time_start); } while ($check <= $time_end); return $data; } } Quote
Wupperbengel Posted September 11, 2016 Report Posted September 11, 2016 (edited) how can I fix it? MySQL5.5 Deprecated on line 52 ------------------------------ 45 case 'savesettings': 46 $this->edit_settings_post(); 47 return; 48 break; 50 } 52 $this->set('allcriteria', PirepAcData::get_criteria()); 53 $this->render('PirepAutoAccept/autopirep_criterialist.tpl'); 54 $this->set('settings', PirepAcData::get_settings()); 55 $this->render('PirepAutoAccept/autopirep_settings_mainform.tpl'); 56 $this->render('PirepAutoAccept/footer.tpl'); 58 } 60 public function addcriteria() ------------------------------ i´ve found the solution: Replace the code with the original with the () and then go into core/common/PIREPAcData.class.php and find this public function get_criteria() and replace it with public static function get_criteria() Edited September 11, 2016 by Wupperbengel Quote
lapw123 Posted October 30, 2016 Report Posted October 30, 2016 hello vangelis i just installed your module i can not get it work any suggestions ? , and yes i got the simbrif to work as well like i got it installed but it dont approve or reject any flights Quote
Members Vangelis Posted October 31, 2016 Author Members Report Posted October 31, 2016 can you post a link to a pirep , your criteria list , and your pirepdata.class.php Quote
lapw123 Posted October 31, 2016 Report Posted October 31, 2016 (edited) http://thaiairwaysvi...s/viewreport/12 pirep report edit this one i manualy approved http://prntscr.com/d185xd criteria PIREPData.class.php Edited October 31, 2016 by lapw123 Quote
Members Vangelis Posted October 31, 2016 Author Members Report Posted October 31, 2016 do you have a report with the criteria that you want ? Quote
lapw123 Posted October 31, 2016 Report Posted October 31, 2016 (edited) Well That is all setup for now i want to so evry flight for now higer than -500 feet in landing rate Will be rejected Edited October 31, 2016 by lapw123 Quote
lapw123 Posted October 31, 2016 Report Posted October 31, 2016 do you have a report with the criteria that you want ? yes but like i said i just wanna do like when they get over 500 feet they get rejectet and when they got less than 500 at landing rate that it be auto approved Quote
Melli Posted December 6, 2016 Report Posted December 6, 2016 (edited) hi. i importet the module...installed....and the installing was ok. no problems all working fine...no errors...nothing, but it dont autoaccept and its not working. hmmmm?? here a screenshot from the last pirep (i overdraw the pilotsname) and a screenshot from my admin panel: PIREPData.class.php Edited December 7, 2016 by Melli Quote
Members Vangelis Posted December 7, 2016 Author Members Report Posted December 7, 2016 As it is searching in the text part of the log can you please attach or link a full log of a pirep ? Quote
Melli Posted December 8, 2016 Report Posted December 8, 2016 xacars have no log entries (empty) and FS passengers pirep has this log: but i want prefer xacars for working: dirty testflight :-) Log for F4B8 CompanyName=Limbus nPilotName=F4B0001 nFlightId=F4B177 nOnlineNetworkNbr=0 nFlightDate=2016-12-06 nAircraftName=Boeing 737-800 Paint6 nAircraftType=MEJ nNbrPassengers=118 nCargoWeight=0 lbs nMtow=155499 lbs nStartAircraftWeight=119863 lbs nEndAircraftWeight=107307 lbs nStartFuelQuantity=6685 kg nEndFuelQuantity=753 kg nDepartureIcaoName=LIRF - Fiumicino - Italy nArrivalIcaoName=LEPA - Palma De Mallorca - Spain nDepartureLocalHour=20:05 nArrivalLocalHour=21:37 nDepartureGmtHour=19:05:00 nArrivalGmtHour=20:37:00 nTotalBlockTime=01:31:22 nTotalBlockTimeNight=01:31:22 nTotalAirbornTime=01:22:12 nTotalTimeOnGround=00:11:22 nTotalDistance=454 Nm nMaxAltitude=35016ft nCruiseSpeed=446 kt nCruiseMachSpeed=0.74 nCruiseTimeStartSec=981 nCruiseTimeStopSec=3901 nCruiseFuelStart=4803 kg nCruiseFuelStop=1419 kg nLandingSpeed=180 kt nLandingPitch=3.77 nTouchDownVertSpeedFt=-614.61 nCaptainSentMayday=0 nCrashFlag=0 nFlightResult=Horrible nMaxTimeAcceleration=1 nFsPassengersVersion=Dec 22 2008 nPassengersOpinion=77 nPassengersOpinionText=-Are pleased to have landed right on schedule. n-Were cheerful because of the drinks served . n-Were in a better mood because they had food. n-Were angry because you made what seemed to be a dangerous landing. n-Were very anxious because of the problem during flight. n-Were relieved to land safely after an emergency. n-Wonder if they landed or if they crashed (hard landing). n nFailureText=The flaps were extended at excessive airspeed and were damaged. The pilot landed roughly causing one tire to explode. nCasualtiesText= nPilotBonusText=You landed at the scheduled airport. (+30) nPrecise arrival time at destination.(-00h01:23 difference) (+100) n nBonusPoints=130 nPilotPenalityText=You made a serious pilot error that resulted in a critical problem. (-800) nLanding so roughly that a tire explode is not a good idea. (-300) nYou had a serious failure aboard and you forgot to call a mayday. (-350) nYou made a very hard landing at -614 ft/mn and the aircraft sustained damage. (-400) nExceeding maximum speed of this aircraft is very dangerous. (-600) nYou have exceeded the flap speed limit by 25.87kts (-258) nAll aircraft are prohibited to exceed 250kts below 10000 ft AMSL; your speed was 54 kts above this limit Our company received a fine of $601. (-163) n nPenalityPoints=2870 nBitsPenalityDisabled=0 n Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.