summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0eec93d)
raw | patch | inline | side by side (parent: 0eec93d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 31 Aug 2010 09:26:30 +0000 (09:26 +0000) | ||
committer | hickert <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 | patch | blob | history | |
gosa-plugins/groupware/personal/groupware/generic.tpl | patch | blob | history |
diff --git a/gosa-plugins/groupware/personal/groupware/class_groupware.inc b/gosa-plugins/groupware/personal/groupware/class_groupware.inc
index a2228e11ec4ce1741d8a1ead6ba27ed482cef64c..d5e408092da214c429affddbc47e263963b8bafa 100644 (file)
"mailBoxHardSizelimitValue",
"mailBoxAutomaticRemovalEnabled",
"mailBoxAutomaticRemovalValue",
+ "localDeliveryOnly",
+ "dropOwnMails"
);
+ var $flagAttrinutes = array("vacationEnabled","mailBoxWarnLimitEnabled","mailBoxSendSizelimitEnabled",
+ "mailBoxHardSizelimitEnabled","mailBoxAutomaticRemovalEnabled","localDeliveryOnly","dropOwnMails");
+
var $mailAddressSelectDialog = NULL;
var $vacationTemplates = array();
var $mailBoxHardSizelimitValue = "";
var $mailBoxAutomaticRemovalEnabled = FALSE;
var $mailBoxAutomaticRemovalValue = "";
+ var $localDeliveryOnly = FALSE;
+ var $dropOwnMails = FALSE;
function __construct ($config, $dn= NULL)
{
/* 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]);
+ }
+ }
}
"mailBoxSendSizelimit" => _("Send sizelimit"),
"mailBoxHardSizelimit" => _("Hard sizelimit"),
"mailBoxAutomaticRemoval" => _("Automatic mail removal"),
+ "localDeliveryOnly" => _("Local delivery only"),
+ "dropOwnMails" => _("Drop own mails")
)
));
}
diff --git a/gosa-plugins/groupware/personal/groupware/generic.tpl b/gosa-plugins/groupware/personal/groupware/generic.tpl
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'>
+