tests
This commit is contained in:
parent
93af23da2c
commit
94c912458d
@ -1,7 +1,12 @@
|
||||
<?php
|
||||
include '../config.php';
|
||||
include_once '../classes/n.php';
|
||||
include_once '../classes/nick.php';
|
||||
|
||||
spl_autoload_register(function ($class_name) {
|
||||
include '../classes/' . $class_name . '.php';
|
||||
});
|
||||
|
||||
//include_once '../classes/n.php';
|
||||
//include_once '../classes/nick.php';
|
||||
//include '../functions.php';
|
||||
|
||||
//showinf_pers(10736,1);
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user