Changeset 706 for trunk/admin/index.php
- Timestamp:
- Jan 4, 2014, 11:31:16 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/index.php
r676 r706 189 189 global $System,$TranslationTree; 190 190 $Output = ''; 191 if (array_key_exists('GameVersion', $_GET)) { 192 $_SESSION['GameVersion'] = $_GET['GameVersion']; 193 } 194 if (!array_key_exists('GameVersion', $_SESSION)) 195 $_SESSION['GameVersion'] = $System->Config['Web']['GameVersion']; 196 197 $Output .= '<br />Nastavená verze: '.$_SESSION['GameVersion'].'<br />'; 198 191 199 if (array_key_exists('GroupItem', $_GET)) { 192 $DbResult = $System->Database->query('SELECT * FROM `ClientVersion` WHERE `Version` = "'.$ System->Config['Web']['GameVersion'].'"');200 $DbResult = $System->Database->query('SELECT * FROM `ClientVersion` WHERE `Version` = "'.$_SESSION['GameVersion'].'"'); 193 201 $Version = $DbResult->fetch_assoc(); 194 202 $System->Database->query('INSERT INTO `GroupItemDBC` (`Id` ,`ClientVersion` ,`GroupItem` ,`ColumnIndex`)VALUES (NULL , \''.$Version['Id'].'\', \''.$_GET['GroupItem'].'\', \''.$_GET['ColumnIndex'].'\')'); … … 207 215 $File = new FileStream(); 208 216 209 $File->OpenFile(dirname(__FILE__).'/../source/'.$ System->Config['Web']['GameVersion'].'/dbc/'.$Group['DBCFileName'].'.dbc.csv');217 $File->OpenFile(dirname(__FILE__).'/../source/'.$_SESSION['GameVersion'].'/dbc/'.$Group['DBCFileName'].'.dbc.csv'); 210 218 211 219 //while(!$File->EOF()) … … 239 247 $Output .= '</table>'; 240 248 } else { 249 250 $DbResult = $System->Database->query('SELECT * FROM `ClientVersion`'); 251 while($Version = $DbResult->fetch_assoc()) 252 { 253 $Output .= '<a href="'.$System->Link('/admin/?action=dbcstructure&GameVersion='.$Version['Version']).'">'.$Version['Version'].'</a> '; 254 255 } 256 $Output .= '<br /><br />'; 257 241 258 foreach($TranslationTree as $Group) 242 259 {
Note:
See TracChangeset
for help on using the changeset viewer.