Code

Updated GOsa to support read "only mode" for locked entries.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 Nov 2008 07:51:19 +0000 (07:51 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 Nov 2008 07:51:19 +0000 (07:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12977 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/html/getbin.php
gosa-core/html/main.php
gosa-core/ihtml/themes/default/islocked.tpl

index ceabb6d9820bd8daee185d2c3f41657b65f2e6dd..aa0f037fa1b804b735dd2ce86ee88108403b8dd8 100644 (file)
@@ -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'));
 }
 
index 8cdb4a2390586d1d6e062cce0e480f2c330ec8a9..5ffd3d92e0c71ac3d47b793c2a3d7fd465f64712 100644 (file)
@@ -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){
index 45b83336e5dac366b096b6397affc04c9fde55e3..2845fa2ea66af08349d66cec82529114ddc86969 100644 (file)
@@ -12,6 +12,8 @@
 <p class="plugbottom">
   <input type="submit" name="delete_lock" value="{$action}">
   &nbsp;
+  <input type="submit" name="open_readonly" value="{t}Read only{/t}">
+  &nbsp;
   <input type="submit" name="cancel_lock" value="{t}Cancel{/t}">
 </p>