View file system/inc/classes/administration.class.php

File size: 953B
<?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("Refresh:1; url=/");
	        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;






?>