From b202816324c3a6bf515a8d938c33e882106f26da Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 12 Dec 2008 01:46:43 +0000 Subject: Remove the attempt at a local import module --- modules/local_import/helpers/local_import.php | 49 ---------------------- .../local_import/helpers/local_import_block.php | 30 ------------- .../helpers/local_import_installer.php | 41 ------------------ 3 files changed, 120 deletions(-) delete mode 100644 modules/local_import/helpers/local_import.php delete mode 100644 modules/local_import/helpers/local_import_block.php delete mode 100644 modules/local_import/helpers/local_import_installer.php (limited to 'modules/local_import/helpers') diff --git a/modules/local_import/helpers/local_import.php b/modules/local_import/helpers/local_import.php deleted file mode 100644 index 045201c7..00000000 --- a/modules/local_import/helpers/local_import.php +++ /dev/null @@ -1,49 +0,0 @@ -admin) { -// throw new Exception("@todo ACCESS DENIED"); -// } - - $template = new View("local_import_admin.html"); - - $paths = unserialize(module::get_var("local_import", "authorized_paths")); - if (!empty($paths)) { - $template->dir_list = new View("local_import_dir_list.html"); - $template->dir_list->paths = array_keys($paths); - } else { - $template->dir_list = ""; - } - - $template->add_form = self::get_admin_form()->render(); - - return $template; - } - - public static function get_admin_form() { - $form = new Forge("admin/local_import/add_path", "", "post", array("id" => "gLocalImportAdminForm")); - $form->input("path")->label(true); - $form->submit(_("Add")); - - return $form; - } -} diff --git a/modules/local_import/helpers/local_import_block.php b/modules/local_import/helpers/local_import_block.php deleted file mode 100644 index c337af41..00000000 --- a/modules/local_import/helpers/local_import_block.php +++ /dev/null @@ -1,30 +0,0 @@ -"; - - return implode("\n", $head); - } -} diff --git a/modules/local_import/helpers/local_import_installer.php b/modules/local_import/helpers/local_import_installer.php deleted file mode 100644 index 72f42c97..00000000 --- a/modules/local_import/helpers/local_import_installer.php +++ /dev/null @@ -1,41 +0,0 @@ -query("DELETE FROM `vars` WHERE `module_id` = {$module->id};"); - - module::delete("local_import"); - } -} -- cgit v1.2.3