Beispiel #1
0
$mtime = explode(" ", $mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;
?>

<!-- put other code and html in here -->
<?php 
include "../templates/header.php";
//including classes
include '../classes/CafeDetails.php';
include '../classes/CafeTrac.php';
//creating objects
$cafe_details = new CafeDetails();
$cafe_trac = new CafeTrac();
//getting all the distinct activated cities
$city_result = $cafe_details->getDistinctCities();
//parameters for counting the screens live
$day4 = date("Y-m-d", mktime(0, 0, 0, date("m"), date("d") - 4, date("Y")));
$day3 = date("Y-m-d", mktime(0, 0, 0, date("m"), date("d") - 3, date("Y")));
$day2 = date("Y-m-d", mktime(0, 0, 0, date("m"), date("d") - 2, date("Y")));
$day1 = date("Y-m-d", mktime(0, 0, 0, date("m"), date("d") - 1, date("Y")));
$today = date("Y-m-d", mktime(0, 0, 0, date("m"), date("d"), date("Y")));
$reg_t = 0;
$act_t = 0;
$d1_t = 0;
$d2_t = 0;
$d3_t = 0;
$d4_t = 0;
$td_t = 0;
?>
<body>