Файл: adminka.php
Строк: 1337
<?
require_once("core/core.php");
$location = 'В админке';
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Рассылка аден~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
if (isset($_GET['change'])) {
$title = $title . ' :: Админка';
$num = (int) $_POST['num'];
mysql_query("UPDATE `users` SET `money` = money + '$num'");
if ($u['admin'] == 1) {
require_once('head.php');
echo '<div class="title"><center>';
echo '<a href="adminka.php">Админка</a> :: Рассылка монет';
echo '</center></div><div class="div">';
echo 'Готово, всем было подарено по <b><font color="green">' . $num . '</font></b> монет!';
echo '</div><div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
}
require('foot.php');
exit;
}
if ($u['admin'] >= 1) {
switch (@$_GET['act']) {
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Пароль~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'password':
$title = $title . ' :: Пароль';
require('head.php');
if (isset($_GET['id'])) {
$id = num(@$_GET['id']);
$req = mysql_query("SELECT * FROM `users` WHERE `id` = '" . $id . "' LIMIT 1");
if (mysql_num_rows($req)) {
$user = mysql_fetch_assoc($req);
}
}
if (empty($user['id'])) {
$req = mysql_query("SELECT * FROM `users` WHERE `id` = '" . $u['id'] . "' LIMIT 1");
$user = mysql_fetch_assoc($req);
}
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Пароль</center></div>';
if ($u['admin'] == 1) {
if ($user['id'] == 1 || $user['id'] == 2 || $user['id'] == $u['id']) {
error(' Ошибка ! ');
require('foot.php');
exit;
}
if (isset($_POST['submit'])) {
if (empty($password)) {
error(' Не введён пароль !');
$error = '1';
} else {
if (strlen($password) < 2 || strlen($password) > 25) {
error(' Недопустимая длина пароля (Не более 25 символов и не менее 2)');
$error = '1';
} else {
if (preg_match("/[^0-9a-z-@*()?!~_=[]]+/i", $password)) {
error(' Недопустимые символы в пароле !');
$error = '1';
}
}
}
$password = check(substr($_POST['password'], 0, 25));
mysql_query("UPDATE `users` SET
`pass` = '" . md5(md5($password)) . "',
`password` = '$password'
WHERE `id` = '" . $user['id'] . "'
");
if ($u['sex'] == 'm') {
$action[0] = 'Сменил';
} else {
$action[0] = 'Сменила';
}
$text = $action[0] . ' <a href = "/' . $user['id'] . '">пользователю</a> пароль.';
mysql_query("INSERT INTO `admin_jurnal_edit` SET
`user` = '" . $u['id'] . "',
`text` = '$text',
`time` = '" . time() . "',
`new` = '1'
");
header("Location: adminka.php?act=password&id=" . $user['id'] . "&ok=1");
} else {
if (@$_GET['ok']) {
ok(' Изменения успешно сохранены !');
}
$req = mysql_query("SELECT * FROM `users` WHERE `id` = '" . $user['id'] . "' LIMIT 1");
$user = mysql_fetch_assoc($req);
}
echo '<div class="div">';
echo '<form action="adminka.php?act=password&id=' . $user['id'] . '" method=post>';
echo 'Пароль: <br/><input type=text name=password maxlength=50 value=' . $user["password"] . '></br>';
echo '<input type=submit name="submit" value="Сохранить" class="submit white"/>';
echo '</form>';
echo '</div>';
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
} else {
echo ' ыыы лол';
require('foot.php');
exit;
}
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Блокировка пользователя~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'delete':
$title = $title.' :: Админка';
require('head.php');
echo '<div class="title"><center>Админка :: Заблокировать</center></div>';
if($u['admin'] == 1 || $u['admin'] == 2){
if(isset($_GET['id'])){
$id=num($_GET['id']);
$req = mysql_query("SELECT * FROM `users` WHERE `id` = '$id' LIMIT 1");
if (mysql_num_rows($req)) {
$user = mysql_fetch_assoc($req);
}
}
if($user['id'] == 1 || $user['id'] == $u['id']) {
error(' Ошибка !');
require('foot.php');
exit;
}
if($user['delete'] == 1) {
error(' Ошибка !');
require('foot.php');
exit;
}
if (isset($_POST['submit'])) {
mysql_query("UPDATE `users` SET `delete` = `delete`+1 WHERE `id` = '".$user['id']."'");
ok(' Пользователь: <a href = "/id'.$user['id'].'">'.$user['login'].'</a> заблокирован !');
} else {
echo '<div class="div">';
echo 'Пользователь: <a href = "/id'.$user['id'].'">'.$user['login'].'</a> (ID: '.$user['id'].') <hr>';
echo 'Вы подтверждаете блокировку ? <br/>';
echo '<form action="adminka.php?act=delete&id='.$user['id'].'" method=post>';
echo '<input type=submit name="submit" value="Да" class="submit white"/></form>';
echo '</div>';
}
} else {
error(' Отказано в доступе !');
require('foot.php');
exit;
}
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Снятие блока пользователя~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'delete_off':
$title = $title.' :: Админка';
require('head.php');
echo '<div class="title"><center> Админка :: Разблокировка</div>';
if($u['admin'] == 1 || $u['admin'] == 2){
if(isset($_GET['id'])){
$id=num($_GET['id']);
$req = mysql_query("SELECT * FROM `users` WHERE `id` = '$id' LIMIT 1");
if (mysql_num_rows($req)) {
$user = mysql_fetch_assoc($req);
}
}
if($user['id'] == 1 || $user['id'] == $u['id']) {
error(' Ошибка !');
require('foot.php');
exit;
}
if($user['delete'] == 0) {
error(' Ошибка !');
require('foot.php');
exit;
}
if (isset($_POST['submit'])) {
mysql_query("UPDATE `users` SET `delete` = '".($u['delete']-1)."' WHERE `id` = '".$user['id']."'");
ok(' Пользователь: <a href = "/id'.$user['id'].'">'.$user['login'].'</a> разблокирован !');
} else {
echo '<div class="div">';
echo 'Пользователь: <a href = "/id'.$user['id'].'">'.$user['login'].'</a> (ID: '.$user['id'].') <hr>';
echo 'Вы подтверждаете разблокировку ? <br/>';
echo '<form action="adminka.php?act=delete_off&id='.$user['id'].'" method=post>';
echo '<input type=submit name="submit" value="Да" class="submit white"/></form>';
echo '</div>';
}
} else {
error(' Отказано в доступе !');
require('foot.php');
exit;
}
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Монеты , Рейтинг , Лайки~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'other':
$title = $title . ' :: Активность';
require('head.php');
if (isset($_GET['id'])) {
$id = num(@$_GET['id']);
$req = mysql_query("SELECT * FROM `users` WHERE `id` = '" . $id . "' LIMIT 1");
if (mysql_num_rows($req)) {
$user = mysql_fetch_assoc($req);
}
}
if (empty($user['id'])) {
$req = mysql_query("SELECT * FROM `users` WHERE `id` = '" . $u['id'] . "' LIMIT 1");
$user = mysql_fetch_assoc($req);
}
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Активность :: <a href="/page.php?id=' . $user['id'] . '">' . $user['login'] . '</a></center></div>';
if ($u['admin'] == 1) {
if ($user['id'] == 1 || $user['id'] == 2 || $user['id'] == $u['id']) {
error(' Ошибка ! ');
require('foot.php');
exit;
}
if (isset($_POST['submit'])) {
$rating = num($_POST['rating']);
$money = num($_POST['money']);
$likes = num($_POST['likes']);
mysql_query("UPDATE `users` SET
`rating` = '$rating',
`money` = '$money',
`likes` = '$likes'
WHERE `id` = '" . $user['id'] . "'
");
if ($u['sex'] == 'm') {
$action[0] = 'Отредактировал';
} else {
$action[0] = 'Отредактировала';
}
$text = $action[0] . ' <a href = "/' . $user['id'] . '">пользователю</a> активность.';
mysql_query("INSERT INTO `admin_jurnal_edit` SET
`user` = '" . $u['id'] . "',
`text` = '$text',
`time` = '" . time() . "',
`new` = '1'
");
header("Location: adminka.php?act=other&id=" . $user['id'] . "&ok=1");
} else {
if (@$_GET['ok']) {
header('location: adminka.php?act=edit_users&id=' . $user['id'] . '&ok=1');
}
$req = mysql_query("SELECT * FROM `users` WHERE `id` = '" . $user['id'] . "' LIMIT 1");
$user = mysql_fetch_assoc($req);
}
$rating = checkout($user['rating']);
$money = checkout($user['money']);
$likes = checkout($user['likes']);
echo '<div class="div">';
echo '<form action="adminka.php?act=other&id=' . $user['id'] . '" method=post>';
echo 'Адены: <input type=text name=money size = "2" maxlength=50 value=' . $money . '><br />';
echo 'Рейтинг: <input type=text name=rating size = "3" maxlength=50 value=' . $rating . '><br />';
echo 'Популярность: <input type=text name=likes size = "2" maxlength=50 value=' . $likes . '>';
echo '</div><div class="div">';
echo '<input type=submit name="submit" value="Сохранить" class="submit white"/>';
echo '</form>';
echo '</div>';
} else {
echo ' ыыы лол';
require('foot.php');
exit;
}
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Должность, Логин,~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'level':
$title = $title . ' :: Данные';
require('head.php');
if (isset($_GET['id'])) {
$id = num(@$_GET['id']);
$req = mysql_query("SELECT * FROM `users` WHERE `id` = '" . $id . "' LIMIT 1");
if (mysql_num_rows($req)) {
$user = mysql_fetch_assoc($req);
}
}
if (empty($user['id'])) {
$req = mysql_query("SELECT * FROM `users` WHERE `id` = '" . $u['id'] . "' LIMIT 1");
$user = mysql_fetch_assoc($req);
}
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Данные :: <a href="/page.php?id=' . $user['id'] . '">' . $user['login'] . '</a></center></div>';
if ($u['admin'] == 1) {
if ($user['id'] == 1 || $user['id'] == 2 || $user['id'] == $u['id']) {
echo ' ыыы лол';
require('foot.php');
exit;
}
if (isset($_POST['submit'])) {
$admin = num($_POST['admin']);
$login = check(substr($_POST['login'], 0, 25));
mysql_query("UPDATE `users` SET
`login` = '$login',
`admin` = '$admin'
WHERE `id` = '" . $user['id'] . "'
");
if ($u['sex'] == 'm') {
$action[0] = 'Отредактировал';
} else {
$action[0] = 'Отредактировала';
}
$text = $action[0] . ' <a href = "/' . $user['id'] . '">пользователю</a> данные.';
mysql_query("INSERT INTO `admin_jurnal_edit` SET
`user` = '" . $u['id'] . "',
`text` = '$text',
`time` = '" . time() . "',
`new` = '1'
");
//Оповещаем юсера
if ($u['sex'] == 'm') {
$action[0] = 'Назначил';
} else {
$action[0] = 'Назначила';
}
$text = $action[0] . ' Вас модератором...';
mysql_query("INSERT INTO `jurnal` SET
`user` = '" . $user['id'] . "',
`outuser` = '" . $u['id'] . "',
`text` = '$text',
`time` = '" . time() . "',
`new` = '1'
");
header("Location: adminka.php?act=other&id=" . $user['id'] . "&ok=1");
} else {
if (@$_GET['ok']) {
ok(' Изменения успешно сохранены!');
}
$req = mysql_query("SELECT * FROM `users` WHERE `id` = '" . $user['id'] . "' LIMIT 1");
$user = mysql_fetch_assoc($req);
}
$admin = checkout($user['admin']);
echo '<div class="div">';
echo '<form action="adminka.php?act=level&id=' . $user['id'] . '" method=post>';
echo 'Логин:<br /> <input type="text" name="login" maxlength="50" value="' . $user["login"] . '"></br>';
echo 'Должность:<br/> <select name="admin">
<option value="0">Пользователь</option>
<option value="5" ' . ($user['admin'] == '5' ? ' selected="selected"' : '') . '>Журналист</option>
<option value="4" ' . ($user['admin'] == '4' ? ' selected="selected"' : '') . '>Модератор Чата</option>
<option value="3" ' . ($user['admin'] == '3' ? ' selected="selected"' : '') . '>Модератор Форума</option>
<option value="2" ' . ($user['admin'] == '2' ? ' selected="selected"' : '') . '>Администратор</option>
<option value="1" ' . ($user['admin'] == '1' ? ' selected="selected"' : '') . '>Создатель</option>
</select>';
echo '</div><div class="div">';
echo '<input type=submit name="submit" value="Сохранить" class="submit white"/>';
echo '</form>';
echo '</div>';
} else {
echo ' ыыы лол';
require('foot.php');
exit;
}
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Вывод~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'edit_users':
if (isset($_GET['id'])) {
$id = num(@$_GET['id']);
$req = mysql_query("SELECT * FROM `users` WHERE `id` = '" . $id . "' LIMIT 1");
if (mysql_num_rows($req)) {
$user = mysql_fetch_assoc($req);
}
}
if (empty($user['id'])) {
if ($u['id']) {
@$id = $u['id'];
$req = mysql_query("SELECT * FROM `users` WHERE `id` = '" . $u['id'] . "' LIMIT 1");
$user = mysql_fetch_assoc($req);
} else {
header("Location: index.php");
exit;
}
}
$title = $title . ' :: Админка';
require('head.php');
require('core/bb_code.php');
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Данные :: <a href="/page.php?id=' . $user['id'] . '">' . $user['login'] . '</a></center></div>';
if ($u['admin'] == 1 || $u['admin'] == 2) {
if ($user['id'] == 1 || $user['id'] == 2 || $user['id'] == $u['id']) {
echo ' ыыы лол';
require('foot.php');
exit;
}
$admin = checkout($user['admin']);
@$inspire = checkout($user['inspire']);
if ($u['admin'] == 1) {
if (@$_GET['ok']) {
ok(' Изменения успешно сохранены !');
}
echo '<div class="div">';
echo '<a href = "/adminka.php?act=level&id=' . $user['id'] . '">Логин</a>: <b><font color="#79358c">' . $user["login"] . '</font></b> </br>';
echo '<a href = "/adminka.php?act=password&id=' . $user['id'] . '">Пароль</a>: <u>' . $user["password"] . '</u> </br>';
echo '<a href = "/adminka.php?act=level&id=' . $user['id'] . '">Должность</a>: ';
if ($user['admin'] == 0)
echo '<font color="green"> Пользователь</font></br>';
if ($user['admin'] == 1)
echo '<font color="green"> Создатель</font></br>';
if ($user['admin'] == 2)
echo '<font color="green"> Администратор</font></br>';
if ($user['admin'] == 3)
echo '<font color="green"> Модератор форума</font></br>';
if ($user['admin'] == 4)
echo '<font color="green"> Модератор чата</font></br>';
if ($user['admin'] == 5)
echo '<font color="green"> Журналист</font></br>';
$rat = $user['rating'] / 100;
echo '<a href = "/adminka.php?act=other&id=' . $user['id'] . '">Привлекательность</a> ' . $user['likes'] . ' ' . @$likeoption . '
| <a href = "/adminka.php?act=other&id=' . $user['id'] . '">Рейтинг</a> ' . $rat . '
| <a href = "/adminka.php?act=other&id=' . $user['id'] . '">Деньги</a> ' . $user['money'] . '';
echo '</br></div>';
}
} else {
echo ' ыыы лол';
require('foot.php');
exit;
}
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Блокировка пользователя~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'ban_users':
$title = $title . ' :: Бан';
require('head.php');
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Бан пользователя</center></div>';
if (isset($_GET['id'])) {
$id = num(@$_GET['id']);
$req = mysql_query("SELECT * FROM `users` WHERE `id` = '" . $id . "' LIMIT 1");
if (mysql_num_rows($req)) {
$user = mysql_fetch_assoc($req);
} else {
error(' Такого пользователя нет !');
require('foot.php');
exit;
}
$flood = mysql_query("SELECT `time` FROM `users_ban` WHERE `admin` = '" . $u['id'] . "' AND `time` > '" . (time() - $system['ban_user']) . "'");
if (mysql_num_rows($flood)) {
error(' <b>Ошибка</b>!</br> Можно банить только раз в ' . $system['ban_user'] . ' сек.');
require('foot.php');
exit;
}
if ($user['id'] == 1 || $user['id'] == 2 || $user['id'] == $u['id']) {
echo 'ыыы лол';
require('foot.php');
exit;
}
if (ban($user['id'])) {
error(' Пользователь уже забанен!');
} else {
if (isset($_POST['submit'])) {
$time = num($_POST['time']);
$timet = num($_POST['timet']);
$who = abs(intval($_POST['who']));
$time = $time * 60 * 60;
$message = check(substr($_POST['message'], 0, 1000));
mysql_query("INSERT INTO `users_ban` SET
`user` = '" . $user['id'] . "',
`message` = '$message',
`admin` = '" . $u['id'] . "',
`who` = '$who',
`time` = '" . time() . "',
`time_ban` = '" . (time() + $time) . "'
");
mysql_query("INSERT INTO `users_ban_post` SET
`user` = '" . $user['id'] . "',
`message` = '$message',
`admin` = '" . $u['id'] . "',
`who` = '$who',
`time` = '" . time() . "',
`time_ban` = '" . (time() + $time) . "'
");
if ($u['sex'] == 'm') {
$action[0] = 'Забанил';
} else {
$action[0] = 'Забанила';
}
$text = $action[0] . ' <a href = "page.php?id=' . $user['id'] . '">пользователя</a>.';
mysql_query("INSERT INTO `admin_jurnal` SET
`user` = '" . $u['id'] . "',
`text` = '$text',
`time` = '" . time() . "',
`new` = '1'
");
if ($u['sex'] == 'm') {
$action[0] = 'Забанил';
} else {
$action[0] = 'Забанила';
}
$text = $action[0] . ' <a href = "page.php?id=' . $user['id'] . '">пользователя</a>.';
mysql_query("INSERT INTO `admin_jurnal_ban` SET
`user` = '" . $u['id'] . "',
`text` = '$text',
`time` = '" . time() . "',
`new` = '1'
");
//Оповещаем юсера
$text = 'У Вас новое нарушение в <a href="user_ban.php?' . $user['id'] . '">анкете</a>.';
mysql_query("INSERT INTO `jurnal` SET
`user` = '" . $user['id'] . "',
`outuser` = '" . $u['id'] . "',
`text` = '$text',
`time` = '" . time() . "',
`new` = '1'
");
ok(' Пользователь: <a href = "page.php?id=' . $user['id'] . '"><b>' . $user['login'] . '</b></a> забанен !');
} else {
echo '<div class="div">';
echo 'Пользователь: ' . ico($user['sex'], $user['admin'], $user['online']) . ' <a href = "/' . $user['id'] . '"><b><font color="#79358c">' . $user['login'] . '</font></b></a> (ID: <b><font color="green">' . $user['id'] . '</font></b>)';
echo '</div><div class="title">';
echo '<span style="color:#666666">Дата регистрации:</span> <b>' . vremya($user['anketa_datareg']) . '</b></br>';
if ($user['sex'] == 'm')
echo '<span style="color:#666666">Последний раз был:</span> <b>' . vremya($user['online']) . '</b></br>';
else
echo '<span style="color:#666666">Последний раз была:</span> <b>' . vremya($user['online']) . '</b></br>';
if ($user['admin'] == 1)
echo '<font color="green"> Создатель</font></br>';
if ($user['admin'] == 2)
echo '<font color="green"> Администратор</font></br>';
if ($user['admin'] == 3)
echo '<font color="green"> Модератор форума</font></br>';
if ($user['admin'] == 4)
echo '<font color="green"> Модератор чата</font></br>';
if ($user['admin'] == 5)
echo '<font color="green"> Журналист</font></br>';
echo 'Статус: ';
if ($user['stat_forum_themes'] >= 0 && $user['stat_forum_themes'] <= 50)
echo '<font color="green"> Новичок</font>';
if ($user['stat_forum_themes'] >= 51 && $user['stat_forum_themes'] <= 100)
echo '<font color="green"> Ученик</font>';
if ($user['stat_forum_themes'] >= 101 && $user['stat_forum_themes'] <= 151)
echo '<font color="green"> Знаток</font>';
if ($user['stat_forum_themes'] >= 151 && $user['stat_forum_themes'] <= 201)
echo '<font color="green"> Мастер</font>';
if ($user['stat_forum_themes'] >= 201 && $user['stat_forum_themes'] <= 251)
echo '<font color="green"> Гуру</font>';
if ($user['stat_forum_themes'] >= 251 && $user['stat_forum_themes'] <= 301)
echo '<font color="green"> Мудрец</font>';
if ($user['stat_forum_themes'] >= 301)
echo '<font color="green"> Высший разум</font>';
echo '</br>';
$rat = $user['rating'] / 100;
echo 'Рейтинг: ' . $rat . ' </br>';
echo 'Время онлайн: ';
$time = $user['anketa_alltime'];
$chas = intval($time / 3600);
if ($chas > 0) {
$chas = $chas . ' ч.';
$time = $time - ($chas * 3600);
} else {
$chas = '';
}
$min = intval($time / 60);
if ($min > 0) {
$min = $min . ' м.';
$time = $time - ($min * 60);
} else {
$min = '';
}
$sek = $time . ' с.';
echo '<b>' . $chas . ' ' . $min . ' ' . $sek . '</b></br>';
$count = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `users_ban_post` WHERE `user` = '" . $user['id'] . "'"), 0);
echo '</div><div class="title">';
echo '<a href = "user_ban.php?id=' . $user['id'] . '">Нарушения</a> (' . $count . ') </br>';
echo '</div>';
echo '<form action="adminka.php?act=ban_users&id=' . $user['id'] . '" method=post>';
echo '<div class="div">Причина: </br>
<input type="radio" name="who" value="1"/> Грубость и оскорбления </br>
<input type="radio" name="who" value="2"/> Нецензурная лексика </br>
<input type="radio" name="who" value="3"/> СПАМ, реклама </br>
<input type="radio" name="who" value="4"/> Разжигание ненависти </br>
<input type="radio" name="who" value="5"/> Флуд, Оффтопик </br>
<input type="radio" name="who" value="6"/> Некорректное название темы </br>
<input type="radio" name="who" value="7"/> Бессмысленная тема </br>
<input type="radio" name="who" value="8"/> Намеки на ДП </br>
<input type="radio" name="who" value="9"/> ДП </br>
<input type="radio" name="who" value="10"/> Педофилия </br>
<input type="radio" name="who" value="11"/> Иное </br>
</div><div class="div">';
echo '<span style="font-weight:bold;color:#209143">Бан на:</span>
<select name="time">
<option value="0"> 0 (предуп.) </option>
<option value="1"> 1 </option>
<option value="3"> 3 </option>
<option value="12"> 12 </option>
<option value="24"> 24 </option>
<option value="48"> 48 </option>
<option value="120"> 120 </option>
<option value="240"> 240 </option>
<option value="480"> 480 </option>
<option value="10000"> 10000 </option>
</select>
</div><div class="div">';
echo 'Сообщение:<br/><textarea cols="17" rows="2" name="message"></textarea>';
echo '<input type=submit name="submit" value="Забанить" class="submit white"/></form>';
}
}
}
echo '</div>';
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Разблокировка пользователя~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'delban_users':
if (isset($_GET['id'])) {
$id = num(@$_GET['id']);
$req = mysql_query("SELECT * FROM `users` WHERE `id` = '" . $id . "' LIMIT 1");
if (mysql_num_rows($req)) {
$user = mysql_fetch_assoc($req);
} else {
require('head.php');
error(' Такого пользователя нет !');
require('foot.php');
exit;
}
} else {
header("Location: index.php");
}
$req = mysql_query("SELECT * FROM `users_ban` WHERE `user` = '" . @$id . "' ORDER BY `time_ban` DESC LIMIT 1");
$res = mysql_fetch_assoc($req);
if ($res['time_ban'] > time()) {
$title = $title . ' :: Админка';
require('head.php');
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Бан пользователя</center></div>';
if (isset($_POST['submit'])) {
mysql_query("DELETE FROM `users_ban` WHERE `id` = '" . $res['id'] . "'");
if ($u['sex'] == 'm') {
$action[0] = 'Разблокировал';
} else {
$action[0] = 'Разблокировала';
}
$text = $action[0] . ' <a href = "page.php?id=' . $user['id'] . '">пользователя</a>.';
mysql_query("INSERT INTO `admin_jurnal` SET
`user` = '" . $u['id'] . "',
`text` = '$text',
`time` = '" . time() . "',
`new` = '1'
");
if ($u['sex'] == 'm') {
$action[0] = 'Разблокировал';
} else {
$action[0] = 'Разблокировала';
}
$text = $action[0] . ' <a href = "page.php?id=' . $user['id'] . '">пользователя</a>.';
mysql_query("INSERT INTO `admin_jurnal_ban` SET
`user` = '" . $u['id'] . "',
`text` = '$text',
`time` = '" . time() . "',
`new` = '1'
");
header('location: /page.php?id=' . $user['id'] . '');
} else {
echo '<div class="div">';
echo 'Вы уверены, что хотите разбанить пользователя ' . ico($user['sex'], $user['admin'], $user['online']) . ' <a href = "page.php?id=' . $user['id'] . '"><b><font color="#79358c">' . $user['login'] . '</font></b></a> ?';
echo '<form action="adminka.php?act=delban_users&id=' . @$id . '" method="post">';
echo '<input type="submit" name="submit" value="Да, разбанить" class="submit white"/>';
echo '</form>';
}
echo '</div>';
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
} else {
require('head.php');
echo 'ыыы лол';
require('foot.php');
}
break;
///~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Удаление нарушения с анкеты~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'del_ban':
$title = $title . ' :: Админка';
require('head.php');
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Удаление бана</center></div>';
if ($u['admin'] == 1 || $u['admin'] == 2) {
if (isset($_GET['id'])) {
$id = num(@$_GET['id']);
$req = mysql_query("SELECT * FROM `users` WHERE `id` = '" . $id . "' LIMIT 1");
if (mysql_num_rows($req)) {
$user = mysql_fetch_assoc($req);
}
}
if ($user['id'] && $user['id'] != $u['id']) {
if (isset($_POST['submit'])) {
mysql_query("DELETE FROM `users_ban` WHERE `user` = '" . $user['id'] . "'");
if ($u['sex'] == 'm') {
$action[0] = 'Очистил список банов';
} else {
$action[0] = 'Очистела список банов';
}
$text = $action[0] . ' <a href = "page.php?id=' . $user['id'] . '">пользователю</a>.';
mysql_query("INSERT INTO `admin_jurnal` SET
`user` = '" . $u['id'] . "',
`text` = '$text',
`time` = '" . time() . "',
`new` = '1'
");
if ($u['sex'] == 'm') {
$action[0] = 'Очистил список банов';
} else {
$action[0] = 'Очистила список банов';
}
$text = $action[0] . ' <a href = "page.php?id=' . $user['id'] . '">пользователю</a>.';
mysql_query("INSERT INTO `admin_jurnal_ban` SET
`user` = '" . $u['id'] . "',
`text` = '$text',
`time` = '" . time() . "',
`new` = '1'
");
header('location: /page.php?id=' . $user['id'] . '');
} else {
echo '<div class="div">Очистить список банов пользователю: ' . ico($user['sex'], $user['admin'], $user['online']) . ' <a href = "page.php?id=' . $user['id'] . '"><b><font color="#79358c">' . $user['login'] . '</font></b></a> (ID: <b><font color="green">' . $user['id'] . '</font></b>)';
echo '<hr />';
echo 'Вы подтверждаете очистку?<br/>';
echo '<form action="adminka.php?act=delete_bans&id=' . $user['id'] . '" method=post>';
echo '<input type=submit name="submit" value="Да" class="submit white"/></form>';
echo '</div>';
}
}
echo '</div>';
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
} else {
echo 'ыыы лол';
require('foot.php');
exit;
}
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Очистка банов с анкеты~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
case 'delete_bans':
$title = $title . ' :: Админка';
require('head.php');
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Очистка банов</center></div>';
if ($u['admin'] == 1 || $u['admin'] == 2) {
if (isset($_GET['id'])) {
$id = num(@$_GET['id']);
$req = mysql_query("SELECT * FROM `users` WHERE `id` = '" . $id . "' LIMIT 1");
if (mysql_num_rows($req)) {
$user = mysql_fetch_assoc($req);
}
}
if ($user['id'] && $user['id'] != $u['id']) {
if (isset($_POST['submit'])) {
mysql_query("DELETE FROM `users_ban_post` WHERE `user` = '" . $user['id'] . "'");
if ($u['sex'] == 'm') {
$action[0] = 'Очистил список банов';
} else {
$action[0] = 'Очистела список банов';
}
$text = $action[0] . ' <a href = "page.php?id=' . $user['id'] . '">пользователю</a>.';
mysql_query("INSERT INTO `admin_jurnal` SET
`user` = '" . $u['id'] . "',
`text` = '$text',
`time` = '" . time() . "',
`new` = '1'
");
if ($u['sex'] == 'm') {
$action[0] = 'Очистил список банов';
} else {
$action[0] = 'Очистила список банов';
}
$text = $action[0] . ' <a href = "page.php?id=' . $user['id'] . '">пользователю</a>.';
mysql_query("INSERT INTO `admin_jurnal_ban` SET
`user` = '" . $u['id'] . "',
`text` = '$text',
`time` = '" . time() . "',
`new` = '1'
");
header('location: /page.php?id=' . $user['id'] . '');
} else {
echo '<div class="div">Очистить список банов пользователю: ' . ico($user['sex'], $user['admin'], $user['online']) . ' <a href = "page.php?id=' . $user['id'] . '"><b><font color="#79358c">' . $user['login'] . '</font></b></a> (ID: <b><font color="green">' . $user['id'] . '</font></b>)';
echo '<hr />';
echo 'Вы подтверждаете очистку?<br/>';
echo '<form action="adminka.php?act=delete_bans&id=' . $user['id'] . '" method=post>';
echo '<input type=submit name="submit" value="Да" class="submit white"/></form>';
echo '</div>';
}
}
echo '</div>';
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
} else {
echo 'ыыы лол';
require('foot.php');
exit;
}
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Система~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'sistem':
$title = $title . ' :: Система';
require('head.php');
include 'core/formatfilesize.php';
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Система</center></div>';
echo '<div class="div">';
echo "Размер базы данных составляет: " . formatfilesize($dbsize);
echo '</div>';
echo '<div class="div">';
$os = explode(" ", php_uname());
$os = $os[0];
echo "Операционная система - " . $os;
echo '</div>';
echo '<div class="div">';
list ($php_ver1, $php_ver2, $php_ver3) = explode('.', strtok(strtok(phpversion(), '-'), ' '), 3);
if ($php_ver1 == 5) {
echo " Версия PHP: $php_ver1.$php_ver2.$php_ver3 (OK)";
} else {
echo " Версия PHP: $php_ver1.$php_ver2.$php_ver3";
echo '</br><font color="red"> Тестирование на версии php $php_ver1.$php_ver2.$php_ver3 не осуществялось</font>';
}
echo '</div>';
echo '<div class="div">';
if (function_exists('set_time_limit')) {
echo " set_time_limit: OK";
} else {
echo " set_time_limit: Запрещено";
}
echo '</div>';
echo '<div class="div">';
if (ini_get('session.use_trans_sid') == true) {
echo " session.use_trans_sid: OK";
} else {
echo " session.use_trans_sid: Нет";
echo '</br><font color="red"> Будет теряться сессия на браузерах без поддержки COOKIE</font>';
echo '</br><font color="red"> Добавьте в корневой .htaccess строку <b>php_value session.use_trans_sid 1</b></font>';
}
echo '</div>';
echo '<div class="div">';
if (ini_get('magic_quotes_gpc') == 0) {
echo " magic_quotes_gpc: 0 (OK)";
} else {
echo " magic_quotes_gpc: Включено";
echo '</br><font color="red"> Включено экранирование кавычек</font>';
echo '</br><font color="red"> Добавьте в корневой .htaccess строку <b>php_value magic_quotes_gpc 0</b></font>';
}
echo '</div>';
echo '<div class="div">';
if (ini_get('arg_separator.output') == '&') {
echo " arg_separator.output: (OK)";
} else {
echo " arg_separator.output: " . output_text(ini_get('arg_separator.output')) . "";
echo '</br><font color="red"> Возможно появление ошибки xml</font>';
echo '</br><font color="red"> Добавьте в корневой .htaccess строку <b>php_value arg_separator.output </b></font>';
}
echo '</div>';
echo '<div class="div">';
if (function_exists('imagecreatefromstring') && function_exists('gd_info')) {
$gdinfo = gd_info();
echo " GD: " . $gdinfo['GD Version'] . " OK";
} else {
echo " GD: Нет";
echo '</br><font color="red"> GD необходима для корректной работы движка</font>';
}
echo '</div>';
echo '<div class="div">';
if (function_exists('mysql_info')) {
echo " MySQL: OK";
} else {
echo " MySQL: Нет";
echo '</br><font color="red"> Без MySQL работа не возможна</font>';
}
echo '</div>';
echo '<div class="div">';
if (function_exists('iconv')) {
echo " Iconv: OK";
} else {
echo " Iconv: Нет";
echo '</br><font color="red"> Без Iconv работа не возможна</font>';
}
echo '</div>';
echo '<div class="div">';
if (class_exists('ffmpeg_movie')) {
echo " FFmpeg: OK";
} else {
echo " FFmpeg: Нет";
echo '</br><font color="red"> Без FFmpeg автоматическое создание скриношотов к видео недоступно</font>';
}
echo '</div>';
echo '<div class="div">';
if (ini_get('register_globals') == false) {
echo " register_globals off: OK";
} else {
echo " register_globals on: !!!";
echo '</br><font color="red"> register_globals включен. Грубое нарушение безопасности</font>';
}
echo '</div>';
echo '<div class="div">';
if (function_exists('mcrypt_cbc')) {
echo " Шифрование COOKIE: OK";
} else {
echo " Шифрование COOKIE: нет";
echo "</br><font color='red'> * mcrypt не доступен</font></div>";
}
echo '</div>';
echo '<div class="div">';
if (function_exists('imagecreate')) {
echo " imagecreate: OK";
} else {
echo " imagecreate: нет";
echo "</br><font color='red'> * imagecreate не доступен</font></div>";
}
echo '</div>';
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Жалобы~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'spam':
$title = $title . ' :: Жалобы';
require('head.php');
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Жалобы</center></div>';
if ($u['admin'] == 1 || $u['admin'] == 2) {
if (isset($_GET['ok'])) {
$ok = num($_GET['ok']);
$spamer = mysql_query("SELECT * FROM `spam` WHERE `spamer` = '$ok' LIMIT 1");
if ($spamer) {
mysql_query("DELETE FROM `spam` WHERE `spamer` = '$ok' LIMIT 1");
ok(' Удалено !');
}
}
if ($u['setting_users_list'])
$count = $u['setting_users_list']; else
$count = 10;
@$all = mysql_result(mysql_query("SELECT COUNT(*) FROM `spam`"), 0);
if ($all > 0) {
$total = intval(($all - 1) / $count) + 1;
$page = num(@$_GET['page']);
if (empty($page) or $page < 0)
$page = 1;
if ($page > $total)
$page = $total;
$start = $page * $count - $count;
$result = mysql_query("SELECT * FROM `spam` ORDER BY `time` DESC LIMIT $start, $count");
while ($msg = mysql_fetch_assoc($result)) {
$user = mysql_fetch_assoc(mysql_query("SELECT `id`,`login`,`sex`,`admin`,`online` FROM `users` WHERE `id` = '" . $msg["user"] . "'"));
$spamer = mysql_fetch_assoc(mysql_query("SELECT `id`,`login`,`sex`,`admin`,`online` FROM `users` WHERE `id` = '" . $msg["spamer"] . "'"));
$message = checkout($msg['message']);
echo '<div class="div">';
if (@$user['delete'] == 1) {
echo '' . ico($user['sex'], $user['admin'], $user['online']) . '';
echo ' <a href = "page.php?id=' . $user['id'] . '"><b><font color="#79358c"><del>' . $user['login'] . '</del></font></b></a>';
} else {
echo '' . ico($user['sex'], $user['admin'], $user['online']) . '';
echo ' <a href = "page.php?id=' . $user['id'] . '"><b><font color="#79358c">' . $user['login'] . '</font></b></a>';
}
echo '<span style="float: right; text-decoration: none;"><font color="green">(' . vremya($msg['time']) . ')</font></span>';
echo '<br>';
echo 'Пожаловался на сообщение: <b><font color="red">' . $message . '</font></b> от пользователя: ' . ico($spamer['sex'], $spamer['admin'], $spamer['online']) . ' <a href = "page.php?id=' . $spamer['id'] . '"><b><font color="#79358c">' . $spamer['login'] . '</font></b></a>';
echo '<span style="float: right; text-decoration: none;"><a href = "?act=spam&ok=' . $spamer['id'] . '"><img src="style/page/delete.gif"></a></span>';
echo '</div>';
}
navigation($page, $total, '?act=spam&');
} else {
echo '<div class="div"> Жалоб пока нет!</div>';
}
echo '</div>';
} else {
echo 'ыыы лол';
require('foot.php');
exit;
}
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Рефералы~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'ref':
$title = $title . ' :: Админка :: Рефералы';
require('head.php');
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Рефералы</center></div>';
if ($u['setting_jurnal_list'])
$count = $u['setting_jurnal_list']; else
$count = 10;
$all = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `ref` WHERE `id`"), 0);
if ($all > 0) {
$total = intval(($all - 1) / $count) + 1;
$page = num(@$_GET['page']);
if (empty($page) or $page < 0)
$page = 1;
if ($page > $total)
$page = $total;
$start = $page * $count - $count;
echo '<div class="title">';
$sort = check(@$_GET['sort']);
if ($sort == 'time') {
$sortq = 'ASC';
echo '<a href = "adminka.php?act=ref&sort=message&page=' . $page . '">Новые</a> | <b>Поcледние</b>';
}
if ($sort == 'message' || empty($sortq)) {
$sort = 'message';
$sortq = 'DESC';
echo '<b>Новые</b> | <a href = "adminka.php?act=ref&sort=time&page=' . $page . '">Поcледние</a>';
}
echo '</div>';
$result = mysql_query("SELECT * FROM `ref` WHERE `id` LIMIT " . $start . "," . $count . "");
while ($ref = mysql_fetch_assoc($result)) {
$user = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = '" . $ref["user"] . "'"));
echo '<div class="forum2">';
if ($ref['new'] == 1)
echo '<span style="float: right; font-size: small; color: grey"><font color="red"> New</font></span>';
echo '' . ico($user['sex'], $user['admin'], $user['online']) . '';
echo ' <a href = "page.php?id=' . $user['id'] . '"><b><font color="#79358c">' . $user['login'] . '</font></b></a>';
echo '<span style="float: right;color: green">(' . vremya($ref['time']) . ')</span>';
echo '</div>';
}
echo '</div>';
navigation($page, $total, 'adminka.php?act=ref&sort=' . $sort . '&');
} else {
echo '<div class="div">Нет новых событий!</div>';
}
echo '</div>';
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Тех журнал~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'jurnal':
require('head.php');
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Тех.журнал</center></div>';
echo '<div class="title">';
echo '<b>Все</b> | <a href = "adminka.php?act=jurnal_ban">Баны</a> | <a href = "adminka.php?act=jurnal_forum">Форум</a> |
<a href = "adminka.php?act=jurnal_blog">Дневники</a>
| <a href = "adminka.php?act=jurnal_foto">Фото</a> | <a href = "adminka.php?act=jurnal_news">Новости</a>
| <a href = "adminka.php?act=jurnal_edit">Редактирование Пользователи</a>
| <a href = "adminka.php?act=jurnal_money">Пополнения монет</a>
';
echo '</div>';
if ($u['setting_jurnal_list'])
$count = $u['setting_jurnal_list']; else
$count = 10;
@$all = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `admin_jurnal`"), 0);
if ($all > 0) {
$total = intval(($all - 1) / $count) + 1;
$page = num(@$_GET['page']);
if (empty($page) or $page < 0)
$page = 1;
if ($page > $total)
$page = $total;
$start = $page * $count - $count;
echo '<div class="title">';
$sort = check(@$_GET['sort']);
if ($sort == 'time') {
$sortq = 'ASC';
echo '<a href = "adminka.php?act=jurnal&sort=message&page=' . $page . '">Новые</a> | <b>Поcледние</b>';
}
if ($sort == 'message' || empty($sortq)) {
$sort = 'message';
$sortq = 'DESC';
echo '<b>Новые</b> | <a href = "adminka.php?act=jurnal&sort=time&page=' . $page . '">Поcледние</a>';
}
echo '</div>';
$result = mysql_query("SELECT * FROM `admin_jurnal` ORDER BY `time` $sortq LIMIT $start, $count");
while ($lenta = mysql_fetch_assoc($result)) {
$user = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = '" . $lenta["user"] . "'"));
echo '<div class="div">';
if ($lenta['new'] == 1)
echo '<span style="float: right; font-size: small; color: red"><font color="red"> New</font></span>';
echo '' . ico($user['sex'], $user['admin'], $user['online']) . ' ';
echo '<a href = "page.php?id=' . $user['id'] . '"><b><font color="#79358c">' . $user['login'] . '</font></b></a>';
echo '<span style="float: right;color: grey">(' . vremya($lenta['time']) . ')</span>';
echo '<br/>';
echo ' ' . $lenta['text'] . '';
echo '<br/>';
if ($lenta['new'] == 1)
echo '</div>';
if ($lenta['new'] == 1)
mysql_query("UPDATE `admin_jurnal` SET `new` = 0 WHERE `id` = '" . $lenta['id'] . "'");
echo '</div>';
}
echo '</div>';
navigation($page, $total, 'adminka.php?act=jurnal&sort=' . $sort . '&');
}else {
echo '<div class="div">Нет новых событий!</div>';
}
echo '</div>';
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Тех журнал бан~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'jurnal_ban':
require('head.php');
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Тех.журнал</center></div>';
echo '<div class="title">';
echo '<a href = "adminka.php?act=jurnal">Все</a> | <b>Баны</b> | <a href = "adminka.php?act=jurnal_forum">Форум</a> |
<a href = "adminka.php?act=jurnal_blog">Дневники</a>
| <a href = "adminka.php?act=jurnal_foto">Фото</a> | <a href = "adminka.php?act=jurnal_news">Новости</a>
| <a href = "adminka.php?act=jurnal_edit">Редактирование Пользователи</a>
| <a href = "adminka.php?act=jurnal_money">Пополнения монет</a>
';
echo '</div>';
if ($u['setting_jurnal_list'])
$count = $u['setting_jurnal_list']; else
$count = 10;
@$all = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `admin_jurnal_ban`"), 0);
if ($all > 0) {
$total = intval(($all - 1) / $count) + 1;
$page = num(@$_GET['page']);
if (empty($page) or $page < 0)
$page = 1;
if ($page > $total)
$page = $total;
$start = $page * $count - $count;
echo '<div class="title">';
$sort = check(@$_GET['sort']);
if ($sort == 'time') {
$sortq = 'ASC';
echo '<a href = "adminka.php?act=jurnal_ban&sort=message&page=' . $page . '">Новые</a> | <b>Поcледние</b>';
}
if ($sort == 'message' || empty($sortq)) {
$sort = 'message';
$sortq = 'DESC';
echo '<b>Новые</b> | <a href = "adminka.php?act=jurnal_ban&sort=time&page=' . $page . '">Поcледние</a>';
}
echo '</div>';
$result = mysql_query("SELECT * FROM `admin_jurnal_ban` ORDER BY `time` $sortq LIMIT $start, $count");
while ($lenta = mysql_fetch_assoc($result)) {
$user = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = '" . $lenta["user"] . "'"));
echo '<div class="div">';
if ($lenta['new'] == 1)
echo '<span style="float: right; font-size: small; color: red"><font color="red"> New</font></span>';
echo '' . ico($user['sex'], $user['admin'], $user['online']) . ' ';
echo '<a href = "page.php?id=' . $user['id'] . '"><b><font color="#79358c">' . $user['login'] . '</font></b></a>';
echo '<span style="float: right;color: grey">(' . vremya($lenta['time']) . ')</span>';
echo '<br/>';
echo ' ' . $lenta['text'] . '';
echo '<br/>';
if ($lenta['new'] == 1)
echo '</div>';
if ($lenta['new'] == 1)
mysql_query("UPDATE `admin_jurnal_ban` SET `new` = 0 WHERE `id` = '" . $lenta['id'] . "'");
echo '</div>';
}
echo '</div>';
navigation($page, $total, 'adminka.php?act=jurnal_ban&sort=' . $sort . '&');
} else {
echo '<div class="div">Нет новых событий!</div>';
}
echo '</div>';
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Тех журнал форум~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'jurnal_forum':
require('head.php');
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Тех.журнал</center></div>';
echo '<div class="title">';
echo '<a href = "adminka.php?act=jurnal">Все</a> | <a href = "adminka.php?act=jurnal_ban">Баны</a> | <b>Форум</b> |
<a href = "adminka.php?act=jurnal_blog">Дневники</a>
| <a href = "adminka.php?act=jurnal_foto">Фото</a> | <a href = "adminka.php?act=jurnal_news">Новости</a>
| <a href = "adminka.php?act=jurnal_edit">Редактирование Пользователи</a>
| <a href = "adminka.php?act=jurnal_money">Пополнения монет</a>
';
echo '</div>';
if ($u['setting_jurnal_list'])
$count = $u['setting_jurnal_list']; else
$count = 10;
@$all = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `admin_jurnal_forum`"), 0);
if ($all > 0) {
$total = intval(($all - 1) / $count) + 1;
$page = num(@$_GET['page']);
if (empty($page) or $page < 0)
$page = 1;
if ($page > $total)
$page = $total;
$start = $page * $count - $count;
echo '<div class="title">';
$sort = check(@$_GET['sort']);
if ($sort == 'time') {
$sortq = 'ASC';
echo '<a href = "adminka.php?act=jurnal_forum&sort=message&page=' . $page . '">Новые</a> | <b>Поcледние</b>';
}
if ($sbort == 'message' || empty($sortq)) {
$sort = 'message';
$sortq = 'DESC';
echo '<b>Новые</b> | <a href = "adminka.php?act=jurnal_forum&sort=time&page=' . $page . '">Поcледние</a>';
}
echo '</div>';
$result = mysql_query("SELECT * FROM `admin_jurnal_forum` ORDER BY `time` $sortq LIMIT $start, $count");
while ($lenta = mysql_fetch_assoc($result)) {
$user = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = '" . $lenta["user"] . "'"));
echo '<div class="div">';
if ($lenta['new'] == 1)
echo '<span style="float: right; font-size: small; color: red"><font color="red"> New</font></span>';
echo '' . ico($user['sex'], $user['admin'], $user['online']) . ' ';
echo '<a href = "page.php?id=' . $user['id'] . '"><b><font color="#79358c">' . $user['login'] . '</font></b></a>';
echo '<span style="float: right;color: grey">(' . vremya($lenta['time']) . ')</span>';
echo '<br/> ' . $lenta['text'] . '';
echo '<br/>';
if ($lenta['new'] == 1)
echo '</div>';
if ($lenta['new'] == 1)
mysql_query("UPDATE `admin_jurnal_forum` SET `new` = 0 WHERE `id` = '" . $lenta['id'] . "'");
echo '</div>';
}
echo '</div>';
echo '</div>';
navigation($page, $total, 'adminka.php?act=jurnal_forum&sort=' . $sort . '&');
} else {
echo '<div class="div">Нет новых событий!</div>';
}
echo '</div>';
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Тех журнал дневники~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'jurnal_blog':
require('head.php');
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Тех.журнал</center></div>';
echo '<div class="title">';
echo '<a href = "adminka.php?act=jurnal">Все</a> | <a href = "adminka.php?act=jurnal_ban">Баны</a> | <a href = "adminka.php?act=jurnal_forum">Форум</a> |
<b>Дневники</b>
| <a href = "adminka.php?act=jurnal_foto">Фото</a> | <a href = "adminka.php?act=jurnal_news">Новости</a>
| <a href = "adminka.php?act=jurnal_edit">Редактирование Пользователи</a>
| <a href = "adminka.php?act=jurnal_money">Пополнения монет</a>
';
echo '</div>';
if ($u['setting_jurnal_list'])
$count = $u['setting_jurnal_list']; else
$count = 10;
@$all = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `admin_jurnal_blog`"), 0);
if ($all > 0) {
$total = intval(($all - 1) / $count) + 1;
$page = num(@$_GET['page']);
if (empty($page) or $page < 0)
$page = 1;
if ($page > $total)
$page = $total;
$start = $page * $count - $count;
echo '<div class="title">';
$sort = check(@$_GET['sort']);
if ($sort == 'time') {
$sortq = 'ASC';
echo '<a href = "adminka.php?act=jurnal_blog&sort=message&page=' . $page . '">Новые</a> | <b>Поcледние</b>';
}
if ($sort == 'message' || empty($sortq)) {
$sort = 'message';
$sortq = 'DESC';
echo '<b>Новые</b> | <a href = "adminka.php?act=jurnal_blog&sort=time&page=' . $page . '">Поcледние</a>';
}
echo '</div>';
$result = mysql_query("SELECT * FROM `admin_jurnal_blog` ORDER BY `time` $sortq LIMIT $start, $count");
while ($lenta = mysql_fetch_assoc($result)) {
$user = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = '" . $lenta["user"] . "'"));
echo '<div class="div">';
if ($lenta['new'] == 1)
echo '<span style="float: right; font-size: small; color: red"><font color="red"> New</font></span>';
echo '' . ico($user['sex'], $user['admin'], $user['online']) . ' ';
echo '<a href = "page.php?id=' . $user['id'] . '"><b><font color="#79358c">' . $user['login'] . '</font></b></a>';
echo '<span style="float: right;color: grey">(' . vremya($lenta['time']) . ')</span>';
echo '<br/> ' . $lenta['text'] . '';
echo '<br/>';
if ($lenta['new'] == 1)
echo '</div>';
if ($lenta['new'] == 1)
mysql_query("UPDATE `admin_jurnal_blog` SET `new` = 0 WHERE `id` = '" . $lenta['id'] . "'");
echo '</div>';
}
echo '</div>';
navigation($page, $total, 'adminka.php?act=jurnal_blog&sort=' . $sort . '&');
} else {
echo '<div class="div">Нет новых событий!</div>';
}
echo '</div>';
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Тех журнал фото~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'jurnal_foto':
require('head.php');
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Тех.журнал</center></div>';
echo '<div class="title">';
echo '<a href = "adminka.php?act=jurnal">Все</a> |
<a href = "adminka.php?act=jurnal_ban">Баны</a> | <a href = "adminka.php?act=jurnal_forum">Форум</a> |
<a href = "adminka.php?act=jurnal_blog">Дневники</a>
| <b>Фото</b> | <a href = "adminka.php?act=jurnal_news">Новости</a>
| <a href = "adminka.php?act=jurnal_edit">Редактирование Пользователи</a>
| <a href = "adminka.php?act=jurnal_money">Пополнения монет</a>
';
echo '</div>';
if ($u['setting_jurnal_list'])
$count = $u['setting_jurnal_list']; else
$count = 10;
@$all = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `admin_jurnal_foto`"), 0);
if ($all > 0) {
$total = intval(($all - 1) / $count) + 1;
$page = num(@$_GET['page']);
if (empty($page) or $page < 0)
$page = 1;
if ($page > $total)
$page = $total;
$start = $page * $count - $count;
echo '<div class="title">';
$sort = check(@$_GET['sort']);
if ($sort == 'time') {
$sortq = 'ASC';
echo '<a href = "adminka.php?act=jurnal_foto&sort=message&page=' . $page . '">Новые</a> | <b>Поcледние</b>';
}
if ($sort == 'message' || empty($sortq)) {
$sort = 'message';
$sortq = 'DESC';
echo '<b>Новые</b> | <a href = "adminka.php?act=jurnal_foto&sort=time&page=' . $page . '">Поcледние</a>';
}
echo '</div>';
$result = mysql_query("SELECT * FROM `admin_jurnal_foto` ORDER BY `time` $sortq LIMIT $start, $count");
while ($lenta = mysql_fetch_assoc($result)) {
$user = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = '" . $lenta["user"] . "'"));
echo '<div class="div">';
if ($lenta['new'] == 1)
echo '<span style="float: right; font-size: small; color: grey"><font color="red"> New</font></span>';
echo '' . ico($user['sex'], $user['admin'], $user['online']) . ' ';
echo '<a href = "page.php?id=' . $user['id'] . '"><b><font color="#79358c">' . $user['login'] . '</font></b></a>';
echo '<span style="float: right;color: green">(' . vremya($lenta['time']) . ')</span>';
echo '<br/> ' . $lenta['text'] . '';
echo '<br/>';
if ($lenta['new'] == 1)
echo '</div>';
if ($lenta['new'] == 1)
mysql_query("UPDATE `admin_jurnal_foto` SET `new` = 0 WHERE `id` = '" . $lenta['id'] . "'");
echo '</div>';
}
echo '</div>';
echo '</div>';
navigation($page, $total, 'adminka.php?act=jurnal_foto&sort=' . $sort . '&');
} else {
echo '<div class="div">Нет новых событий!</div>';
}
echo '</div>';
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~~Тех журнал новости~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'jurnal_news':
require('head.php');
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Тех.журнал</center></div>';
echo '<div class="title">';
echo '<a href = "adminka.php?act=jurnal">Все</a> | <a href = "adminka.php?act=jurnal_ban">Баны</a> | <a href = "adminka.php?act=jurnal_forum">Форум</a> |
<a href = "adminka.php?act=jurnal_blog">Дневники</a>
| <a href = "adminka.php?act=jurnal_foto">Фото</a> | <b>Новости</b>
| <a href = "adminka.php?act=jurnal_edit">Редактирование Пользователи</a>
| <a href = "adminka.php?act=jurnal_money">Пополнения монет</a>
';
echo '</div>';
if ($u['setting_jurnal_list'])
$count = $u['setting_jurnal_list']; else
$count = 10;
@$all = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `admin_jurnal_news`"), 0);
if ($all > 0) {
$total = intval(($all - 1) / $count) + 1;
$page = num(@$_GET['page']);
if (empty($page) or $page < 0)
$page = 1;
if ($page > $total)
$page = $total;
$start = $page * $count - $count;
echo '<div class="title">';
$sort = check(@$_GET['sort']);
if ($sort == 'time') {
$sortq = 'ASC';
echo '<a href = "adminka.php?act=jurnal_news&sort=message&page=' . $page . '">Новые</a> | <b>Поcледние</b>';
}
if ($sort == 'message' || empty($sortq)) {
$sort = 'message';
$sortq = 'DESC';
echo '<b>Новые</b> | <a href = "adminka.php?act=jurnal_news&sort=time&page=' . $page . '">Поcледние</a>';
}
echo '</div>';
$result = mysql_query("SELECT * FROM `admin_jurnal_news` ORDER BY `time` $sortq LIMIT $start, $count");
while ($lenta = mysql_fetch_assoc($result)) {
$user = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = '" . $lenta["user"] . "'"));
echo '<div class="div">';
if ($lenta['new'] == 1)
echo '<span style="float: right; font-size: small; color: red"><font color="red"> New</font></span>';
echo '' . ico($user['sex'], $user['admin'], $user['online']) . ' ';
echo '<a href = "page.php?id=' . $user['id'] . '"><b><font color="#79358c">' . $user['login'] . '</font></b></a>';
echo '<span style="float: right;color: grey">(' . vremya($lenta['time']) . ')</span>';
echo '<br/> ' . $lenta['text'] . '';
echo '<br/>';
if ($lenta['new'] == 1)
echo '</div>';
if ($lenta['new'] == 1)
mysql_query("UPDATE `admin_jurnal_news` SET `new` = 0 WHERE `id` = '" . $lenta['id'] . "'");
echo '</div>';
}
echo '</div>';
navigation($page, $total, 'adminka.php?act=jurnal_news&sort=' . $sort . '&');
} else {
echo '<div class="div">Нет новых событий!</div>';
}
echo '</div>';
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~Тех журнал отредактированые пользователи~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'jurnal_edit':
require('head.php');
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Тех.журнал</center></div>';
echo '<div class="title">';
echo '<a href = "adminka.php?act=jurnal">Все</a> | <a href = "adminka.php?act=jurnal_ban">Баны</a> | <a href = "adminka.php?act=jurnal_forum">Форум</a> |
<a href = "adminka.php?act=jurnal_blog">Дневники</a>
| <a href = "adminka.php?act=jurnal_foto">Фото</a> | <a href = "adminka.php?act=jurnal_news">Новости</a>
| <b>Редактирование Пользователи</b>
| <a href = "adminka.php?act=jurnal_money">Пополнения монет</a>
';
echo '</div>';
if ($u['setting_jurnal_list'])
$count = $u['setting_jurnal_list']; else
$count = 10;
@$all = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `admin_jurnal_edit`"), 0);
if ($all > 0) {
$total = intval(($all - 1) / $count) + 1;
$page = num(@$_GET['page']);
if (empty($page) or $page < 0)
$page = 1;
if ($page > $total)
$page = $total;
$start = $page * $count - $count;
echo '<div class="title">';
$sort = check(@$_GET['sort']);
if ($sort == 'time') {
$sortq = 'ASC';
echo '<a href = "adminka.php?act=jurnal_edit&sort=message&page=' . $page . '">Новые</a> | <b>Поcледние</b>';
}
if ($sort == 'message' || empty($sortq)) {
$sort = 'message';
$sortq = 'DESC';
echo '<b>Новые</b> | <a href = "adminka.php?act=jurnal_edit&sort=time&page=' . $page . '">Поcледние</a>';
}
echo '</div>';
$result = mysql_query("SELECT * FROM `admin_jurnal_edit` ORDER BY `time` $sortq LIMIT $start, $count");
while ($lenta = mysql_fetch_assoc($result)) {
$user = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = '" . $lenta["user"] . "'"));
echo '<div class="div">';
if ($lenta['new'] == 1)
echo '<span style="float: right; font-size: small; color: red"><font color="red"> New</font></span>';
echo '' . ico($user['sex'], $user['admin'], $user['online']) . ' ';
echo '<a href = "page.php?id=' . $user['id'] . '"><b><font color="#79358c">' . $user['login'] . '</font></b></a>';
echo '<span style="float: right;color: grey">(' . vremya($lenta['time']) . ')</span>';
echo '<br/>';
echo ' ' . $lenta['text'] . '';
echo '<br/>';
if ($lenta['new'] == 1)
echo '</div>';
if ($lenta['new'] == 1)
mysql_query("UPDATE `admin_jurnal_edit` SET `new` = 0 WHERE `id` = '" . $lenta['id'] . "'");
echo '</div>';
}
echo '</div>';
navigation($page, $total, 'adminka.php?act=jurnal_edit&sort=' . $sort . '&');
} else {
echo '<div class="div">Нет новых событий!</div>';
}
echo '</div>';
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Тех журнал монеты~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'jurnal_money':
require('head.php');
echo '<div class="title"><center><a href="/adminka.php"> Админка</a> :: Тех.журнал</center></div>';
echo '<div class="title">';
echo '<a href = "adminka.php?act=jurnal">Все</a> | <a href = "adminka.php?act=jurnal_ban">Баны</a> | <a href = "adminka.php?act=jurnal_forum">Форум</a> |
<a href = "adminka.php?act=jurnal_blog">Дневники</a>
| <a href = "adminka.php?act=jurnal_foto">Фото</a> | <a href = "adminka.php?act=jurnal_news">Новости</a>
| <a href = "adminka.php?act=jurnal_edit">Редактирование Пользователи</a>
| <b>Пополнения монет</b>
';
echo '</div>';
if ($u['setting_jurnal_list'])
$count = $u['setting_jurnal_list']; else
$count = 10;
@$all = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `admin_jurnal_money`"), 0);
if ($all > 0) {
$total = intval(($all - 1) / $count) + 1;
$page = num(@$_GET['page']);
if (empty($page) or $page < 0)
$page = 1;
if ($page > $total)
$page = $total;
$start = $page * $count - $count;
echo '<div class="title">';
if ($sort == 'time') {
$sortq = 'ASC';
echo '<a href = "adminka.php?act=jurnal_money&sort=message&page=' . $page . '">Новые</a> | <b>Поcледние</b>';
}
if ($sort == 'message' || empty($sortq)) {
$sort = 'message';
$sortq = 'DESC';
echo '<b>Новые</b> | <a href = "adminka.php?act=jurnal_money&sort=time&page=' . $page . '">Поcледние</a>';
}
echo '</div>';
$result = mysql_query("SELECT * FROM `admin_jurnal_money` ORDER BY `time` $sortq LIMIT $start, $count");
while ($lenta = mysql_fetch_assoc($result)) {
$user = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = '" . $lenta["user"] . "'"));
echo '<div class="div">';
if ($lenta['new'] == 1)
echo '<span style="float: right; font-size: small; color: grey"><font color="red"> New</font></span>';
echo '' . ico($user['sex'], $user['admin'], $user['online']) . ' ';
echo '<a href = "page.php?id=' . $user['id'] . '"><b><font color="#79358c">' . $user['login'] . '</font></b></a>';
echo '<span style="float: right;color: green">(' . vremya($lenta['time']) . ')</span>';
echo '<br/>';
echo ' ' . $lenta['text'] . '</br>';
echo 'Код пополнения <font color="red">' . $lenta['code'] . '</font>';
echo '<br/>';
if ($lenta['new'] == 1)
echo '</div>';
if ($lenta['new'] == 1)
mysql_query("UPDATE `admin_jurnal_money` SET `new` = 0 WHERE `id` = '" . $lenta['id'] . "'");
echo '</div>';
}
echo '</div>';
navigation($page, $total, 'adminka.php?act=jurnal_money&sort=' . $sort . '&');
} else {
echo '<div class="div">Нет новых событий!</div>';
}
echo '</div>';
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Пароль~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
case 'rass':
$title = $title . ' :: Пароль';
require('head.php');
echo '<div class="title"><center>';
echo '<a href="adminka.php">Админка</a> :: Разослать Аден';
echo '</center></div><div class="div">';
if ($u['admin'] == 1) {
echo '<form action="?change" method="post">';
echo 'Сколько Вы желаете разослать?:<br/>';
echo '<input name="num" type="text" value=""/><br/>';
echo '<input type="submit" value="Сделать!"/>';
echo '</form>';
} else {
echo 'Это доступно только создателям!';
}
echo '</div>';
echo '<div class="title">';
echo '<img src="style/page/back.png" alt="Back"> <a href = "?sid=back" onclick="history.back()">Назад</a>';
echo '</div>';
require('foot.php');
break;
//~~~~~~~~~~~~~~~~~~~~~~~Главная админки~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
default:
$title = $title . ' :: Админка';
require('head.php');
$count_spam = mysql_result(mysql_query("SELECT COUNT(*) FROM `spam`"), 0);
$admins = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `admin`"), 0);
echo '<div class="title"><center>Админка</center></div>';
echo '<div class = "div"><img src="style/page/go_gift.gif"> <a href = "/gifts.php">Подарки</a></div>';
echo '<div class = "div"><img src="style/page/duels.gif"> <a href = "/smiles.php">Смайлы</a></div>';
echo '<div class = "div"><img src="style/page/ref.png"> <a href = "/adminka.php?act=ref">Рефералы</a></div>';
echo '<div class = "div"><img src="style/page/up.png"> <a href = "/adminka.php?act=rass">Рассылка монет</a></div>';
echo '<div class = "div"><img src="style/page/page.gif"> <a href = "/adminka.php?act=jurnal">Технический журнал</a></div>';
echo '</div>';
require('foot.php');
break;
}
} else {
require_once("core/core.php"); require_once("core/ip.php"); $title = 'Попался хацкер ;)'; require_once("head.php"); echo '<div class="div"><h1><font color="red">Что здесь забыл лалка?</font></h1></div>'; require_once("foot.php");
}
?>