Lines Matching +full:- +full:- +full:date
10 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
19 protected $date; variable in admin_plugin_logviewer
32 $this->facilities = $this->getFacilities();
33 $this->facility = $INPUT->str('facility');
34 if (!in_array($this->facility, $this->facilities)) {
35 $this->facility = $this->facilities[0];
38 $this->date = $INPUT->str('date');
39 if (!preg_match('/^\d\d\d\d-\d\d-\d\d$/', $this->date)) {
40 $this->date = date('Y-m-d');
48 echo $this->locale_xhtml('intro');
49 $this->displayTabs();
50 $this->displayLog();
55 * Show the navigational tabs and date picker
62 $form->setHiddenField('do', 'admin');
63 $form->setHiddenField('page', 'logviewer');
64 $form->setHiddenField('facility', $this->facility);
65 $form->addTextInput('date', $this->getLang('date'))
66 ->attr('type', 'date')->val($this->date)->addClass('quickselect');
67 $form->addButton('submit', '>')->attr('type', 'submit');
68 echo $form->toHTML();
71 foreach ($this->facilities as $facility) {
73 if ($facility == $this->facility) {
78 … ['do' => 'admin', 'page' => 'logviewer', 'date' => $this->date, 'facility' => $facility]
92 $logfile = Logger::getInstance($this->facility)->getLogfile($this->date);
94 echo $this->locale_xhtml('nolog');
99 $lines = $this->getLogLines($logfile);
100 $this->printLogLines($lines);
102 msg($e->getMessage(), -1);
152 fseek($fp, -$toread, SEEK_END);
198 --$i; // rewind the counter