Updated config management
Updated install Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
parent
4bb4693d2e
commit
fcd1f5b740
58 changed files with 1579 additions and 1695 deletions
|
|
@ -657,4 +657,25 @@ function doquery($query, $table, $fetch = false)
|
|||
} else {
|
||||
return $statement;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @deprecated
|
||||
* @param unknown_type $UserID
|
||||
*/
|
||||
function ResetThisFuckingCheater($userId)
|
||||
{
|
||||
defined('DEPRECATION') || trigger_error(sprintf('%s is deprecated', __FUNCTION__), E_USER_DEPRECATED);
|
||||
|
||||
$user = Wootook_Empire_Model_User::factory($userId);
|
||||
$username = $user->getData('username');
|
||||
$email = $user->getData('email');
|
||||
$password = $user->getData('password');
|
||||
$user->delete();
|
||||
|
||||
$user = Wootook_Empire_Model_User::register($TheUser['username'], $TheUser['email'], 'password');
|
||||
$user->setData('password', $password);
|
||||
$user->save();
|
||||
return;
|
||||
}
|
||||
Loading…
Reference in a new issue