Changeset 526 for trunk/export
- Timestamp:
- Feb 20, 2013, 11:45:54 PM (12 years ago)
- Location:
- trunk/export
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/export.php
r525 r526 35 35 $this->UserNames = substr($this->UserNames, 2); 36 36 37 $DbResult = $this->Database->query('SELECT * FROM `ClientVersion` WHERE `Id`='.$this->Export['ClientVersion']); 38 $this->ClientVersion = $DbResult->fetch_assoc(); 37 if($this->Export['ClientVersion'] != '') 38 { 39 $DbResult = $this->Database->query('SELECT * FROM `ClientVersion` WHERE `Id`='.$this->Export['ClientVersion']); 40 $this->ClientVersion = $DbResult->fetch_assoc(); 41 } else $this->ClientVersion = ''; 39 42 } 40 43 41 44 function BuildQuery($Group, $Columns = '', $Version = '') 42 45 { 43 global $TranslationTree ;46 global $TranslationTree, $Config; 44 47 45 48 if ($Version <> '') … … 140 143 global $Config, $TranslationTree, $AoWoWconf; 141 144 142 require_once('../aowow/configs/config.php');145 //require_once('../aowow/configs/config.php'); 143 146 144 147 $Buffer = $this->ExportToMangosSQL(); … … 196 199 global $TranslationTree, $User; 197 200 198 $this->LoadFilters( $this->Id);201 $this->LoadFilters(); 199 202 200 203 $Buffer = '<?xml version="1.0" encoding="utf-8"?>'."\n". -
trunk/export/index.php
r525 r526 580 580 $Export->Id = $_GET['ExportId']; 581 581 $Export->Init(); 582 if($Export->ClientVersion == '') $Output = ShowMessage('Nebyla vybrána verze klienta', MESSAGE_CRITICAL); 583 else { 584 $Export->LoadFilters(); 585 586 if($Export->ClientVersion['BuildNumber'] == '') $Output = ShowMessage('Nebyla vybrána verze klienta', MESSAGE_CRITICAL); 582 $Export->LoadFilters(); 583 584 if(($Export->Export['ClientVersion'] == '') or ($Export->ClientVersion['BuildNumber'] == '')) 585 $Output = ShowMessage('Nebyla vybrána verze klienta', MESSAGE_CRITICAL); 587 586 else { 588 587 $GroupListQuery = 'SELECT `Group`.* FROM `Group` '. … … 640 639 $Output .= '<tr><td><strong>Celkem</strong></td><td><strong>'.$Translated.'</strong></td><td><strong>'.$Total.'</strong></td><td><strong>'.ProgressBar(150, round($Percent, 2)).'</strong></td></tr>'; 641 640 $Output .= '</table>'; 642 }643 641 } 644 642 return($Output);
Note:
See TracChangeset
for help on using the changeset viewer.