Changeset 365 for trunk/includes/global_function.php
- Timestamp:
- Mar 9, 2010, 11:29:05 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global_function.php
r357 r365 223 223 // $User = $_SESSION['User']; 224 224 $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`))')); 226 226 return($Line); 227 227 } else … … 245 245 246 246 $Result = array(); 247 $DbResult = $Database->SQLCommand('SELECT * FROM ` language` WHERE `Enabled` = 1');247 $DbResult = $Database->SQLCommand('SELECT * FROM `Language` WHERE `Enabled` = 1'); 248 248 while($DbRow = mysql_fetch_assoc($DbResult)) 249 249 $Result[$DbRow['Id']] = $DbRow; … … 288 288 289 289 $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` ) 291 291 VALUES ('.$user.', '.$Type.', "'.addslashes($Text).'", NOW(), "'.$ip.'")'; 292 292 $Database->SQLCommand($Query);
Note:
See TracChangeset
for help on using the changeset viewer.