From 8ca1b0f0dddf7d93caf9ac88c3d551628bcd8f95 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 10 Nov 2008 07:51:19 +0000 Subject: [PATCH] Updated GOsa to support read "only mode" for locked entries. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12977 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/getbin.php | 2 +- gosa-core/html/main.php | 3 +++ gosa-core/ihtml/themes/default/islocked.tpl | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gosa-core/html/getbin.php b/gosa-core/html/getbin.php index ceabb6d98..aa0f037fa 100644 --- a/gosa-core/html/getbin.php +++ b/gosa-core/html/getbin.php @@ -43,7 +43,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')); } diff --git a/gosa-core/html/main.php b/gosa-core/html/main.php index 8cdb4a239..5ffd3d92e 100644 --- a/gosa-core/html/main.php +++ b/gosa-core/html/main.php @@ -314,6 +314,9 @@ if ($_SERVER["REQUEST_METHOD"] == "POST"){ if (isset($_POST['delete_lock']) && session::is_set('dn')){ del_lock (session::get('dn')); + } + if (isset($_POST['delete_lock']) || isset($_POST['open_readonly'])){ + /* Set old Post data */ if(session::is_set('LOCK_VARS_USED')){ foreach(session::get('LOCK_VARS_USED') as $name => $value){ diff --git a/gosa-core/ihtml/themes/default/islocked.tpl b/gosa-core/ihtml/themes/default/islocked.tpl index 45b83336e..2845fa2ea 100644 --- a/gosa-core/ihtml/themes/default/islocked.tpl +++ b/gosa-core/ihtml/themes/default/islocked.tpl @@ -12,6 +12,8 @@

  + +  

-- 2.30.2