From: Michael Rasmussen Date: Sun, 31 May 2015 13:22:15 +0000 (+0200) Subject: fix indentation X-Git-Url: http://git.datanom.net/qtadmin.git/commitdiff_plain/8cb18100cbd00c2a8bf77302b4393d6675f7be44 fix indentation --- diff --git a/lib/utils.inc.php b/lib/utils.inc.php index 47042b7..e9e8518 100644 --- a/lib/utils.inc.php +++ b/lib/utils.inc.php @@ -191,42 +191,43 @@ class Utils { return $this->header; } - public function getFooter() { - return $this->footer; - } + public function getFooter() { + return $this->footer; + } - public function getHeading() { - return $this->heading; - } + public function getHeading() { + return $this->heading; + } + + public function setHeading($heading) { + global $CFG; - public function setHeading($heading) { - global $CFG; + $timeout = $CFG->session_timeout * 60 * 1000; + $this->heading = str_replace('__TITLE__', $heading, $this->heading); + $this->header = str_replace('__TITLE__', $heading, $this->header); + $this->header = str_replace('__ROOT__', $CFG->wwwroot, $this->header); + $this->header = str_replace('__TIMEOUT__', $timeout, $this->header); + } - $timeout = $CFG->session_timeout * 60 * 1000; - $this->heading = str_replace('__TITLE__', $heading, $this->heading); - $this->header = str_replace('__TITLE__', $heading, $this->header); - $this->header = str_replace('__ROOT__', $CFG->wwwroot, $this->header); - $this->header = str_replace('__TIMEOUT__', $timeout, $this->header); - } + public function convertContent($code) { + $table = array( + 'V' => 'Virus', + 'B' => 'Banned', + 'U' => 'Unchecked', + 'S' => 'Spam', + 'Y' => 'Spammy', + 'M' => 'Bad Mime', + 'H' => 'Bad Header', + 'O' => 'Over sized', + 'T' => 'MTA err', + 'C' => 'Clean' + ); + + $string = $table[$code]; + if (empty($string)) + $string = 'Unknown'; + + return $string; + } - public function convertContent($code) { - $table = array( - 'V' => 'Virus', - 'B' => 'Banned', - 'U' => 'Unchecked', - 'S' => 'Spam', - 'Y' => 'Spammy', - 'M' => 'Bad Mime', - 'H' => 'Bad Header', - 'O' => 'Over sized', - 'T' => 'MTA err', - 'C' => 'Clean' - ); - - $string = $table[$code]; - if (empty($string)) - $string = 'Unknown'; - - return $string; - } }