summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 097ca00)
raw | patch | inline | side by side (parent: 097ca00)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Jul 2010 13:36:15 +0000 (13:36 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Jul 2010 13:36:15 +0000 (13:36 +0000) |
-Fixed post handling
-Fixed copy&paste template
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18990 594d385d-05f5-0310-b6e9-bd551577e9d8
-Fixed copy&paste template
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18990 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/personal/posix/class_posixAccount.inc | patch | blob | history | |
gosa-core/plugins/personal/posix/paste_generic.tpl | patch | blob | history |
diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc
index 2519d6ea1c36e14c9574361bdc1896a119e025e6..af89c484aa01195d54eeb56ee4149e7b0268daa3 100644 (file)
if (isset($_POST['delete_groupmembership']) &&
isset($_POST['group_list']) && count($_POST['group_list'])){
- $this->delGroup ($_POST['group_list']);
+ $this->delGroup (get_post('group_list'));
}
/* Templates now! */
}
// Set last system login
- $smarty->assign("gotoLastSystemLogin",$this->gotoLastSystemLogin);
+ $smarty->assign("gotoLastSystemLogin", set_post($this->gotoLastSystemLogin));
/* Fill arrays */
- $smarty->assign("shells", $this->loginShellList);
+ $smarty->assign("shells", set_post($this->loginShellList));
$smarty->assign("secondaryGroups", $this->secondaryGroups);
- $smarty->assign("primaryGroup", $this->primaryGroup);
+ $smarty->assign("primaryGroup", set_post($this->primaryGroup));
if(!$this->multiple_support_active){
if (!count($this->groupMembership)){
$smarty->assign("groupMembership", array(" "));
} else {
- $smarty->assign("groupMembership", $this->groupMembership);
+ $smarty->assign("groupMembership", set_post($this->groupMembership));
}
}else{
- $smarty->assign("groupMembership", $this->groupMembership);
- $smarty->assign("groupMembership_some", $this->groupMembership_some);
+ $smarty->assign("groupMembership", set_post($this->groupMembership));
+ $smarty->assign("groupMembership_some", set_post($this->groupMembership_some));
}
+
if (count($this->groupMembership) > 16){
$smarty->assign("groups", "too_many_for_nfs");
} else {
}else{
$smarty->assign("use_".$val,FALSE);
}
- $smarty->assign("$val", $this->$val);
+ $smarty->assign("$val", set_post($this->$val));
}
$tmp = $this->plInfo();
/*Save primary group settings */
if($this->acl_is_writeable("primaryGroup") && isset($_POST['primaryGroup'])){
- $data= $_POST['primaryGroup'];
+ $data= get_post('primaryGroup');
if ($this->primaryGroup != $data){
$this->is_modified= TRUE;
}
- $this->primaryGroup= $_POST['primaryGroup'];
+ $this->primaryGroup= get_post('primaryGroup');
}
/* Get seelcted shadow checkboxes */
$activate_var = "activate_".$var;
if(isset($_POST['activate_'.$var])){
$this->$activate_var = true;
- $this->$var = $_POST[$var];
+ $this->$var = get_post($var);
}else{
$this->$activate_var = false;
if ($var != "shadowExpire") {
function saveCopyDialog()
{
if(isset($_POST['homeDirectory'])){
- $this->homeDirectory = $_POST['homeDirectory'];
+ $this->homeDirectory = get_post('homeDirectory');
if (isset ($_POST['force_ids'])){
$data= 1;
- $this->gidNumber = $_POST['gidNumber'];
- $this->uidNumber = $_POST['uidNumber'];
+ $this->gidNumber = get_post('gidNumber');
+ $this->uidNumber = get_post('uidNumber');
} else {
$data= 0;
}
$this->is_modified= TRUE;
}
$this->force_ids= $data;
- $data= $_POST['primaryGroup'];
+ $data= get_post('primaryGroup');
if ($this->primaryGroup != $data){
$this->is_modified= TRUE;
}
- $this->primaryGroup= $_POST['primaryGroup'];
+ $this->primaryGroup= get_post('primaryGroup');
}
}
/* Assigned informations to smarty */
$smarty = get_smarty();
- $smarty->assign("homeDirectory",$this->homeDirectory);
+ $smarty->assign("homeDirectory",set_post($this->homeDirectory));
$smarty->assign("secondaryGroups",$this->secondaryGroups);
- $smarty->assign("primaryGroup",$this->primaryGroup);
+ $smarty->assign("primaryGroup",set_post($this->primaryGroup));
- $smarty->assign("uidNumber",$this->uidNumber);
- $smarty->assign("gidNumber",$this->gidNumber);
- $smarty->assign("forceMode",$forceMode);
- $smarty->assign("force_ids",$force_ids);
+ $smarty->assign("uidNumber",set_post($this->uidNumber));
+ $smarty->assign("gidNumber",set_post($this->gidNumber));
+ $smarty->assign("forceMode",set_post($forceMode));
+ $smarty->assign("force_ids",set_post($force_ids));
if (!count($this->groupMembership)){
$smarty->assign("groupMembership", array(" "));
} else {
- $smarty->assign("groupMembership", $this->groupMembership);
+ $smarty->assign("groupMembership", set_post($this->groupMembership));
}
/* Display wars message if there are more than 16 group members */
if(in_array($activate_var, $this->multi_boxes)){
if(isset($_POST['activate_'.$var])){
$this->$activate_var = true;
- $this->$var = $_POST[$var];
+ $this->$var = get_post($var);
}else{
$this->$activate_var = false;
$this->$var = 0;
/* Save primary group settings */
if($this->acl_is_writeable("primaryGroup") && isset($_POST['primaryGroup'])){
- $data= $_POST['primaryGroup'];
+ $data= get_post('primaryGroup');
if ($this->primaryGroup != $data){
$this->is_modified= TRUE;
}
- $this->primaryGroup= $_POST['primaryGroup'];
+ $this->primaryGroup= get_post('primaryGroup');
}
}
}
diff --git a/gosa-core/plugins/personal/posix/paste_generic.tpl b/gosa-core/plugins/personal/posix/paste_generic.tpl
index b270f45b413500a0c7e92ddc0140dd055b8d0d5e..9ecbb7c4289cd4c18d1822debec1bf0578fd9eae 100644 (file)
<table width='100%' summary="{t}Posix settings{/t}">
<tr>
- <td>
+ <td style='width:50%;' class='right-border'>
+
<h3>{t}Posix settings{/t}</h3>
<table summary="{t}Home directory{/t}">
<tr>
</td>
</tr>
</table>
+
<table summary="{t}Account settings{/t}">
<tr>
<td><label for="primaryGroup">{t}Primary group{/t}</label></td>
</td>
</tr>
</table>
+
</td>
<td>
- <table summary="{t}Group membership{/t}">
+
+ <table summary="{t}Group membership{/t}" width='100%'>
+
<tr>
- <td colspan="4">
- <h3>{t}Group membership{/t}
- </h3>
+ <td><h3>{t}Group membership{/t}</h3>
</td>
</tr>
<tr>
- <td colspan="4">
+ <td>
{if $groups eq "too_many_for_nfs"}
<b style="color:red">{t}(Warning: more than 16 groups are not supported by NFS!){/t}</b>