Code

Updated ACLs and groupware template
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 31 Aug 2010 09:26:30 +0000 (09:26 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 31 Aug 2010 09:26:30 +0000 (09:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19501 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/groupware/personal/groupware/class_groupware.inc
gosa-plugins/groupware/personal/groupware/generic.tpl

index a2228e11ec4ce1741d8a1ead6ba27ed482cef64c..d5e408092da214c429affddbc47e263963b8bafa 100644 (file)
@@ -25,8 +25,13 @@ class groupware extends plugin
             "mailBoxHardSizelimitValue",
             "mailBoxAutomaticRemovalEnabled",
             "mailBoxAutomaticRemovalValue",
+            "localDeliveryOnly",
+            "dropOwnMails"
             );
 
+    var $flagAttrinutes = array("vacationEnabled","mailBoxWarnLimitEnabled","mailBoxSendSizelimitEnabled",
+            "mailBoxHardSizelimitEnabled","mailBoxAutomaticRemovalEnabled","localDeliveryOnly","dropOwnMails");
+
     var $mailAddressSelectDialog = NULL;
     var $vacationTemplates = array();
 
@@ -48,6 +53,8 @@ class groupware extends plugin
     var $mailBoxHardSizelimitValue = "";
     var $mailBoxAutomaticRemovalEnabled = FALSE;
     var $mailBoxAutomaticRemovalValue = "";
+    var $localDeliveryOnly = FALSE;
+    var $dropOwnMails = FALSE;
 
     function __construct ($config, $dn= NULL)
     {
@@ -268,6 +275,17 @@ class groupware extends plugin
     /* Save data to object */
     function save_object()
     {
+        if(isset($_POST['groupwarePluginPosted'])){
+            foreach($this->attributes as $attr){
+                if(isset($_POST[$attr])){
+                    $this->$attr = get_post($attr);
+                }
+            }
+
+            foreach($this->flagAttrinutes as $attr){
+                $this->$attr = isset($_POST[$attr]);
+            }
+        }
     }
 
 
@@ -604,6 +622,8 @@ class groupware extends plugin
                         "mailBoxSendSizelimit"          => _("Send sizelimit"),
                         "mailBoxHardSizelimit"          => _("Hard sizelimit"),
                         "mailBoxAutomaticRemoval"       => _("Automatic mail removal"),
+                        "localDeliveryOnly"             => _("Local delivery only"),
+                        "dropOwnMails"                  => _("Drop own mails")
                         )
                     ));
     }
index 73c9567dc4c602d0ae8182cfc0c5ebb506fd2e9f..9fb274d9a37823ff5f768f13855621ce0e2389e1 100644 (file)
     </tr>
     <tr>
         <td>
-            <input id='only_local' type=checkbox name="only_local" value="1" 
+            <input id='localDeliveryOnly' type=checkbox name="localDeliveryOnly" value="1" 
+                {if $localDeliveryOnly} checked {/if}
                 title="{t}Select if user can only send and receive inside his own domain{/t}" class="center">
             {t}User is only allowed to send and receive local mails{/t}
         </td>
     </tr>
     <tr>
         <td>
-            <input id='drop_own_mails' type=checkbox name="drop_own_mails" value="1"
-                 title="{t}Select if you want to forward mails without getting own copies of them{/t}">
+            <input id='dropOwnMails' type=checkbox name="dropOwnMails" value="1"    
+                {if $dropOwnMails} checked {/if}
+                title="{t}Select if you want to forward mails without getting own copies of them{/t}">
             {t}No delivery to own mailbox{/t}
         </td>
     </tr>
 </table>
+
+<input type='hidden' name='groupwarePluginPosted' value='1'>
+