File size: 951B
<?php
/**
* @name SHCMS Engine
* @copyright Shamsik © 2012
*/
class adminka_list
{
function admin()
{
global $user_id;
$admin_users = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `team`='6'"));
if($admin_users['id'] != $user_id) {
header("Location: /index.php");
include_once'../template/foot.php';
exit;
}
}
function greeting()
{
$hourAssign = date("H");
if (($hourAssign >= 0) && ($hourAssign < 5))
print("Доброй ночи:");
elseif (($hourAssign >= 10) && ($hourAssign < 18))
print("Добрый день:");
elseif (($hourAssign >= 18) && ($hourAssign < 24))
print("Добрый вечер:");
else
print("Доброе утро:");
}
}
$adminka = new adminka_list;
?>