Some big update

* added option to change character name in accountmanagement
* added automatic database updater (data migrations)
* renamed events to hooks
* moved hooks to database
* now you can use hooks in plugins
* set account.type field to 5, if TFS 1.0+
* added example plugin
* new, latest google analytics code
* fixed bug with loading account.name that has numbers in it
* fixed many bugs in player editor in admin panel
* added error handling to plugin manager and some more verification in
file has been correctly unpacked/uploaded
* fixed Statistics page in admin panel when using account.number
* fixed bug when creating/recovering account on servers with
account.salt field (TFS 0.3 for example)
* fixed forum showing thread with html tags (added from news manager)
* new, actual code for youtube videos in movies
* fixed showing vocation images when using
$config['online_vocations_images']
* many fixes in polls (also importing proper schema)
* fixed hovering on buttons in kathrine template (on accountmanagement
page)
* many fixes in signatures
* added missing gesior signature system
This commit is contained in:
slawkens1
2017-05-11 04:13:16 +02:00
parent 956e551872
commit a177c93e97
40 changed files with 943 additions and 483 deletions

View File

@@ -68,17 +68,8 @@ else if(isset($_GET['name']))
if(!check_name($name, $error))
error_($error);
// check if this name wasn't namelocked
if(tableExist('player_namelocks') && fieldExist('name', 'player_namelocks')) {
$query = $db->query('SELECT `player_id` FROM `player_namelocks` WHERE name = ' . $db->quote($name));
if($query->rowCount() > 0)
error_('Character with this name has been namelocked.');
}
$player = new OTS_Player();
$player->find($name);
if($player->isLoaded())
error_('Player with this name already exist.</b>');
if(!check_name_new_char($name, $error))
error_($error);
success_('Good. Your name will be:<br /><b>' . ucwords($name) . '</b>');
}