Updated config management

Updated install

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
Gregory PLANCHAT 2011-12-14 23:45:09 +01:00
commit fcd1f5b740
58 changed files with 1579 additions and 1695 deletions

View file

@ -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;
}