Перейти к публикации

mc -aiZer-

изгнанные
  • Публикации

    45
  • Зарегистрирован

  • Посещение

Сообщения, опубликованные пользователем mc -aiZer-

  1. :·˙·٠•●•°:EVRIAL:°•●•٠·˙·:,

    Гы...А как ты думаешь? По-твоему хакер будет дважды засшифровывать хэш админа? Нет. Он просто подставит это значение в куки и всё...И твой парадный вход ему вообще не пригодиться...

  2. 3 уровень:

    Если же так совпало что ip человека, зашедшего в админку такой, как указан в config.php, то тогда -

    оповещать о всех неудачных попытках входа в админпанели на e-mail админу. В письме указывать IP человека, логин и пароль, которые он ввел неверно.

    А смыысл? Большинство хакеров не будет заходить через парадный вход...
  3. Название: xCS 1.6 Monitoring v1.0

    Версия движка: 4.2

    Возможности: Указываешь IP сервера в Админ. Панели и на сайте в виде блока показываеться текущая карта, кол-во игроков, играющих на сервере в данный момент. Так же есть возможность показывать картинку карты.

    IP для теста: 85.29.192.252

    Пароль на архив: www.x-virus.info

    -->

    Скачать (без картинок карт) + Скачать (с картинками карт) <--

  4. Млин, ну вот говорил же, что проще просто мод установить...Не лю я эти инструкции, вечно в них какие-то ошибки допускаю...Вот немножко исправил...

    sabas,

    Я перепутал...Это надо не заменять, а НИЖЕ добавлять...

    ВНИМАНИЕ!! ВОТ ПРАВИЛЬНАЯ ИНСТРУКЦИЯ!!!

    Файл: /language/*/adminpanel.lng:

    Найти:

    $lang = array (
    НИЖЕ добавить:
    'user_vip'		=>	"V.I.P:",
    
    'hint_vip'		=>	"Отметьте данное поле, для того чтобы сделать пользователя V.I.P.",
    Файл: /language/*/website.lng: Найти:
    $lang = array (
    НИЖЕ добавить:
    'news_vip'		=>	"Внимание! Этот текст доступен только V.I.P. посетителям",
    
    'bb_t_vip'		=>	"Текст только для V.I.P. пользователей",
    Файл: /engine/ajax/editcomments.php: Найти:
    	$comm_txt = preg_replace ("'\[hide\](.*?)\[/hide\]'si","\\1", $comm_txt);
    НИЖЕ добавить:
    	if ($is_vip)		$comm_txt = preg_replace ("'\[vip\](.*?)\[/vip\]'si", "\\1", $comm_txt);
    
    	else		$comm_txt = preg_replace ("'\[vip\](.*?)\[/vip\]'si", "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td class=\"quote\">".$lang['news_vip']."</td></tr></table>", $comm_txt);
    Файл: /engine/ajax/editnews.php: Найти:
    		$news_txt = preg_replace ("'\[hide\](.*?)\[/hide\]'si","\\1", $news_txt);
    НИЖЕ добавить:
    if ($is_vip)		$news_txt = preg_replace ("'\[vip\](.*?)\[/vip\]'si", "\\1", $news_txt);
    
    		else				$news_txt = preg_replace ("'\[vip\](.*?)\[/vip\]'si", "<div class=\"quote\">".$lang['news_vip']."</div>", $news_txt);
    Файл: /engine/inc/editusers.php: Найти:
    	if ($row['banned'] == "yes") $ifch = "checked";
    НИЖЕ добавить:
    	if ($row['is_vip']) $ifch2 = "checked";
    Найти:
    	<tr>
    
    		<td style="padding:4px;">{$lang['user_banned']}</td>
    
    		<td><input type="checkbox" name="banned" value="yes" $ifch><a href="#" class="hintanchor" onMouseover="showhint('{$lang[hint_banned]}', this, event, '250px')">[?]</a></td>
    
    	</tr>
    ВЫШЕ добавить:
    	<tr>
    
    		<td style="padding:4px;">{$lang['user_vip']}</td>
    
    		<td><input type="checkbox" name="vip" value="1" $ifch2><a href="#" class="hintanchor" onMouseover="showhint('{$lang[hint_vip]}', this, event, '250px')">[?]</a></td>
    
    	</tr>
    Найти:
    $editmail = $parse->safeSQL($parse->process($_POST['editmail']));
    НИЖЕ добавить:
    if (isset($_POST['vip'])) $editvip = 1; else $editvip = 0;
    Найти:
    $sql_update = "UPDATE " . PREFIX . "_users set user_group='$editlevel', banned='$banned', icq='$editicq', land='$editland', info='$editinfo', signature='$editsignature', email='$editmail', fullname='$editfullname'";
    ЗАМЕНИТЬ на:
    $sql_update = "UPDATE " . PREFIX . "_users set user_group='$editlevel', banned='$banned', icq='$editicq', land='$editland', info='$editinfo', signature='$editsignature', email='$editmail', fullname='$editfullname', is_vip='$editvip'";
    Файл: /engine/modules/bbcode.php: Найти:
    $code = "<input class=bbcodes title=\"$lang[bb_t_hide]\" style=\"width: 80px;\" accessKey=h onclick=simpletag('HIDE') type=button value=\"HIDE\" name=HIDE>";
    НИЖЕ добавить:
    $code = "<input class=bbcodes title=\"$lang[bb_t_vip]\" style=\"width: 65px;\" accessKey=v onclick=simpletag('VIP') type=button value=\"V.I.P\" name=VIP> <input class=bbcodes title=\"$lang[bb_t_hide]\" style=\"width: 80px;\" accessKey=h onclick=simpletag('HIDE') type=button value=\"HIDE\" name=HIDE>";
    Найти:
    var HIDE_open = 0;
    НИЖЕ добавить:
    var VIP_open = 0;
    Файл: /engine/modules/search.php: Найти:
    	if ($is_logged)	$tpl->set_block("'\[hide\](.*?)\[/hide\]'si","\\1");
    
    	else $tpl->set_block("'\\[hide\\](.*?)\\[/hide\\]'si","<div class=\"quote\">".$lang['news_regus']."</div>");
    НИЖЕ добавить:
    	if ($is_vip)		$tpl->set_block("'\[vip\](.*?)\[/vip\]'si","\\1");
    
    	else $tpl->set_block("'\\[vip\\](.*?)\\[/vip\\]'si","<div class=\"quote\">".$lang['news_vip']."</div>");
    Файл: /engine/modules/show.custom.php: Найти:
    	if ($is_logged)	$tpl->set_block("'\[hide\](.*?)\[/hide\]'si","\\1");
    
    	else $tpl->set_block("'\\[hide\\](.*?)\\[/hide\\]'si","<div class=\"quote\">".$lang['news_regus']."</div>");
    НИЖЕ добавить:
    	if ($is_vip)		$tpl->set_block("'\[vip\](.*?)\[/vip\]'si","\\1");
    
    	else $tpl->set_block("'\\[vip\\](.*?)\\[/vip\\]'si","<div class=\"quote\">".$lang['news_vip']."</div>");
    Файл: /engine/modules/show.full.php: Найти:
    	if ($is_logged)	$tpl->set_block("'\[hide\](.*?)\[/hide\]'si","\\1");
    
    	else $tpl->set_block("'\\[hide\\](.*?)\\[/hide\\]'si","<div class=\"quote\">".$lang['news_regus']."</div>");
    НИЖЕ добавить:
    	if ($is_vip)		$tpl->set_block("'\[vip\](.*?)\[/vip\]'si","\\1");
    
    	else $tpl->set_block("'\\[vip\\](.*?)\\[/vip\\]'si","<div class=\"quote\">".$lang['news_vip']."</div>");
    Файл: /engine/modules/show.short.php: Найти:
    	if ($is_logged)	$tpl->set_block("'\[hide\](.*?)\[/hide\]'si","\\1");
    
    	else $tpl->set_block("'\\[hide\\](.*?)\\[/hide\\]'si","<div class=\"quote\">".$lang['news_regus']."</div>");
    НИЖЕ добавить:
    	if ($is_vip)		$tpl->set_block("'\[vip\](.*?)\[/vip\]'si","\\1");
    
    	else $tpl->set_block("'\\[vip\\](.*?)\\[/vip\\]'si","<div class=\"quote\">".$lang['news_vip']."</div>");
    Файл: /engine/modules/sitelogin.php: Найти:
    		@session_destroy();
    
    		@session_unset();
    
    		$is_logged = 0;
    НИЖЕ добавить:
    		$is_vip = 0;
    Найти:
    		header("Location: $PHP_SELF");
    
    	}
    
    
    $is_logged = 0;
    НИЖЕ добавить:
    $is_vip = 0;
    Найти:
    $is_logged = TRUE;
    
    
    	}
    
    
    mysql_free_result($sql_result);
    НИЖЕ добавить:
    $sql_result2 = $db->query("SELECT count(*) FROM " . PREFIX . "_users where name='$member_name' and password='$member_password' and is_vip='1' or user_group < '4'");
    
    $vip = $db->get_array($sql_result2);
    
    if ($vip[0] == 1) {
    
    $is_vip = TRUE;
    
    
    	}
    
    
    mysql_free_result($sql_result2);

  5. sabas,

    Я перепутал...Это надо не заменять, а НИЖЕ добавлять...

    ВНИМАНИЕ!! ВОТ ПРАВИЛЬНАЯ ИНСТРУКЦИЯ!!!

    Файл: /language/*/adminpanel.lng:

    Найти:

    $lang = array (
    НИЖЕ добавить:
    'user_vip'		=>	"V.I.P:",
    
    'hint_vip'		=>	"Отметьте данное поле, для того чтобы сделать пользователя V.I.P.",
    Файл: /language/*/website.lng: Найти:
    $lang = array (
    НИЖЕ добавить:
    'news_vip'		=>	"Внимание! Этот текст доступен только V.I.P. посетителям",
    
    'bb_t_vip'		=>	"Текст только для V.I.P. пользователей",
    Файл: /engine/ajax/editcomments.php: Найти:
    	$comm_txt = preg_replace ("'\[hide\](.*?)\[/hide\]'si","\\1", $comm_txt);
    НИЖЕ добавить:
    	if ($is_vip)		$comm_txt = preg_replace ("'\[vip\](.*?)\[/vip\]'si", "\\1", $comm_txt);
    
    	else		$comm_txt = preg_replace ("'\[vip\](.*?)\[/vip\]'si", "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td class=\"quote\">".$lang['news_vip']."</td></tr></table>", $comm_txt);
    Файл: /engine/ajax/editnews.php: Найти:
    		$news_txt = preg_replace ("'\[hide\](.*?)\[/hide\]'si","\\1", $news_txt);
    НИЖЕ добавить:
    if ($is_vip)		$news_txt = preg_replace ("'\[vip\](.*?)\[/vip\]'si", "\\1", $news_txt);
    
    		else				$news_txt = preg_replace ("'\[vip\](.*?)\[/vip\]'si", "<div class=\"quote\">".$lang['news_vip']."</div>", $news_txt);
    Файл: /engine/inc/editusers.php: Найти:
    	if ($row['banned'] == "yes") $ifch = "checked";
    НИЖЕ добавить:
    	if ($row['is_vip']) $ifch2 = "checked";
    Найти:
    	<tr>
    
    		<td style="padding:4px;">{$lang['user_banned']}</td>
    
    		<td><input type="checkbox" name="banned" value="yes" $ifch><a href="#" class="hintanchor" onMouseover="showhint('{$lang[hint_banned]}', this, event, '250px')">[?]</a></td>
    
    	</tr>
    ВЫШЕ добавить:
    	<tr>
    
    		<td style="padding:4px;">{$lang['user_vip']}</td>
    
    		<td><input type="checkbox" name="vip" value="1" $ifch2><a href="#" class="hintanchor" onMouseover="showhint('{$lang[hint_vip]}', this, event, '250px')">[?]</a></td>
    
    	</tr>
    Найти:
    $editmail = $parse->safeSQL($parse->process($_POST['editmail']));
    НИЖЕ добавить:
    if (isset($_POST['vip'])) $editvip = 1; else $editvip = 0;
    Найти:
    $sql_update = "UPDATE " . PREFIX . "_users set user_group='$editlevel', banned='$banned', icq='$editicq', land='$editland', info='$editinfo', signature='$editsignature', email='$editmail', fullname='$editfullname'";
    ЗАМЕНИТЬ на:
    $sql_update = "UPDATE " . PREFIX . "_users set user_group='$editlevel', banned='$banned', icq='$editicq', land='$editland', info='$editinfo', signature='$editsignature', email='$editmail', fullname='$editfullname', is_vip='$editvip'";
    Файл: /engine/modules/bbcode.php: Найти:
    $code = "<input class=bbcodes title=\"$lang[bb_t_hide]\" style=\"width: 80px;\" accessKey=h onclick=simpletag('HIDE') type=button value=\"HIDE\" name=HIDE>";
    НИЖЕ добавить:
    $code = "<input class=bbcodes title=\"$lang[bb_t_vip]\" style=\"width: 65px;\" accessKey=v onclick=simpletag('VIP') type=button value=\"V.I.P\" name=VIP> <input class=bbcodes title=\"$lang[bb_t_hide]\" style=\"width: 80px;\" accessKey=h onclick=simpletag('HIDE') type=button value=\"HIDE\" name=HIDE>";
    Найти:
    var HIDE_open = 0;
    НИЖЕ добавить:
    var VIP_open = 0;
    Файл: /engine/modules/search.php: Найти:
    	if ($is_logged)	$tpl->set_block("'\[hide\](.*?)\[/hide\]'si","\\1");
    
    	else $tpl->set_block("'\\[hide\\](.*?)\\[/hide\\]'si","<div class=\"quote\">".$lang['news_regus']."</div>");
    НИЖЕ добавить:
    	if ($is_vip)		$tpl->set_block("'\[vip\](.*?)\[/vip\]'si","\\1");
    
    	else $tpl->set_block("'\\[vip\\](.*?)\\[/vip\\]'si","<div class=\"quote\">".$lang['news_vip']."</div>");
    Файл: /engine/modules/show.custom.php: Найти:
    	if ($is_logged)	$tpl->set_block("'\[hide\](.*?)\[/hide\]'si","\\1");
    
    	else $tpl->set_block("'\\[hide\\](.*?)\\[/hide\\]'si","<div class=\"quote\">".$lang['news_regus']."</div>");
    НИЖЕ добавить:
    	if ($is_vip)		$tpl->set_block("'\[vip\](.*?)\[/vip\]'si","\\1");
    
    	else $tpl->set_block("'\\[vip\\](.*?)\\[/vip\\]'si","<div class=\"quote\">".$lang['news_vip']."</div>");
    Файл: /engine/modules/show.full.php: Найти:
    	if ($is_logged)	$tpl->set_block("'\[hide\](.*?)\[/hide\]'si","\\1");
    
    	else $tpl->set_block("'\\[hide\\](.*?)\\[/hide\\]'si","<div class=\"quote\">".$lang['news_regus']."</div>");
    НИЖЕ добавить:
    	if ($is_vip)		$tpl->set_block("'\[vip\](.*?)\[/vip\]'si","\\1");
    
    	else $tpl->set_block("'\\[vip\\](.*?)\\[/vip\\]'si","<div class=\"quote\">".$lang['news_vip']."</div>");
    Файл: /engine/modules/show.short.php: Найти:
    	if ($is_logged)	$tpl->set_block("'\[hide\](.*?)\[/hide\]'si","\\1");
    
    	else $tpl->set_block("'\\[hide\\](.*?)\\[/hide\\]'si","<div class=\"quote\">".$lang['news_regus']."</div>");
    НИЖЕ добавить:
    	if ($is_vip)		$tpl->set_block("'\[vip\](.*?)\[/vip\]'si","\\1");
    
    	else $tpl->set_block("'\\[vip\\](.*?)\\[/vip\\]'si","<div class=\"quote\">".$lang['news_vip']."</div>");
    Файл: /engine/modules/sitelogin.php: Найти:
    		@session_destroy();
    
    		@session_unset();
    
    		$is_logged = 0;
    НИЖЕ добавить:
    		$is_vip = 0;
    Найти:
    		header("Location: $PHP_SELF");
    
    	}
    
    
    $is_logged = 0;
    НИЖЕ добавить:
    $is_vip = 0;
    Найти:
    $is_logged = TRUE;
    
    
    	}
    
    
    mysql_free_result($sql_result);
    НИЖЕ добавить:
    $sql_result2 = $db->query("SELECT count(*) FROM " . PREFIX . "_users where name='$member_name' and password='$member_password' and is_vip='1' or user_group < '4'");
    
    $vip = $db->get_array($sql_result2);
    
    if ($vip[0] == 1) {
    
    $is_vip = TRUE;
    
    
    	}
    
    
    mysql_free_result($sql_result2);

  6. Файл: /language/*/adminpanel.lng:

    Найти:

    $lang = array (
    НИЖЕ добавить:
    'user_vip'		=>	"V.I.P:",
    
    'hint_vip'		=>	"Отметьте данное поле, для того чтобы сделать пользователя V.I.P.",
    Файл: /language/*/website.lng: Найти:
    $lang = array (
    НИЖЕ добавить:
    'news_vip'		=>	"Внимание! Этот текст доступен только V.I.P. посетителям",
    
    'bb_t_vip'		=>	"Текст только для V.I.P. пользователей",
    Файл: /engine/ajax/editcomments.php: Найти:
    	$comm_txt = preg_replace ("'\[hide\](.*?)\[/hide\]'si","\\1", $comm_txt);
    НИЖЕ добавить:
    	if ($is_vip)		$comm_txt = preg_replace ("'\[vip\](.*?)\[/vip\]'si", "\\1", $comm_txt);
    
    	else		$comm_txt = preg_replace ("'\[vip\](.*?)\[/vip\]'si", "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td class=\"quote\">".$lang['news_vip']."</td></tr></table>", $comm_txt);
    Файл: /engine/ajax/editnews.php: Найти:
    		$news_txt = preg_replace ("'\[hide\](.*?)\[/hide\]'si","\\1", $news_txt);
    НИЖЕ добавить:
    if ($is_vip)		$news_txt = preg_replace ("'\[vip\](.*?)\[/vip\]'si", "\\1", $news_txt);
    
    		else				$news_txt = preg_replace ("'\[vip\](.*?)\[/vip\]'si", "<div class=\"quote\">".$lang['news_vip']."</div>", $news_txt);
    Файл: /engine/inc/editusers.php: Найти:
    	if ($row['banned'] == "yes") $ifch = "checked";
    НИЖЕ добавить:
    	if ($row['is_vip']) $ifch2 = "checked";
    Найти:
    	<tr>
    
    		<td style="padding:4px;">{$lang['user_banned']}</td>
    
    		<td><input type="checkbox" name="banned" value="yes" $ifch><a href="#" class="hintanchor" onMouseover="showhint('{$lang[hint_banned]}', this, event, '250px')">[?]</a></td>
    
    	</tr>
    ВЫШЕ добавить:
    	<tr>
    
    		<td style="padding:4px;">{$lang['user_vip']}</td>
    
    		<td><input type="checkbox" name="vip" value="1" $ifch2><a href="#" class="hintanchor" onMouseover="showhint('{$lang[hint_vip]}', this, event, '250px')">[?]</a></td>
    
    	</tr>
    Найти:
    $editmail = $parse->safeSQL($parse->process($_POST['editmail']));
    НИЖЕ добавить:
    if (isset($_POST['vip'])) $editvip = 1; else $editvip = 0;
    Найти:
    $sql_update = "UPDATE " . PREFIX . "_users set user_group='$editlevel', banned='$banned', icq='$editicq', land='$editland', info='$editinfo', signature='$editsignature', email='$editmail', fullname='$editfullname'";
    ЗАМЕНИТЬ на:
    $sql_update = "UPDATE " . PREFIX . "_users set user_group='$editlevel', banned='$banned', icq='$editicq', land='$editland', info='$editinfo', signature='$editsignature', email='$editmail', fullname='$editfullname', is_vip='$editvip'";
    Файл: /engine/modules/bbcode.php: Найти:
    $code = "<input class=bbcodes title=\"$lang[bb_t_hide]\" style=\"width: 80px;\" accessKey=h onclick=simpletag('HIDE') type=button value=\"HIDE\" name=HIDE>";
    ЗАМЕНИТЬ на:
    $code = "<input class=bbcodes title=\"$lang[bb_t_vip]\" style=\"width: 65px;\" accessKey=v onclick=simpletag('VIP') type=button value=\"V.I.P\" name=VIP> <input class=bbcodes title=\"$lang[bb_t_hide]\" style=\"width: 80px;\" accessKey=h onclick=simpletag('HIDE') type=button value=\"HIDE\" name=HIDE>";
    Найти:
    var HIDE_open = 0;
    НИЖЕ добавить:
    var VIP_open = 0;
    Файл: /engine/modules/search.php: Найти:
    	if ($is_logged)	$tpl->set_block("'\[hide\](.*?)\[/hide\]'si","\\1");
    
    	else $tpl->set_block("'\\[hide\\](.*?)\\[/hide\\]'si","<div class=\"quote\">".$lang['news_regus']."</div>");
    ЗАМЕНИТЬ на:
    	if ($is_vip)		$tpl->set_block("'\[vip\](.*?)\[/vip\]'si","\\1");
    
    	else $tpl->set_block("'\\[vip\\](.*?)\\[/vip\\]'si","<div class=\"quote\">".$lang['news_vip']."</div>");
    Файл: /engine/modules/show.custom.php: Найти:
    	if ($is_logged)	$tpl->set_block("'\[hide\](.*?)\[/hide\]'si","\\1");
    
    	else $tpl->set_block("'\\[hide\\](.*?)\\[/hide\\]'si","<div class=\"quote\">".$lang['news_regus']."</div>");
    ЗАМЕНИТЬ на:
    	if ($is_vip)		$tpl->set_block("'\[vip\](.*?)\[/vip\]'si","\\1");
    
    	else $tpl->set_block("'\\[vip\\](.*?)\\[/vip\\]'si","<div class=\"quote\">".$lang['news_vip']."</div>");
    Файл: /engine/modules/show.full.php: Найти:
    	if ($is_logged)	$tpl->set_block("'\[hide\](.*?)\[/hide\]'si","\\1");
    
    	else $tpl->set_block("'\\[hide\\](.*?)\\[/hide\\]'si","<div class=\"quote\">".$lang['news_regus']."</div>");
    ЗАМЕНИТЬ на:
    	if ($is_vip)		$tpl->set_block("'\[vip\](.*?)\[/vip\]'si","\\1");
    
    	else $tpl->set_block("'\\[vip\\](.*?)\\[/vip\\]'si","<div class=\"quote\">".$lang['news_vip']."</div>");
    Файл: /engine/modules/show.short.php: Найти:
    	if ($is_logged)	$tpl->set_block("'\[hide\](.*?)\[/hide\]'si","\\1");
    
    	else $tpl->set_block("'\\[hide\\](.*?)\\[/hide\\]'si","<div class=\"quote\">".$lang['news_regus']."</div>");
    ЗАМЕНИТЬ на:
    	if ($is_vip)		$tpl->set_block("'\[vip\](.*?)\[/vip\]'si","\\1");
    
    	else $tpl->set_block("'\\[vip\\](.*?)\\[/vip\\]'si","<div class=\"quote\">".$lang['news_vip']."</div>");
    Файл: /engine/modules/sitelogin.php: Найти:
    		@session_destroy();
    
    		@session_unset();
    
    		$is_logged = 0;
    НИЖЕ добавить:
    		$is_vip = 0;
    Найти:
    		header("Location: $PHP_SELF");
    
    	}
    
    
    $is_logged = 0;
    НИЖЕ добавить:
    $is_vip = 0;
    Найти:
    $is_logged = TRUE;
    
    
    	}
    
    
    mysql_free_result($sql_result);
    НИЖЕ добавить:
    $sql_result2 = $db->query("SELECT count(*) FROM " . PREFIX . "_users where name='$member_name' and password='$member_password' and is_vip='1' or user_group < '4'");
    
    $vip = $db->get_array($sql_result2);
    
    if ($vip[0] == 1) {
    
    $is_vip = TRUE;
    
    
    	}
    
    
    mysql_free_result($sql_result2);

×
×
  • Создать...