-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
- require($INC);
-}
-//
-function NICKNAME_IS_ACTIVE($uidNick)
-{
- $ret = false;
- $result = SQL_QUERY_ESC("SELECT userid FROM "._MYSQL_PREFIX."_user_data WHERE (userid=%d AND userid > 0) OR nickname='%s' LIMIT 1",
- array(bigintval($uidNick), $uidNick), __FILE__, __LINE__);
+if (!defined('__SECURITY')) {
+ die();
+} // END - if
+
+// Checks whether the nickname is active
+function isNicknameOrUserid ($useridNick) {
+ // By default nothing is found...
+ $ret = FALSE;