Code

Moved to E_STRICT
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Sep 2007 13:15:33 +0000 (13:15 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Sep 2007 13:15:33 +0000 (13:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7201 594d385d-05f5-0310-b6e9-bd551577e9d8

21 files changed:
html/combine.php
html/getFAIscript.php
html/getbin.php
html/getkiosk.php
html/getldif.php
html/helpviewer.php
html/index.php
include/class_config.inc
include/class_ldap.inc
include/class_mail-methods-cyrus.inc
include/class_mail-methods-golab.inc
include/class_mail-methods-kolab.inc
include/class_pgsql_opengw.inc
include/class_plugin.inc
include/functions_helpviewer.inc
include/php_setup.inc
plugins/addons/addressbook/class_addressbook.inc
plugins/admin/groups/class_groupMail.inc
plugins/admin/ogroups/class_ogroup.inc
plugins/personal/mail/class_mailAccount.inc
plugins/personal/posix/class_posixAccount.inc

index 2eadab8a960f68c97460d54146e8f9dbf7299378..d5c23fc79d80365f0fe7901f5ce8ae921c681d04 100644 (file)
@@ -60,7 +60,7 @@ imagecopy ($pic, $image1, 0, 0, 0, 0, imagesx($image1), imagesy($image1));
 imagecopy ($pic, $image2, imagesx($image1), 0, 0, 0, imagesx($image2), imagesy($image2));
 imagePng($pic); 
 
-error_reporting (E_ALL);
+error_reporting (E_ALL | E_STRICT);
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>
index 6c3cfeb37630b3db56c78f2e1164fa27206a6791..8be8f02fbfe137541c1c11c86a6062e6bf4a9408 100644 (file)
@@ -62,7 +62,7 @@ restore_error_handler();
 /* Basic setup, remove eventually registered sessions */
 @require_once ("../include/php_setup.inc");
 @require_once ("functions.inc");
-error_reporting (E_ALL);
+error_reporting (E_ALL | E_STRICT);
 session_start ();
 
 /* Logged in? Simple security check */
index 1817439c4b5b281d619eeec90a6e2dfa7e1303dc..daa16de6eb6cfb62aea7b6bd3a2f7475f725d965 100644 (file)
@@ -45,7 +45,7 @@ if (isset($_SESSION['binaryfile'])) {
 }
 
 echo $_SESSION['binary'];
-error_reporting (E_ALL);
+error_reporting (E_ALL | E_STRICT);
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>
index cde88c5a063e006b555318ccace6625a294a5777..ba0ea77ee2f283ad87e16a06b62ea4e96f06a0c6 100644 (file)
@@ -49,7 +49,7 @@ function getkiosk ($id)
 /* Basic setup, remove eventually registered sessions */
 @require_once ("../include/php_setup.inc");
 @require_once ("functions.inc");
-error_reporting (E_ALL);
+error_reporting (E_ALL | E_STRICT);
 session_start ();
 
 /* Logged in? Simple security check */
index 6241d4fa7fec675f277a3c08afb78eb8b4918d60..95964d3ffec95077440beef2b3e41da39acb23dc 100644 (file)
@@ -60,7 +60,7 @@ function dump_ldap ($mode= 0)
 /* Basic setup, remove eventually registered sessions */
 @require_once ("../include/php_setup.inc");
 @require_once ("functions.inc");
-error_reporting (E_ALL);
+error_reporting (E_ALL | E_STRICT);
 session_start ();
 
 /* Logged in? Simple security check */
index b07cfb551157e7a32e4a050970fe30f93e3a4539..4cbc459abf94bd630ae888d5c414469b832aef5e 100644 (file)
@@ -23,7 +23,7 @@
 @require_once ("functions.inc");
 @require_once ("functions_helpviewer.inc");
 
-error_reporting(E_ALL);
+error_reporting(E_ALL | E_STRICT);
 restore_error_handler();
 header("Content-type: text/html; charset=UTF-8");
 
index 813ef72dc062013a59467d50a7248d17453504a6..77c375bc909e773937b1a4bef44171ac5cfd5cf4 100644 (file)
@@ -27,7 +27,7 @@ header("Content-type: text/html; charset=UTF-8");
 function displayLogin()
 {
   global $smarty,$message,$config,$ssl,$error_collector;
-  error_reporting(E_ALL);
+  error_reporting(E_ALL | E_STRICT);
     /* Fill template with required values */
     $username = "";
     if(isset($_POST["username"])){
index c466c97970dce148f5869dea74ccf82e0a8683a9..e16945b88eb1415d26b23a78da6a8d3d11b8405b 100644 (file)
@@ -327,7 +327,7 @@ class config  {
           "sieve_server" => $attrs['goImapSieveServer'][0],
           "sieve_port" => $attrs['goImapSievePort'][0]);
     }
-    error_reporting(E_ALL);
+    error_reporting(E_ALL | E_STRICT);
 
     /* Get kerberos server. FIXME: only one is supported currently */
     $ldap->cd ($this->current['BASE']);
index 6ae00e89623831ee284932bf2f6f8a8f13cb2410..dbc76f585ff3c245ec0fedaa80f01c740812376f 100644 (file)
@@ -445,7 +445,7 @@ class LDAP{
   */
   function copy_FAI_resource_recursive($sourcedn,$destinationdn,$destinationName,$type="branch",$is_first = true,$depth=0)
   {
-    error_reporting(E_ALL);
+    error_reporting(E_ALL | E_STRICT);
     
     if($is_first){
       echo "<h2>".sprintf(_("Creating copy of %s"),"<i>".@LDAP::fix($sourcedn)."</i>")."</h2>";
index 8fecaa217ab5bf0400083b7dd5b0444bc23e9a79..3993f96a492f1cee3717af0a73b6f73aa7ebe2be 100644 (file)
@@ -98,7 +98,7 @@ var $uattrib= "uid";
       return(array("quotaUsage"=>"","gosaMailQuota"=>""));
     }
  
-    error_reporting (E_ALL);
+    error_reporting (E_ALL | E_STRICT);
     return ($result);
   }
 
index 0991b8ef790ddffe4f3ce6923b573e65492c4320..36304f25a50051c7b679b46ae9089366e24eceb4 100644 (file)
@@ -73,7 +73,7 @@ class mailMethodGolab extends mailMethodCyrus
       return(false);
     }
 
-    error_reporting(E_ALL); 
+    error_reporting(E_ALL | E_STRICT); 
  
     return ($result);
   }
index e37b80ce37c3c357ea8e722608a1584d0cfcf484..d2eecd487f4db3b9fadbbfc520bc61db6c7dc209 100644 (file)
@@ -73,7 +73,7 @@ class mailMethodKolab extends mailMethodCyrus
       return(false);
     }
 
-    error_reporting(E_ALL); 
+    error_reporting(E_ALL | E_STRICT); 
  
     return ($result);
   }
index d3432226f7de549aaac8fbc52b6b2e9a70a6cbfb..3615bb4c69236d2340296cb29a1a10e11e1c135e 100644 (file)
@@ -26,7 +26,7 @@ class pgre_sql{
 
        function _connect()
        {
-               error_reporting(E_ALL);
+               error_reporting(E_ALL | E_STRICT);
                if(is_callable("pg_connect")){
                        if(!empty($this->pwd)){
                                $this->handle = @pg_connect("dbname=".$this->db." host=".$this->server." user=".$this->user);
index 8bb0a2ce35e9e631fe63b40968e17e49f6408184..53c27b8ed7ef2aba9083f0cef816e4ee4955df63 100644 (file)
@@ -186,7 +186,7 @@ class plugin
           break;
         }
       }
-      error_reporting(E_ALL);
+      error_reporting(E_ALL | E_STRICT);
       if ($found){
         $this->is_account= TRUE;
         @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,
@@ -784,7 +784,7 @@ class plugin
     }
 
     /* close conncetion */
-    error_reporting (E_ALL);
+    error_reporting (E_ALL | E_STRICT);
     ldap_unbind($ds);
 
     /* Adapt naming attribute */
index aad1af72bdba734392a8ffa8307023c3137c990a..ab9b3a1d7c8a87cfe72d586f8cb4854c269e88ac 100644 (file)
@@ -274,7 +274,7 @@ function search($arr,$word)
   unset($_SESSION['parsed_search_keyword']);
   $_SESSION['parsed_search_keyword']="";
 
-  error_reporting(E_ALL);
+  error_reporting(E_ALL | E_STRICT);
 
   /* prepare searchwords */
   $word   = trim($word);
index 324a6b740d31587455e3d2d3f1acf663cb16a213..cf9c5cf6fde4e5f5be88f1c5244625a1f5ee9c53 100644 (file)
@@ -225,7 +225,7 @@ function dummy_error_handler()
 /* Get base dir for reference */
 $BASE_DIR= dirname(dirname(__FILE__));
 $ROOT_DIR= $BASE_DIR."/html";
-error_reporting (E_ALL);
+error_reporting (E_ALL | E_STRICT);
 
 /* Register error handler */
 $error_collector= "";
index 6ac0591e7b1d01a5c7c6eee834a8964b3aabaaad..730d6367c85b59958c7a36ec7d6e09be9ce7f80f 100644 (file)
@@ -465,7 +465,7 @@ class addressbook extends plugin
           $this->telephone_list[$attrs['sn'][0].$attrs['dn']].= "</td>";
         }
       }
-      error_reporting(E_ALL);
+      error_reporting(E_ALL | E_STRICT);
     }
 
     /* Sort up list */
@@ -560,7 +560,7 @@ class addressbook extends plugin
           } else {
             $smarty->assign("info_$name", preg_replace("/\n/", "<br>", $info["$name"][0]));
           }
-          error_reporting(E_ALL);
+          error_reporting(E_ALL | E_STRICT);
         } elseif ($_SESSION['show_info'] == "ADD" && isset($this->$name)) {
           $smarty->assign("info_$name", $this->$name);
         } else {
index a7225c4dbdee4c4884dc9a2362021c477f104cdf..dc99297ce48e93e2705dc34852e5ef21e1eca988 100644 (file)
@@ -525,7 +525,7 @@ class mailgroup extends plugin
         $mailusers[$attrs['mail'][0]]= $name."&lt;".
           $attrs['mail'][0]."&gt;";
       }
-      error_reporting (E_ALL);
+      error_reporting (E_ALL | E_STRICT);
       natcasesort ($mailusers);
       reset ($mailusers);
 
index 5e3e121d32383a177ab79866d74e882034835434..f5eab49103165efc80138d9a997d702b629d12be 100644 (file)
@@ -317,7 +317,7 @@ class ogroup extends plugin
       } else {
         $smarty->assign("combinedObjects", "$p1");
       }
-      error_reporting(E_ALL);
+      error_reporting(E_ALL | E_STRICT);
     }
 
     /* Assign variables */
index ef48fdd074d6f78243e7e9b107452483fb1e3737..381351314aae8625d6287ba43ad81402c25ed85c 100644 (file)
@@ -505,7 +505,7 @@ class mailAccount extends plugin
         $mailusers[$attrs['mail'][0]]= $name."&lt;".
           $attrs['mail'][0]."&gt;";
       }
-      error_reporting (E_ALL);
+      error_reporting (E_ALL | E_STRICT);
       natcasesort ($mailusers);
       reset ($mailusers);
 
index 94b8a1b5880ca560f82ddde731c9f5201b7a403c..e2bddd34d39bb18e70c92b9fdd4cdeb4838fada6 100644 (file)
@@ -1027,7 +1027,7 @@ class posixAccount extends plugin
           $dsc= preg_replace ('/^Group of user/', _("Group of user"), $attrs["description"][0]);
           $entry= $attrs["cn"][0]." [$dsc]";
         }
-        error_reporting (E_ALL);
+        error_reporting (E_ALL | E_STRICT);
 
         if(obj_is_writable($attrs['dn'],"groups/group","memberUid")){
           $this->groupMembership[$attrs['dn']]= $entry;