3
* Xibo - Digitial Signage - http://www.xibo.org.uk
4
* Copyright (C) 2009 Daniel Garner
6
* This file is part of Xibo.
8
* Xibo is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU Affero General Public License as published by
10
* the Free Software Foundation, either version 3 of the License, or
13
* Xibo is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU Affero General Public License for more details.
18
* You should have received a copy of the GNU Affero General Public License
19
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
21
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
28
function __construct(database $db, user $user)
35
function displayPage()
40
function on_page_load()
45
function echo_page_heading()
51
* Shows the Time Information
54
function ShowTimeInfo()
57
$response = new ResponseManager();
58
$datemanager = new DateManager($db);
60
$output = '<h3>' . __('System Information') . '</h3>';
62
$output .= '<li>' . __('Local Time') . ': ' . $datemanager->GetClock() . '</li>';
63
$output .= '<li>' . __('System Time') . ': ' . $datemanager->GetSystemClock() . '</li>';
64
$output .= '<li>' . __('Local Date') . ': ' . $datemanager->GetLocalDate('Y-m-d H:i:s') . '</li>';
65
$output .= '<li>' . __('System Date') . ': ' . $datemanager->GetSystemDate('Y-m-d H:i:s') . '</li>';
68
$response->SetFormRequestResponse($output, __('Date / Time Information'), '480px', '240px');
79
$response = new ResponseManager();
80
$datemanager = new DateManager($db);
82
$output = $datemanager->GetClock();
84
$response->SetFormRequestResponse($output, __('Date / Time Information'), '480px', '240px');
85
$response->clockUpdate = true;
86
$response->success = false;
b'\\ No newline at end of file'