Теперь при отключении Администратором регистрации новых пользователей в блоке не отображается ничего связанного с регистрацией.
Код файла заменить этим:
Код файла заменить этим:
<?php # Copyright © 2005 - 2011 SLAED # Website: http://www.slaed.net if (!defined("BLOCK_FILE")) { header("Location: ../index.php"); exit; } global $prefix, $db, $currentlang, $conf, $confu, $conffav, $confpr; if (is_user()) { $userinfo = getusrinfo(); $uname = $userinfo['user_name']; $user_id = intval($userinfo['user_id']); $user_avatar = ($userinfo['user_avatar']) ? $userinfo['user_avatar'] : "00.gif"; $content = "<center><img src=\"".$confu['adirectory']."/".$user_avatar."\"><br><b>"._BWEL.",<br>".$uname."</b></center><hr>"; if ($confpr['act']) { list($prin) = $db->sql_fetchrow($db->sql_query("SELECT Count(id) FROM ".$prefix."_privat WHERE uidin='".$user_id."' AND status = '0'")); list($prout) = $db->sql_fetchrow($db->sql_query("SELECT Count(id) FROM ".$prefix."_privat WHERE uidout='".$user_id."' AND status = '0'")); $content .= ($prin) ? "<embed src=\"sound/privat-".$currentlang.".mp3\" autostart=\"true\" hidden=\"true\" loop=\"false\"></embed>" : ""; $content .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\"> <tr valign=\"middle\"><td><a href=\"account-privat.html\" title=\""._PRIVAT."\"><img src=\"".img_find("all/privat.png")."\" border=\"0\" alt=\""._PRIVAT."\"></td><td width=\"90%\" colspan=\"2\"><a href=\"account-privat.html\" title=\""._PRIVAT."\">"._PRIVAT."</a></td></tr> <tr valign=\"middle\"><td><img src=\"".img_find("all/prin.png")."\" border=\"0\" alt=\""._PRINNO."\"></td><td width=\"90%\">"._PRINNO.":</td><td align=\"right\">".$prin."</td></tr> <tr valign=\"middle\"><td><img src=\"".img_find("all/prout.png")."\" border=\"0\" alt=\""._PROUTNO."\"></td><td width=\"90%\">"._PROUTNO.":</td><td align=\"right\">".$prout."</td></tr> </table><hr>"; } $content .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">"; $content .= ($conffav['favact']) ? "<tr valign=\"middle\"><td><a href=\"account-favorites.html\" title=\""._FAVORITES."\"><img src=\"".img_find("all/favorites.png")."\" border=\"0\" alt=\""._FAVORITES."\"></td><td width=\"90%\"><a href=\"account-favorites.html\" title=\""._FAVORITES."\">"._FAVORITES."</a></td></tr>": ""; $content .= "<tr valign=\"middle\"><td><a href=\"account-edithome.html\" title=\""._CHANGE."\"><img src=\"".img_find("all/preferences.png")."\" border=\"0\" alt=\""._CHANGE."\"></td><td width=\"90%\"><a href=\"account-edithome.html\" title=\""._CHANGE."\">"._CHANGE."</a></td></tr> <tr valign=\"middle\"><td><a href=\"account-logout-refer.html\" title=\""._LOGOUT."\"><img src=\"".img_find("all/exit.png")."\" border=\"0\" alt=\""._LOGOUT."\"></td><td width=\"90%\"><a href=\"account-logout-refer.html\" title=\""._LOGOUT."\">"._LOGOUT."</a></td></tr> </table>"; } else { if ($confu['reg'] == "0") { $content = "<center><img src=\"".$confu['adirectory']."/0.gif\"><br><b>"._WELCOMETO.",<br>".$confu['anonym']."</b></center>"; } else { $content = "<center><img src=\"".$confu['adirectory']."/0.gif\"><br><b>"._WELCOMETO.",<br>".$confu['anonym']."</b></center><hr> <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\"><form action=\"account.html\" method=\"post\"> <tr valign=\"middle\"><td><a href=\"account-newuser.html\" title=\""._BREG."\"><img src=\"".img_find("all/newuser.png")."\" border=\"0\" alt=\""._BREG."\"></td><td width=\"90%\"><a href=\"account-newuser.html\" title=\""._BREG."\">"._BREG."</a></td></tr> <tr valign=\"middle\"><td><a href=\"account-passlost.html\" title=\""._PASSFOR."\"><img src=\"".img_find("all/passlost.png")."\" border=\"0\" alt=\""._PASSFOR."\"></td><td width=\"90%\"><a href=\"account-passlost.html\" title=\""._PASSFOR."\">"._PASSFOR."</a></td></tr> </table><hr> <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\" align=\"center\"> <tr><td>"._NICKNAME.":</td><td align=\"right\"><input type=\"text\" name=\"user_name\" size=\"10\" maxlength=\"25\" class=\"binput\"></td></tr> <tr><td>"._PASSWORD.":</td><td align=\"right\"><input type=\"password\" name=\"user_password\" size=\"10\" maxlength=\"25\" class=\"binput\"></td></tr>"; if (extension_loaded("gd") && ($conf['gfx_chk'] == 2 || $conf['gfx_chk'] == 4 || $conf['gfx_chk'] == 5 || $conf['gfx_chk'] == 7)) $content .= get_captcha("binput"); $content .= "<tr><td colspan=\"2\" align=\"center\"><input type=\"hidden\" name=\"refer\" value=\"1\"><input type=\"hidden\" name=\"op\" value=\"login\"><input type=\"submit\" value=\""._LOGIN."\" class=\"fbutton\"></td></tr></form></table>"; } } if ($conf['session']) $content .= "<div id=\"repsinfo\">".user_sinfo(1)."</div>"; ?>
Версия системы: SLAED CMS 5.* Pro
Версия PHP: PHP 5
Сервер: Сервер в интернете