Changeset 365 for trunk/download.php
- Timestamp:
- Mar 9, 2010, 11:29:05 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/download.php
r361 r365 13 13 $Group = $TranslationTree[$TableID]; 14 14 15 $ID = mysql_fetch_row($Database->SQLCommand('SELECT count(distinct(entry)) FROM '.$Group['TablePrefix'].' WHERE (Language <> 0) AND (Complete = 1) AND UserIN('.$Users.')'));15 $ID = mysql_fetch_row($Database->SQLCommand('SELECT COUNT(DISTINCT(`Entry`)) FROM '.$Group['TablePrefix'].' WHERE (`Language` <> 0) AND (`Complete` = 1) AND `User` IN('.$Users.')')); 16 16 $NumberTranslate = $ID[0]; 17 17 18 $ID = mysql_fetch_row($Database->SQLCommand('SELECT count(*) FROM '.$Group['TablePrefix'].' WHERE (Language= 0)'));18 $ID = mysql_fetch_row($Database->SQLCommand('SELECT count(*) FROM `'.$Group['TablePrefix'].'` WHERE (`Language` = 0)')); 19 19 $NumberAJ = $ID[0]; 20 20 … … 28 28 } 29 29 30 if (array_key_exists('createverse', $_GET) and Licence(LICENCE_ADMIN)) { 30 /* 31 if (array_key_exists('createverse', $_GET) and Licence(LICENCE_ADMIN)) { 31 32 if (array_key_exists('verse', $_POST)) { //ukládání 32 $Database->SQLCommand('INSERT INTO `verseclient` (`verse` ,`date` ,`text` ,` user`)33 $Database->SQLCommand('INSERT INTO `verseclient` (`verse` ,`date` ,`text` ,`User`) 33 34 VALUES ( "'.$_POST['verse'].'", NOW( ) , "'.$_POST['text'].'", "'.$_SESSION['UserID'].'");'); 34 35 WriteLog('Nová verze ('.$_POST['verse'].') češtiny pro clienta uložena.', LOG_TYPE_MODERATOR); … … 37 38 'Verze: <input type="text" name="verse" /> <input type="submit" value="Uložit" /><br />'. 38 39 'Popis: <textarea rows="20" cols="60" name="text">'); 39 $Line = mysql_fetch_assoc($Database->SQLCommand('SELECT ExportSetting FROM user Where ID= '.$_SESSION['UserID']));40 $Line = mysql_fetch_assoc($Database->SQLCommand('SELECT `ExportSetting` FROM `User` WHERE `ID` = '.$_SESSION['UserID'])); 40 41 $ExportSetting = unserialize($Line['ExportSetting']); 41 42 … … 44 45 foreach($ExportSetting['groups'] as $Index) $Tables .= GetPercentOfTable($Index,implode(',', $ExportSetting['users-selection'])); 45 46 46 $ID = $Database->SQLCommand('SELECT user FROM user WHERE IDIN('.implode(',', $ExportSetting['users-selection']).')');47 $ID = $Database->SQLCommand('SELECT `Name` FROM `User` WHERE `ID` IN('.implode(',', $ExportSetting['users-selection']).')'); 47 48 $Users = 'Vyexportovány překlady od uživatelů: ( '; 48 while($ Line = mysql_fetch_assoc($ID)) $Users .= $Line['user'].', '; $Users .= ' )';49 while($User = mysql_fetch_assoc($ID)) $Users .= $User['Name'].', '; $Users .= ' )'; 49 50 //Výpis 50 51 echo (' … … 55 56 } 56 57 } 58 */ 57 59 58 60 if(array_key_exists('addon', $_GET)) … … 60 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 />'. 61 63 '<table class="BaseTable"><tr><th>Verze/datum</th><th>Popis</th></tr>'); 62 $ID = $Database->SQLCommand('SELECT * FROM verseclient ORDER BY DATEDESC');64 $ID = $Database->SQLCommand('SELECT * FROM `verseclient` ORDER BY `Date` DESC'); 63 65 while($Line = mysql_fetch_assoc($ID)) 64 66 {
Note:
See TracChangeset
for help on using the changeset viewer.