summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 856c63b)
raw | patch | inline | side by side (parent: 856c63b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 21 Dec 2005 11:54:54 +0000 (11:54 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 21 Dec 2005 11:54:54 +0000 (11:54 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2362 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/groups/class_groupApplication.inc | patch | blob | history |
diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc
index fd4da27d2ebbb7fcd3b851d50e51852269733f16..5e03d69c5428e624e22f11abe590f296d97b4541 100644 (file)
plugin::execute();
if((isset($_GET['act']))&&($_GET['act']=="depopen")){
- $dep = base64_decode($_GET['depid']);
+ print $_GET['id'];
+ $dep = base64_decode($_GET['id']);
if(isset($this->config->idepartments[$dep])){
- $this->curbase = $dep;
+ $this->curbase =$dep;
}
}
if((isset($_GET['act']))&&($_GET['act']=="open")){
- $this->curCatDir = $_GET['id'];
+ $this->curCatDir = base64_decode($_GET['id']);
}
/* Do we need to flip is_account state? */
if((isset($_POST['AddCat']))&&(isset($_POST['CatName']))&&(!empty($_POST['CatName']))){
-
+
if(preg_match("/[\\\\\/]/i",$_POST['CatName'])){
print_red(_("Invalid character in category name."));
}elseif(!in_array($_POST['CatName'],$this->Categories)){
$this->reload();
foreach($_POST as $name => $value){
+
if(preg_match("/AddSep_/",$name)){
$this->AddSeperator($value);
}
}
}
}
+
if(preg_match("/DelCat_/",$name)){
$n = preg_replace("/DelCat_/","",$name);
$app = base64_decode( preg_replace("/_.*$/","",$n));
foreach($this->Categories as $key => $cat){
if($cat == $app){
+ foreach($this->Categories as $p => $n){
+ if(preg_match("/^".$key."\/.*/",$p)){
+ unset($this->Categories[$p]);
+ }
+ }
unset($this->Categories[$key]);
}
}
}
+
if(preg_match("/EdiApp_/",$name)){
$appname = $value;
/* We've got the appname, get parameters from ldap */
}
}
$this->reload();
-
/* Add group with post */
if((isset($_GET['act']))&&($_GET['act']=="add")){
$this->used_apps[$_GET['id']]= $_GET['id'];