СтарожилПользователь №: 261 Сообщений: 330
| Вот достал код из привата. Гляньте :
Код | 1
| <?php
if (!defined("MODULE_FILE")) {
Header("Location: ../../index.php");
exit;
}
global $module_name, $pm, $way, $style, $strip2, $currentlang, $queditor, $warlimit, $figdwidth, $mimetype, $admin_file, $sitename, $user, $s, $userinfo, $db, $datetime, $prefix, $pagetitle, $defis, $apath, $adirectory, $fidirectory;
smarthead();
$result2 = $db->sql_query("SELECT a.*, b.*, c.*, d.* FROM ".$prefix."_private AS a LEFT JOIN ".$prefix."_users AS b ON a.f_user=b.user_name LEFT JOIN ".$prefix."_groups c ON b.user_group=c.id LEFT JOIN ".$prefix."_session d ON a.f_user=d.uname WHERE user_name = '$f_user'");
if ($db->sql_numrows($result2) > 0){
$row = $db->sql_fetchrow($result2);
$user_id = $row[user_id];
$user_name =$row[user_name];
$user_group = $row[user_group];
$name = $row[name];
$rank = $row[rank];
$extra = $row[extra];
$uname = $row[uname];
$user_sig = $row[user_sig];
$warnings = $row[user_warnings];
$user_warnings = $row[user_warnings];
}
if($f_user) {$uname ="<font class=\"smalla\">online</font>";}
else {
$uname="<font class=\"smalla\">offline</font>";}
if($f_user !=""){
if($uname!=""){echo"<font class=\"smalla\">online</font>";}else{echo"<font class=\"smalla\">offline</font>";}
}
echo"<font class=\"title\">модераторы</font><br>";
echo"<font class=\"smalla\">
<a href=\"http://rocksmart.net.ru/index.php?name=SmartAccount&op=info&uname=ura\"><b>ura<b></a> $uname <br>
<a href=\"http://rocksmart.net.ru/index.php?name=SmartAccount&op=info&uname=renya\"><b>renya<b></a> $uname<br>
<a href=\"http://rocksmart.net.ru/index.php?name=SmartAccount&op=info&uname=krik3230\"><b>krik3230<b></a> $f_user<br>
<a href=\"http://rocksmart.net.ru/index.php?name=SmartAccount&op=info&uname=NKVDN80\"><b>NKVDN80<b></a> $f_user<br>
<a href=\"http://rocksmart.net.ru/index.php?name=SmartAccount&op=info&uname=GREEN\"><b>GREEN<b></a> $f_user<br>
<a href=\"http://rocksmart.net.ru/index.php?name=SmartAccount&op=info&uname=MUK\"><b>MUK<b></a><br> $f_user</font>";
smartfoot();
?> |
|
|