diff --git a/lam/lib/blowfish.inc b/lam/lib/blowfish.inc index 0e2a87d1..32c6370e 100644 --- a/lam/lib/blowfish.inc +++ b/lam/lib/blowfish.inc @@ -322,7 +322,7 @@ class Cipher_blowfish { var $_rounds = 16; /** Constructor */ - function Cipher_blowfish($params = null) + function Cipher_blowfish() { } diff --git a/lam/lib/ldap.inc b/lam/lib/ldap.inc index 4a24b4e5..d2776236 100644 --- a/lam/lib/ldap.inc +++ b/lam/lib/ldap.inc @@ -224,6 +224,7 @@ class Ldap{ ldap_free_result($sr); return $ret; } + else return ""; } /** @@ -301,7 +302,7 @@ class Ldap{ if ($info) { $this->objectClasses = $info[0]['objectclasses']; array_shift($this->objectClasses); - return true; + return; } } // if search failed save empty result @@ -357,7 +358,7 @@ class Ldap{ } } } - @closedir($h); + @closedir($dir); } } @@ -488,6 +489,7 @@ class Ldap{ elseif ($part_a == max($part_a, $part_b)) return 1; else return -1; } + return -1; } /** diff --git a/lam/lib/lists.inc b/lam/lib/lists.inc index 571a39e1..effb35f5 100644 --- a/lam/lib/lists.inc +++ b/lam/lib/lists.inc @@ -59,12 +59,12 @@ function listSort($sort, $attr_array, $info) { if ($sort != "dn") { // sort by first attribute with name $sort if ($a[$sort][0] == $b[$sort][0]) return 0; - else if ($a[$sort][0] == max($a[$sort][0], $b[$sort][0])) return 1; + elseif ($a[$sort][0] == max($a[$sort][0], $b[$sort][0])) return 1; else return -1; } else { if ($a[$sort] == $b[$sort]) return 0; - else if ($a[$sort] == max($a[$sort], $b[$sort])) return 1; + elseif ($a[$sort] == max($a[$sort], $b[$sort])) return 1; else return -1; } } diff --git a/lam/lib/profiles.inc b/lam/lib/profiles.inc index 06ac2469..4dc85441 100644 --- a/lam/lib/profiles.inc +++ b/lam/lib/profiles.inc @@ -326,6 +326,7 @@ function saveHostProfile($attributes, $profile) { * Deletes a user profile * * @param string $file name of profile (Without .pru) +* @return boolean true if profile was deleted */ function delUserProfile($file) { if (!$_SESSION['loggedIn'] == true) return false; @@ -334,12 +335,14 @@ function delUserProfile($file) { if (is_file($prof)) { return @unlink($prof); } + else return false; } /** * Deletes a group profile * * @param string $file name of profile (Without .prg) +* @return boolean true if profile was deleted */ function delGroupProfile($file) { if (!$_SESSION['loggedIn'] == true) return false; @@ -348,12 +351,14 @@ function delGroupProfile($file) { if (is_file($prof)) { return @unlink($prof); } + else return false; } /** * Deletes a host profile * * @param string $file name of profile (Without .prh) +* @return boolean true if profile was deleted */ function delHostProfile($file) { if (!$_SESSION['loggedIn'] == true) return false; @@ -362,6 +367,7 @@ function delHostProfile($file) { if (is_file($prof)) { return @unlink($prof); } + else return false; } ?> diff --git a/lam/templates/config/conflogin.php b/lam/templates/config/conflogin.php index 62ed2cf6..edc8803d 100644 --- a/lam/templates/config/conflogin.php +++ b/lam/templates/config/conflogin.php @@ -89,7 +89,7 @@ echo $_SESSION['header'];