diff --git a/cis/private/tools/notebook_registration.php b/cis/private/tools/notebook_registration.php index 66dbd2486..5674415bc 100644 --- a/cis/private/tools/notebook_registration.php +++ b/cis/private/tools/notebook_registration.php @@ -67,7 +67,13 @@ function ip_increment($ip = "") + Wollen Sie als Mitarbeiter ein Notebook registrieren wenden Sie sich bitte an den Support '; + echo ''; + exit; + } if (!$txtUID) $txtUID = $user; // wenn die übergebene UID nicht gleich dem @@ -240,21 +246,21 @@ function ip_increment($ip = "") else if ($error == 3) echo '

'.$p->t("notebookregister/MACadresseBereitsVerwendet").'.

'; - if(isset($mac_result) && $mac_result!='') + if(isset($mac_result) && $mac_result!=='') { - if($mac_result == 0) + if($mac_result === 0) { echo '

'.$p->t("notebookregister/MACadresseErfolgreichEingetragen").'.

'; } - else if($mac_result == 1) + else if($mac_result === 1) { echo '

'.$p->t("notebookregister/MACadresseErfolgreichGeaendert").'.

'; } - else if($mac_result == 2) + else if($mac_result === 2) { echo '

'.$p->t("notebookregister/MACadresseFehlerhaft").'.

'; } - else if($mac_result == 3) + else if($mac_result === 3) { echo '

'.$p->t("notebookregister/MACadresseNichtFreigeschalten").'.

'; } diff --git a/include/File/Match.php b/include/File/Match.php index cc9817ff3..77a1297d2 100644 --- a/include/File/Match.php +++ b/include/File/Match.php @@ -32,7 +32,7 @@ */ class File_Match { - + // {{{ Properties (All private) var $find; @@ -61,7 +61,7 @@ class File_Match * feature only works with the "normal" search. * */ - function File_Match($find, $files, $directories = '', $include_subdir = 1, $ignore_lines = array()) + function __construct($find, $files, $directories = '', $include_subdir = 1, $ignore_lines = array()) { $this->find = $find; @@ -309,7 +309,7 @@ class File_Match $file = fread($fp = fopen($filename, 'r'), filesize($filename)); fclose($fp); - $this->occurences = preg_match($this->find, $file, $this->match); + $this->occurences = preg_match($this->find, $file, $this->match); } // }}} @@ -342,7 +342,7 @@ class File_Match // }}} // {{{ writeout() - + /** * Function to writeout the file contents. * @@ -430,7 +430,7 @@ class File_Match // }}} // {{{ doFind() - + /** * This starts the search/replace off. Call this to do the search. * First do whatever files are specified, and/or if directories are specified, @@ -447,7 +447,7 @@ class File_Match if ($this->directories != '') $this->doDirectories($this->find_function); } } - + // }}} } diff --git a/include/File/SearchReplace.php b/include/File/SearchReplace.php index cc11e7562..629877c89 100644 --- a/include/File/SearchReplace.php +++ b/include/File/SearchReplace.php @@ -32,7 +32,7 @@ */ class File_SearchReplace { - + // {{{ Properties (All private) var $find; @@ -63,7 +63,7 @@ class File_SearchReplace * * @author Richard Heyes */ - function File_SearchReplace($find, $replace, $files, $directories = '', $include_subdir = 1, $ignore_lines = array()) + function __construct($find, $replace, $files, $directories = '', $include_subdir = 1, $ignore_lines = array()) { $this->find = $find; @@ -367,7 +367,7 @@ class File_SearchReplace // }}} // {{{ writeout() - + /** * Function to writeout the file contents. * @@ -455,7 +455,7 @@ class File_SearchReplace // }}} // {{{ doSearch() - + /** * This starts the search/replace off. Call this to do the search. * First do whatever files are specified, and/or if directories are specified, @@ -472,7 +472,7 @@ class File_SearchReplace if ($this->directories != '') $this->doDirectories($this->search_function); } } - + // }}} }