Code

Soem fixes for logging:
[gosa.git] / html / getbin.php
index 6ac56b437d5d2104a2a8e8e2cbabd1278f9a8318..daa16de6eb6cfb62aea7b6bd3a2f7475f725d965 100644 (file)
@@ -26,7 +26,7 @@ session_start ();
 
 /* Logged in? Simple security check */
 if (!isset($_SESSION['ui'])){
-  gosa_log ("Error: getbin.php called without session");
+  new log("security","unknown","",array(),"Error: getbin.php called without session") ;
   header ("Location: index.php");
   exit;
 }
@@ -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:
 ?>