Changeset 366 for trunk/download.php
- Timestamp:
- Mar 9, 2010, 1:01:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/download.php
r365 r366 31 31 if (array_key_exists('createverse', $_GET) and Licence(LICENCE_ADMIN)) { 32 32 if (array_key_exists('verse', $_POST)) { //ukládání 33 $Database->SQLCommand('INSERT INTO ` verseclient` (`verse` ,`date` ,`text` ,`User`)33 $Database->SQLCommand('INSERT INTO `CzWoWPackageVersion` (`Version` ,`Date` ,`Text` ,`User`) 34 34 VALUES ( "'.$_POST['verse'].'", NOW( ) , "'.$_POST['text'].'", "'.$_SESSION['UserID'].'");'); 35 35 WriteLog('Nová verze ('.$_POST['verse'].') češtiny pro clienta uložena.', LOG_TYPE_MODERATOR); … … 43 43 $Tables = 'Texty obsažené v addonu: Přeložené/nepřeložené ProcentaPřeložených% 44 44 '; 45 foreach($ExportSetting['groups'] as $Index) $Tables .= GetPercentOfTable($Index, implode(',', $ExportSetting['users-selection']));45 foreach($ExportSetting['groups'] as $Index) $Tables .= GetPercentOfTable($Index, implode(',', $ExportSetting['users-selection'])); 46 46 47 47 $ID = $Database->SQLCommand('SELECT `Name` FROM `User` WHERE `ID` IN('.implode(',', $ExportSetting['users-selection']).')'); … … 62 62 echo('<br />Stažený soubor pouze rozbalte a zkopírujte do kořenové složky wow (C:\Program Files\World Of Warcraft\). Hru spouštějte přes soubor WoWME.exe <br /><br />'. 63 63 '<table class="BaseTable"><tr><th>Verze/datum</th><th>Popis</th></tr>'); 64 $ID = $Database->SQLCommand('SELECT * FROM ` verseclient` ORDER BY `Date` DESC');64 $ID = $Database->SQLCommand('SELECT * FROM `CzWoWPackageVersion` ORDER BY `Date` DESC'); 65 65 while($Line = mysql_fetch_assoc($ID)) 66 66 { 67 67 echo('<tr>'. 68 '<td><strong>'.$Line[' verse'].'</strong> <a href="tmp/Addon/CzWoW_'.$Line['verse'].'.zip">Stáhnout</a> <br />'.$Line['date'].'</td>'.69 '<td>'.str_replace( chr(13),'<br />',$Line['text']).'</td>');68 '<td><strong>'.$Line['Version'].'</strong> <a href="tmp/Addon/CzWoW_'.$Line['Version'].'.zip">Stáhnout</a> <br />'.$Line['Date'].'</td>'. 69 '<td>'.str_replace("\r", '<br />', $Line['Text']).'</td>'); 70 70 echo('</tr>'); 71 71 }
Note:
See TracChangeset
for help on using the changeset viewer.