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/includes/global_function.php

    r357 r365  
    223223    // $User = $_SESSION['User'];
    224224    $Pass = $_SESSION['Pass'];
    225     $Line = mysql_fetch_array($Database->SQLCommand('SELECT * FROM user WHERE ID = '.$_SESSION['UserID'].' AND GM >= '.$Licence.' AND pass = sha1(CONCAT(sha1("'.$Pass.'"), Salt))'));
     225    $Line = mysql_fetch_array($Database->SQLCommand('SELECT * FROM `User` WHERE `ID` = '.$_SESSION['UserID'].' AND `GM` >= '.$Licence.' AND `Pass` = sha1(CONCAT(sha1("'.$Pass.'"), `Salt`))'));
    226226    return($Line);
    227227  } else
     
    245245 
    246246  $Result = array();
    247   $DbResult = $Database->SQLCommand('SELECT * FROM `language` WHERE `Enabled` = 1');
     247  $DbResult = $Database->SQLCommand('SELECT * FROM `Language` WHERE `Enabled` = 1');
    248248  while($DbRow = mysql_fetch_assoc($DbResult))
    249249    $Result[$DbRow['Id']] = $DbRow;
     
    288288
    289289  $Database->SelectDatabase($Config['Database']['Database']);   
    290   $Query = 'INSERT INTO `log` ( `user` , `type` , `text` , `date` , `IP` )
     290  $Query = 'INSERT INTO `Log` ( `User` , `Type` , `Text` , `Date` , `IP` )
    291291   VALUES ('.$user.', '.$Type.', "'.addslashes($Text).'", NOW(), "'.$ip.'")';
    292292  $Database->SQLCommand($Query);
Note: See TracChangeset for help on using the changeset viewer.