tests
This commit is contained in:
@@ -13,6 +13,10 @@ class n
|
||||
private function __construct() {}
|
||||
|
||||
|
||||
/**
|
||||
* @param $userId
|
||||
* @return null|string
|
||||
*/
|
||||
public static function show($userId)
|
||||
{
|
||||
if (!self::$_instance) {
|
||||
|
||||
@@ -35,6 +35,7 @@ class nick
|
||||
{
|
||||
$n ='';
|
||||
if ($showInvisibility) {
|
||||
// db::c()->query('SELECT `time` FROM `effects` WHERE `owner` = ?i AND `type` = ?i', $id, 1022)->fetch_assoc();
|
||||
$this->user_data['login'] = '<i>невидимка</i>';
|
||||
$this->user_data['level'] = '??';
|
||||
} else {
|
||||
@@ -46,11 +47,7 @@ class nick
|
||||
}
|
||||
}
|
||||
$n .= sprintf('<b>%s</b> [%s] <a href="inf.php?%s" target="_blank"><img src="i/inf.gif" style="width:12px;height:11px"></a>', $this->user_data['login'], $this->user_data['level'], $this->user_data['login']);
|
||||
// if ($this->invis){
|
||||
// // db::c()->query('SELECT `time` FROM `effects` WHERE `owner` = ?i AND `type` = ?i', $id, 1022)->fetch_assoc();
|
||||
// $user['login'] = 'невидимка';
|
||||
// $user['level'] = 100;
|
||||
// }
|
||||
|
||||
return $n;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user