Changeset 880 for trunk/Modules/Export/cmdmpqexport.php
- Timestamp:
- Apr 7, 2020, 10:15:48 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Export/cmdmpqexport.php
r867 r880 17 17 $Output = ''; 18 18 19 if (defined('STDIN') == false)19 if (defined('STDIN') == false) 20 20 { 21 21 $Output = T('Access denied'); … … 23 23 } 24 24 25 foreach ($_SERVER['argv'] as $parameter)25 foreach ($_SERVER['argv'] as $parameter) 26 26 { 27 if (strpos($parameter, '=') !== false)27 if (strpos($parameter, '=') !== false) 28 28 { 29 29 $index = substr($parameter, 0, strpos($parameter, '=')); … … 33 33 } else $_GET[$parameter] = ''; 34 34 } 35 if (!array_key_exists('ExportId', $_GET) and !array_key_exists('needgeneration', $_GET) and !array_key_exists('version', $_GET) and !array_key_exists('dbc', $_GET) and !array_key_exists('lua', $_GET) and !array_key_exists('addon', $_GET)) {35 if (!array_key_exists('ExportId', $_GET) and !array_key_exists('needgeneration', $_GET) and !array_key_exists('version', $_GET) and !array_key_exists('dbc', $_GET) and !array_key_exists('lua', $_GET) and !array_key_exists('addon', $_GET)) { 36 36 $Output .= 'Usage type_export=id_export -for export<br />'; 37 37 $Output .= 'Usage ExportId=id_export - for write export info<br />'; … … 43 43 } 44 44 //37 45 if (array_key_exists('lua', $_GET)) {45 if (array_key_exists('lua', $_GET)) { 46 46 $Export = new Export($System); 47 47 $Export->Id = $_GET['lua']; … … 53 53 ',$Output); 54 54 } 55 if (array_key_exists('version', $_GET)) {55 if (array_key_exists('version', $_GET)) { 56 56 $Export = new Export($System); 57 57 $Export->Id = $_GET['version']; … … 63 63 ',$Output); 64 64 } 65 if (array_key_exists('dbc', $_GET)) {65 if (array_key_exists('dbc', $_GET)) { 66 66 $Export = new Export($System); 67 67 $Export->Id = $_GET['dbc']; … … 73 73 ',$Output); 74 74 } 75 if (array_key_exists('addon', $_GET)) {75 if (array_key_exists('addon', $_GET)) { 76 76 $Addon = new ExportAddon($System); 77 77 $Addon->Id = $_GET['addon']; … … 84 84 } 85 85 86 if (array_key_exists('needgeneration', $_GET)) {86 if (array_key_exists('needgeneration', $_GET)) { 87 87 $DbRows = $System->Database->query('SELECT `ClientVersion`.`Version` AS `Version`, '. 88 88 '`Export`.`Id`,`Export`.`ClientVersion`,`Export`.`OutputType`,`Export`.`Title`,'. … … 96 96 if ($Export->NeedGeneration()) { 97 97 $DbResult = $System->Database->query('SELECT * FROM `ExportTask` WHERE `Export` = '.$Export->Id); 98 if ($DbResult->num_rows == 0)98 if ($DbResult->num_rows == 0) 99 99 { 100 100 $System->Database->query('INSERT INTO `ExportTask` (`Export` ,`TimeStart` ) VALUES ('.$Export->Id.', NOW())'); … … 114 114 } 115 115 116 if (array_key_exists('ExportId', $_GET)) {116 if (array_key_exists('ExportId', $_GET)) { 117 117 $Export = new Export($System); 118 118 $Export->Id = $_GET['ExportId'];
Note:
See TracChangeset
for help on using the changeset viewer.