View file adm_panel/index.php

File size: 2.15Kb
<?php
define('NTOP', 1);
$title = 'admin panel';
require_once('../system/connect.php');
require_once('../system/core.php');
require_once('../system/function.php');
require_once('../m/head.php');
reg();
level(2);
	$plaforms_no_moder = mysql_num_rows(mysql_query("SELECT * FROM `".$prefix."sait` WHERE `status` = '0'"));
	$plaforms_all = mysql_num_rows(mysql_query("SELECT * FROM `".$prefix."sait`"));
	$users_all = mysql_num_rows(mysql_query("SELECT * FROM `".$prefix."users`"));
	$rekl_all = mysql_num_rows(mysql_query("SELECT * FROM `".$prefix."rekl`"));
	$news_all = mysql_num_rows(mysql_query("SELECT * FROM `".$prefix."news`"));
	$cat_all = mysql_num_rows(mysql_query("SELECT * FROM `".$prefix."cat`"));
		echo '<div class="title2">';
				echo 'admin panel';
				echo '</div>';
		
		
		echo '<div class="main"><img src="/img/index/icon.png" alt="*" /> <a href="http://'.$set['home'].'/adm_panel/moderacia.php">moderation sites</a> [<b>'.$plaforms_no_moder.'</b>]</br>';
		echo '<img src="/img/index/icon.png" alt="*" /> <a href="http://'.$set['home'].'/adm_panel/category.php">Manage Categories</a> [<b>'.$cat_all.'</b>]</br>';
		echo '<img src="/img/index/icon.png" alt="*" /> <a href="http://'.$set['home'].'/adm_panel/settings.php">System Settings</a></br>';
		echo '<img src="/img/index/icon.png" alt="*" /> <a href="http://'.$set['home'].'/adm_panel/mail.php">Bulk messaging</a></br>';
		echo '<img src="/img/index/icon.png" alt="*" /> <a href="http://'.$set['home'].'/adm_panel/reklama.php">advertising management</a> [<b>'.$rekl_all.'</b>]</br>';
		echo '<img src="/img/index/icon.png" alt="*" /> <a href="http://'.$set['home'].'/adm_panel/poisk.php">Search site</a></br>';
		echo '<img src="/img/index/icon.png" alt="*" /> <a href="http://'.$set['home'].'/adm_panel/users.php">user Management</a> [<b>'.$users_all.'</b>]</br>';
		echo '<img src="/img/index/icon.png" alt="*" /> <a href="http://'.$set['home'].'/adm_panel/platforms.php">management platforms</a> [<b>'.$plaforms_all.'</b>]</br>';
		echo '<img src="/img/index/icon.png" alt="*" /> <a href="http://'.$set['home'].'/adm_panel/news.php">management News</a> [<b>'.$news_all.'</b>]</div>';
		

require_once('../m/foot.php');
?>