diff --git a/plugins/personal/environment/class_hotplugDialog.inc b/plugins/personal/environment/class_hotplugDialog.inc
index 238bb9d2404ced79d8337bcea9081b57897557da..dbb082141e3ea561f3e3306cfb14f04b2019527a 100644 (file)
var $regex = "*";
var $depselect = "/";
var $deplist = "/";
+ var $skipThese = array();
-
- function hotplugDialog ($config, $dn= NULL,$use_existing=false )
+ function hotplugDialog ($config, $dn= NULL,$use_existing=false ,$skipThese = array())
{
$this->use_existing = $use_existing;
+ $this->skipThese = $skipThese;
plugin::plugin ($config, $dn);
$this->depselect = $this->config->current['BASE'];
}
if(isset($_POST['dialogissubmitted'])){
foreach($this->attributes as $s_attr){
if(isset($_POST[$s_attr])){
- $this->$s_attr = $_POST[$s_attr];
+ $this->$s_attr = stripslashes($_POST[$s_attr]);
}else{
$this->$s_attr = false;
}
$tmp = split("\|",$device);
if(preg_match("/^".str_replace("*","",$this->regex).".*/i",$tmp[0])){
+
+ if(in_array($tmp[0],$this->skipThese)) continue;
+
$a_return[$tmp[0]]= $tmp[0]." [".$tmp[1]."] ".$tmp[2];
$tmp2['name'] = $tmp[0];