Changeset 365 for trunk/download.php


Ignore:
Timestamp:
Mar 9, 2010, 11:29:05 AM (15 years ago)
Author:
george
Message:
  • Upraveno: Jména tabulek v databází upraveny na stejná s prvními velkými písmeny.
  • Upraveno: Doplněny SQL uvozovky do mnoha SQL dotazů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/download.php

    r361 r365  
    1313  $Group = $TranslationTree[$TableID];
    1414
    15   $ID = mysql_fetch_row($Database->SQLCommand('SELECT count(distinct(entry)) FROM '.$Group['TablePrefix'].' WHERE (Language <> 0) AND (Complete = 1) AND User IN('.$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.')'));
    1616  $NumberTranslate = $ID[0];
    1717 
    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)'));
    1919  $NumberAJ = $ID[0];
    2020
     
    2828}
    2929
    30   if (array_key_exists('createverse', $_GET) and Licence(LICENCE_ADMIN)) {
     30  /*
     31   if (array_key_exists('createverse', $_GET) and Licence(LICENCE_ADMIN)) {
    3132    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`)
    3334                  VALUES ( "'.$_POST['verse'].'", NOW( ) , "'.$_POST['text'].'", "'.$_SESSION['UserID'].'");');
    3435      WriteLog('Nová verze ('.$_POST['verse'].') češtiny pro clienta uložena.', LOG_TYPE_MODERATOR);
     
    3738      'Verze: <input type="text" name="verse" /> <input type="submit" value="Uložit" /><br />'.
    3839      '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']));
    4041      $ExportSetting = unserialize($Line['ExportSetting']);     
    4142       
     
    4445      foreach($ExportSetting['groups'] as $Index) $Tables .= GetPercentOfTable($Index,implode(',', $ExportSetting['users-selection']));
    4546     
    46       $ID = $Database->SQLCommand('SELECT user FROM user WHERE ID IN('.implode(',', $ExportSetting['users-selection']).')');
     47      $ID = $Database->SQLCommand('SELECT `Name` FROM `User` WHERE `ID` IN('.implode(',', $ExportSetting['users-selection']).')');
    4748      $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 .= ' )';
    4950      //Výpis
    5051      echo ('
     
    5556    }
    5657  }
     58  */
    5759
    5860if(array_key_exists('addon', $_GET))
     
    6062  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 />'.
    6163  '<table  class="BaseTable"><tr><th>Verze/datum</th><th>Popis</th></tr>');
    62   $ID = $Database->SQLCommand('SELECT * FROM verseclient ORDER BY DATE DESC');
     64  $ID = $Database->SQLCommand('SELECT * FROM `verseclient` ORDER BY `Date` DESC');
    6365  while($Line = mysql_fetch_assoc($ID))
    6466  {
Note: See TracChangeset for help on using the changeset viewer.