Code

Updated pwd handling.
[gosa.git] / html / getbin.php
index 3040535f6c7e94ae2653a1614b9b1af048cdda61..daa16de6eb6cfb62aea7b6bd3a2f7475f725d965 100644 (file)
@@ -26,8 +26,8 @@ session_start ();
 
 /* Logged in? Simple security check */
 if (!isset($_SESSION['ui'])){
-  gosa_log ("Error: getbin.php called without session");
-  header ("Location: ../index.php");
+  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:
 ?>