From: hickert Date: Wed, 11 Jan 2006 12:51:07 +0000 (+0000) Subject: Some branch adds X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eeaf3910e39e04e56c1d5736608d3e916b90d6c0;p=gosa.git Some branch adds git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2448 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/faiNewBranch.tpl b/plugins/admin/fai/faiNewBranch.tpl new file mode 100755 index 000000000..e3ec48045 --- /dev/null +++ b/plugins/admin/fai/faiNewBranch.tpl @@ -0,0 +1,61 @@ +
+

+{t}Please enter a name for the branch. Names like 'scripts', 'hooks', 'partitions', 'variables', 'templates', 'fai' and aöready existing names are not allowed.{/t} +
+
+

+

+
+{t}Please enter a name for the branch.{/t} +
+
+

+
+ + + + +
+ + + + + + + +
+

{t}Enter FAI branch name.{/t}

+
+ {t}Branch name{/t}  +
+
+
+
+

 

+ +
+

+ + +

+
+ + + + + + + + + + + + + + + diff --git a/plugins/admin/fai/remove_branch.tpl b/plugins/admin/fai/remove_branch.tpl new file mode 100755 index 000000000..3ed7f2329 --- /dev/null +++ b/plugins/admin/fai/remove_branch.tpl @@ -0,0 +1,18 @@ +
+  {t}Warning{/t} +
+

+ {$info} + {t}This includes all account data, system access, etc. for this branch. Please double check if your really want to do this since there is no way for GOsa to get your data back.{/t} +

+ +

+ {t}So - if you're sure - press 'Delete' to continue or 'Cancel' to abort.{/t} +

+ +

+ +   + +

+ diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc index 755713815..07a925b61 100644 --- a/plugins/admin/systems/class_workstationStartup.inc +++ b/plugins/admin/systems/class_workstationStartup.inc @@ -20,7 +20,7 @@ class workstartup extends plugin var $FAIclass = array(); var $FAIclasses = array(); var $FAIclassInfo = array(); - var $FAIdebianMirror = array(); + var $FAIdebianMirror = "auto"; /* attribute list for save action */ @@ -68,9 +68,10 @@ class workstartup extends plugin } } } - } + } + ksort($ret); $this->FAIdebianMirrors = $ret; - + /* Get arrays */ foreach (array("gotoModules", "gotoAutoFs", "gotoFilesystem") as $val){ if (isset($this->attrs["$val"]["count"])){ @@ -462,6 +463,7 @@ class workstartup extends plugin function getFAIdebianMirrors() { $ret = array(); + $ret['auto']=_("automatic"); $secs = array(); if(is_array($this->FAIclass)){ foreach($this->FAIclass as $classes){ @@ -490,7 +492,6 @@ class workstartup extends plugin } } } - $ret['auto']=_("automatic"); return($ret); } diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index c4b4c2a86..cf3ddcbd0 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -490,7 +490,15 @@ class environment extends plugin /* We assign a share to this user, if we don't know where to mount the share */ if((!isset($_POST['gotoShareMountPoint']))||(empty($_POST['gotoShareMountPoint']))||(preg_match("/[\|]/i",$_POST['gotoShareMountPoint']))){ print_red(_("You must specify a valid mount point.")); - }elseif($_POST['gotoShareMountPoint'][0] !="/" ){ + }elseif(!( + preg_match("/^\//",$_POST['gotoShareMountPoint']) || + preg_match("/^~/",$_POST['gotoShareMountPoint']) || + preg_match("/^\$HOME/",$_POST['gotoShareMountPoint']) || + preg_match("/^.HOME/",$_POST['gotoShareMountPoint']) || + preg_match("/^\$USER/",$_POST['gotoShareMountPoint']) || + preg_match("/^.USER/",$_POST['gotoShareMountPoint']) + ) + ){ print_red(_("You must specify a valid mount point.")); }else{ $a_share = $this->gotoAvailableShares[$_POST['gotoShareSelection']];