X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fhtml%2Fgetbin.php;h=4e1b4846410afdb92b1870fe269215ee7741dd03;hb=bc6564d7a078233fab93256107d49fc90fe83263;hp=ceabb6d9820bd8daee185d2c3f41657b65f2e6dd;hpb=c26845a09ed3142dd8805effefce01b35f7ded46;p=gosa.git diff --git a/gosa-core/html/getbin.php b/gosa-core/html/getbin.php index ceabb6d98..4e1b48464 100644 --- a/gosa-core/html/getbin.php +++ b/gosa-core/html/getbin.php @@ -24,11 +24,12 @@ @require_once ("../include/php_setup.inc"); @require_once ("functions.inc"); error_reporting (0); +session_cache_limiter("private"); session::start(); -session::set('errorsAlreadyPosted',array()); +session::global_set('errorsAlreadyPosted',array()); /* Logged in? Simple security check */ -if (!session::is_set('ui')){ +if (!session::global_is_set('ui')){ new log("security","unknown","",array(),"Error: getbin.php called without session") ; header ("Location: index.php"); exit; @@ -43,7 +44,7 @@ $bintype = session::is_set('binarytype') ? session::get('binarytype') : "octet-stream"; header("Content-type: " . $bintype); if (session::is_set('binaryfile')) { - header( "Content-disposition: attachment; filename=" + header( "Content-disposition: attachment; filename=" . session::get('binaryfile')); }