X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/b51b15db0060608ac3fcf58b93ccc048f85bf8a8..d1a3e21105d0c6420cca752b67bc6ea24df2b634:/lib/utils.inc.php diff --git a/lib/utils.inc.php b/lib/utils.inc.php index ec842b8..47042b7 100644 --- a/lib/utils.inc.php +++ b/lib/utils.inc.php @@ -133,14 +133,14 @@ class Utils { $info = @ldap_get_entries($ds, $sr); // array if ($info['count'] > 0) { $_SESSION['user'] = $user; - $this->user = $user; + $this->user = $user; $result = true; $this->loginStatus = 'OK'; $admin = 'NO'; if (isset($info[0]['domainglobaladmin'])) { $admin = $info[0]['domainglobaladmin'][0]; $admin = strtoupper($admin); - } + } $this->is_admin = ($admin == 'YES') ? true : false; $_SESSION['is_admin'] = $this->is_admin; } else { @@ -203,11 +203,11 @@ class Utils { global $CFG; $timeout = $CFG->session_timeout * 60 * 1000; - $this->heading = str_replace('__TITLE__', $heading, $this->heading); + $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( @@ -222,7 +222,7 @@ class Utils { 'T' => 'MTA err', 'C' => 'Clean' ); - + $string = $table[$code]; if (empty($string)) $string = 'Unknown';