Файл: EROCMS 11.2 ДЛЯ ADULT/Script/pages/control/default.php
Строк: 110
<?php
/*
Автор скрипта https://bymas.ru/id85823
Скрипты, программы на заказ.
Быстро, качественно, недорого.
*/
if (isset($_GET['out'])){
setcookie('password');
session_destroy();
logs($user['id'], 'Покинул сайт.', 0);
header('Location: /control.html?'.rand(1,9));
exit;
}
$files_publish = $mysqli -> query("select count(*) from ero_files where date > '".time()."'") -> fetch_row();
$advertising = $mysqli -> query("select count(*) from ero_advertising") -> fetch_row();
$users = $mysqli -> query("select count(*) from ero_users") -> fetch_row();
?>
<table cellpadding="7" width="100%" class="functions_data">
<tr>
<th><div class="menu_j"><a href="?func=rewriting" class="top_menu_j"><img src="/designs/icons/control/rewriting.png" width="32" height="32" /><p>Рерайтинг</p></a></div></th>
<th><div class="menu_j"><a href="?func=add" class="top_menu_j"><img src="/designs/icons/control/add.png" width="32" height="32" /><p>Добавить видео</p></a></div></th>
<th><div class="menu_j"><a href="?func=import" class="top_menu_j"><img src="/designs/icons/control/import.png" width="32" height="32" /><p>Импорт видео</p></a></div></th>
<th><div class="menu_j"><a href="?func=users" class="top_menu_j"><img src="/designs/icons/control/users.png" width="32" height="32" /><p>Пользователи (<?=$users[0]?>)</p></a></div></th>
</tr>
<?
if ($user['access'] == 1) {
?>
<tr>
<th><div class="menu_j"><a href="?func=settings" class="top_menu_j"><img src="/designs/icons/control/settings.png" width="32" height="32" /><p>Настройки</p></a></div></th>
<th><div class="menu_j"><a href="?func=pages" class="top_menu_j"><img src="/designs/icons/control/pages.png" width="32" height="32" /><p>Популярные</p></a></div></th>
<th><div class="menu_j"><a href="?func=parsing" class="top_menu_j"><img src="/designs/icons/control/parsing.png" width="32" height="32" /><p>Парсинг файлов</p></a></div></th>
<?
if ($user['access'] == 1) {
?>
<th><div class="menu_j"><a href="?func=addCat" class="top_menu_j"><img src="/designs/icons/control/addCat.png" width="32" height="32" /><p>Создать категорию</p></a></div></th>
<?
}
?>
</tr>
<?
}
?>
<tr>
<?
if ($user['access'] == 1) {
?>
<th><div class="menu_j"><a href="?func=publish" class="top_menu_j"><img src="/designs/icons/control/publish.png" width="32" height="32" /><p>Отложенные (<?=$files_publish[0]?>)</p></a></div></th>
<th><div class="menu_j"><a href="?func=advertising" class="top_menu_j"><img src="/designs/icons/control/advertising.png" width="32" height="32" /><p>Реклама (<?=$advertising[0]?>)</p></a></div></th>
<th><div class="menu_j"><a href="?func=functions_data" class="top_menu_j"><img src="/designs/icons/control/functions_data.png" width="32" height="32" /><p>Информация</p></a></div></th>
<?
}
?>
<th><div class="menu_j"><a href="?func=out" class="top_menu_j"><img src="/designs/icons/control/out.png" width="32" height="32" /><p>Выйти</p></a></div></th>
</tr>
</table>