View file system/inc/classes/admin.class.php
<?php /** * @name SHCMS Engine * @copyright Shamsik © 2012 */ class adminka { function admin(){ global $user_id; $admin = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `team`='6'")); if($admin['id'] != $user_id) { header("Location: /index.php"); include_once'../template/foot.php'; exit; } } } $adminka = new adminka; ?>