Ejemplo n.º 1
0
    }
    fclose($file_count);
    @(list($today, $yesterday, $total, $date, $days) = split("%", $data));
    echo ceil($total / $days);
}
?>
			
						Đang online: <?php 
echo online();
?>
 <br>
						Truy cập hôm nay: <?php 
echo today();
?>
 <br>
						Truy cập hôm qua: <?php 
echo yesterday();
?>
 <br>
						Tổng số truy cập: <?php 
total();
?>
 <br>
						Truy cập trung bình: <?php 
avg();
?>
 <br>
				   
    	</td>
    </tr> 
</table>
Ejemplo n.º 2
0
function asTimeStampYesterday($stamp = '')
{
    if (empty($stamp)) {
        $stamp = time();
    }
    return dateTodayStamp(yesterday() - 2);
}
Ejemplo n.º 3
0
	include_once('ressources/class.groups.inc');
	include_once('ressources/class.mysql.inc');
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.system.network.inc');

	$user=new usersMenus();
	if($user->AsSquidAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["yesterday"])){yesterday();exit;}
	
	if(isset($_GET["graph1"])){graph1();exit;}
	if(isset($_GET["graph2"])){graph2();exit;}
	

js();

function tabs(){
	$page=CurrentPageName();
	$tpl=new templates();
	$array["popup"]='{today}';
	$array["yesterday"]='{yesterday}';
	

	$page=CurrentPageName();
Ejemplo n.º 4
0
    exit;
}
if (isset($_GET["popup"])) {
    table();
    exit;
}
if (isset($_GET["today"])) {
    today();
    exit;
}
if (isset($_GET["today-list"])) {
    today_list();
    exit;
}
if (isset($_GET["yesterday"])) {
    yesterday();
    exit;
}
tabs();
function tabs()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $page = CurrentPageName();
    $users = new usersMenus();
    $q = new mysql();
    $array["popup"] = '{this_hour}';
    $array["today"] = '{today}';
    $array["yesterday"] = '{yesterday}';
    $fontsize = 18;
    while (list($num, $ligne) = each($array)) {
Ejemplo n.º 5
0
function get_date($timescale)
{
    // If $timescale set, build relevant date range string in SQL
    if (!empty($timescale)) {
        switch ($timescale) {
            case "today":
                $sub_sql = today();
                break;
            case "yesterday":
                $sub_sql = yesterday();
                break;
            case "thisweek":
                $sub_sql = thisweek();
                break;
            case "thismonth":
                $sub_sql = thismonth();
                break;
            case "thisquarter":
                $sub_sql = thisquarter();
                break;
            case "thisyear":
                $sub_sql = thisyear();
                break;
        }
    } else {
        $sub_sql = "";
    }
    return $sub_sql;
}