From: hickert Date: Mon, 16 Apr 2007 13:02:59 +0000 (+0000) Subject: Updated gotomasses plugin X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2e7ff47d680a51400866e3a48e4eb7d191ddb599;p=gosa.git Updated gotomasses plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6056 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/addons/gotomasses/class_gotomasses.inc b/plugins/addons/gotomasses/class_gotomasses.inc index 108022afb..cc5527e6c 100644 --- a/plugins/addons/gotomasses/class_gotomasses.inc +++ b/plugins/addons/gotomasses/class_gotomasses.inc @@ -69,16 +69,16 @@ class gotomasses extends plugin if(isset($_POST['import_gotomass_csv']) && isset($_FILES['mass_file'])){ $str = @file_get_contents($_FILES['mass_file']['tmp_name']); if(empty($str)){ - print_red(_("Uploaded file seams to be empty, import aborted.")); + print_red(_("The uploaded file seams to be empty, import aborted.")); }else{ $this->load_csv_data($str); } } - + + /* Add a new empty entry to the list */ if(isset($_POST['add_new_entry'])){ $this->contents[] = array("MAC" => "", "OG" => ""); } - /* Call parent execute */ plugin::execute(); @@ -92,7 +92,6 @@ class gotomasses extends plugin function load_csv_data($data = NULL) { - if($data == NULL){ if(!file_exists($this->file_to_read) || !is_readable($this->file_to_read)){ print_red(sprintf(_("Can't locate or read goto masses csv storage file '%s'."),$this->file_to_read)); @@ -209,7 +208,7 @@ class gotomasses extends plugin "plDepends" => array(), "plPriority" => 0, "plSection" => array("addon"), - "plCategory" => array("mass_machines" => array("objectClass" => "none", "description" => _("Mass machine deployment"))), + "plCategory" => array("gotomasses" => array("objectClass" => "none", "description" => _("Mass machine deployment"))), "plProvidedAcls" => array() )); } diff --git a/plugins/addons/gotomasses/contents.tpl b/plugins/addons/gotomasses/contents.tpl index ac756ee78..ef8afc478 100644 --- a/plugins/addons/gotomasses/contents.tpl +++ b/plugins/addons/gotomasses/contents.tpl @@ -8,12 +8,19 @@ + + - + + +
- - + {t}Export{/t}  + + + + {t}Import{/t}  + + - -