]> git.datanom.net - qtadmin.git/blobdiff - lib/utils.inc.php
fix indentation
[qtadmin.git] / lib / utils.inc.php
index ec842b873b6657a7d7b18e2662ed75c8051bbdb4..e9e8518c4f23284ce8e87dd564ff411c35c8b849 100644 (file)
@@ -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 {
@@ -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;
-               }
 }
This page took 0.062269 seconds and 5 git commands to generate.