Project

General

Profile

« Previous | Next » 

Revision 2098

Added by darkviper over 10 years ago

! activate class Translate for all addons in admin/ (except pages/)
! class.admin >> add translation of the current theme to Translate

View differences:

index.php
20 20
// delete remember key of current user from database
21 21
if (isset($_SESSION['USER_ID']) && isset($database)) {
22 22
	$table = TABLE_PREFIX . 'users';
23
	$sql = "UPDATE `$table` SET `remember_key` = '' WHERE `user_id` = '" . (int) $_SESSION['USER_ID'] . "'";
24
	$database->query($sql);
23
    $oDb = WbDatabase::getInstance();
24
	$sql = 'UPDATE `'.$oDb->TablePrefix.'users` '
25
         . 'SET `remember_key`=\'\' '
26
         . 'WHERE `user_id`='.(int)$_SESSION['USER_ID'];
27
	$oDb->doQuery($sql);
25 28
}
26 29

  
27 30
// delete remember key cookie if set

Also available in: Unified diff