From 62c1993adcfc257d98e47dc7efa8633209dbac3b Mon Sep 17 00:00:00 2001 From: rub Date: Mon, 12 Feb 2007 06:09:05 +0000 Subject: add_index plugin cleanup Fix reading html mail on webmail (like webmail free) git-svn-id: http://piwigo.org/svn/trunk@1808 68402e56-0260-453c-a942-63ccdbb3a9ee --- plugins/add_index/admin/admin_menu.php | 76 ---------------------- plugins/add_index/admin/admin_menu.tpl | 33 ---------- .../language/en_UK.iso-8859-1/plugin.lang.php | 8 --- .../language/fr_FR.iso-8859-1/plugin.lang.php | 7 -- plugins/add_index/main.admin.inc.php | 13 +--- plugins/add_index/maintain.inc.php | 38 ----------- 6 files changed, 1 insertion(+), 174 deletions(-) delete mode 100644 plugins/add_index/admin/admin_menu.php delete mode 100644 plugins/add_index/admin/admin_menu.tpl delete mode 100644 plugins/add_index/maintain.inc.php (limited to 'plugins') diff --git a/plugins/add_index/admin/admin_menu.php b/plugins/add_index/admin/admin_menu.php deleted file mode 100644 index 62a12bab4..000000000 --- a/plugins/add_index/admin/admin_menu.php +++ /dev/null @@ -1,76 +0,0 @@ -set_filenames(array('plugin_admin_content' => dirname(__FILE__).'/admin_menu.tpl')); - -/* -if ( isset($_POST['eventTracer_filters']) ) -{ - $v = $_POST['eventTracer_filters']; - $v = str_replace( "\r\n", "\n", $v ); - $v = str_replace( "\n\n", "\n", $v ); - $v = stripslashes($v); - if (!empty($v)) - $this->my_config['filters'] = explode("\n", $v); - else - $this->my_config['filters'] = array(); - $this->my_config['show_args'] = isset($_POST['eventTracer_show_args']); - $this->save_config(); - global $page; - array_push($page['infos'], 'event tracer options saved'); -} -$template->assign_var('EVENT_TRACER_FILTERS', implode("\n", $this->my_config['filters'] ) ); -$template->assign_var('EVENT_TRACER_SHOW_ARGS', $this->my_config['show_args'] ? 'checked="checked"' : '' );*/ -$template->assign_var('filename', $conf['add_index_filename']); -$template->assign_var('source_directory_path', $conf['add_index_source_directory_path']); -//$template->assign_var('F_ACTION', $my_url); - -// +-----------------------------------------------------------------------+ -// | Sending html code | -// +-----------------------------------------------------------------------+ -$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); - -?> \ No newline at end of file diff --git a/plugins/add_index/admin/admin_menu.tpl b/plugins/add_index/admin/admin_menu.tpl deleted file mode 100644 index 22104d270..000000000 --- a/plugins/add_index/admin/admin_menu.tpl +++ /dev/null @@ -1,33 +0,0 @@ - -
-

{lang:Add_Index}

-
- -

{lang:add_index_Description_1}

-

{lang:add_index_Description_2}

- -
-
- {lang:add_index_Parameters} - - - - - - - - - -
- -
- -
-
- -

- - -

- -
diff --git a/plugins/add_index/language/en_UK.iso-8859-1/plugin.lang.php b/plugins/add_index/language/en_UK.iso-8859-1/plugin.lang.php index c76bbc24c..d49d702f5 100644 --- a/plugins/add_index/language/en_UK.iso-8859-1/plugin.lang.php +++ b/plugins/add_index/language/en_UK.iso-8859-1/plugin.lang.php @@ -29,7 +29,6 @@ $lang['Add_Index'] = 'Add "index" files'; $lang['Advanced_Add_Index'] = 'Add and overwrite "index" files for all local sites'; $lang['Manager_Add_Index'] = 'add "index"'; -$lang['Menu_Add_Index'] = 'Add "index"'; $lang['add_index_file_copied'] = '%s copied'; $lang['add_index_file_not_copied'] = '%s not copied'; @@ -42,11 +41,4 @@ $lang['add_index_nb_not_copied_file'] = '%d file not copied'; $lang['add_index_nb_not_copied_files'] = '%d files not copied'; $lang['add_index_src_file_dont_exists'] = 'Source file %s don\'t esists, cannot duplicate this file'; -$lang['add_index_Description_1'] = 'Add "index" files allows to copy "index" file from source directory to all sub-directories of gallerie local sites.'; -$lang['add_index_Description_2'] = '"index" file prevents to list contents of a directory.'; -$lang['add_index_Parameters'] = 'Parameters'; -$lang['add_index_filename'] = 'File name'; -$lang['add_index_source_directory_path'] = 'Path of source directory'; - - ?> diff --git a/plugins/add_index/language/fr_FR.iso-8859-1/plugin.lang.php b/plugins/add_index/language/fr_FR.iso-8859-1/plugin.lang.php index 579a56aa3..711ef3abe 100644 --- a/plugins/add_index/language/fr_FR.iso-8859-1/plugin.lang.php +++ b/plugins/add_index/language/fr_FR.iso-8859-1/plugin.lang.php @@ -29,7 +29,6 @@ $lang['Add_Index'] = 'Ajout des fichiers "index"'; $lang['Advanced_Add_Index'] = 'Ajout et écrasement des fichiers "index" pour tous les sites locaux'; $lang['Manager_Add_Index'] = 'ajout des "index"'; -$lang['Menu_Add_Index'] = 'Add "index"'; $lang['add_index_file_copied'] = '%s copié'; $lang['add_index_file_not_copied'] = '%s non copié'; @@ -42,10 +41,4 @@ $lang['add_index_nb_not_copied_file'] = '%d fichier non copi $lang['add_index_nb_not_copied_files'] = '%d fichiers non copiés'; $lang['add_index_src_file_dont_exists'] = 'Le fichier source n\'existe pas, la duplication de ce fichier n\'est pas possible'; -$lang['add_index_Description_1'] = 'L\'ajout des fichiers " permet de copier le fichier "index" du repertoire source vers tous les sous-répertoires des galeries des sites locaux.'; -$lang['add_index_Description_2'] = 'Le fichier "index" empêche de lister le contenu d\'un répertoire.'; -$lang['add_index_Parameters'] = 'Paramètres'; -$lang['add_index_filename'] = 'Nom du fichier'; -$lang['add_index_source_directory_path'] = 'Chemin du répertoire source'; - ?> diff --git a/plugins/add_index/main.admin.inc.php b/plugins/add_index/main.admin.inc.php index a79d1f237..93421854f 100644 --- a/plugins/add_index/main.admin.inc.php +++ b/plugins/add_index/main.admin.inc.php @@ -36,6 +36,7 @@ class AdminAddIndex extends AddIndex function load_params() { global $conf; + // Name of index file (index.php or index.htm or index.html) if (!isset($conf['add_index_filename'])) { @@ -83,17 +84,6 @@ class AdminAddIndex extends AddIndex return $site_manager_plugin_links; } - - function plugin_admin_menu($menu) - { - array_push($menu, - array( - 'NAME' => l10n('Menu_Add_Index'), - 'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/admin_menu.php') - ) - ); - return $menu; - } } // Create object @@ -106,6 +96,5 @@ $add_index->load_params(); add_event_handler('loading_lang', array(&$add_index, 'loading_lang')); add_event_handler('get_admin_advanced_features_links', array(&$add_index, 'get_admin_advanced_features_links')); add_event_handler('get_admins_site_links', array(&$add_index, 'get_admins_site_links'), EVENT_HANDLER_PRIORITY_NEUTRAL, 3); -add_event_handler('get_admin_plugin_menu_links', array(&$add_index, 'plugin_admin_menu') ); ?> \ No newline at end of file diff --git a/plugins/add_index/maintain.inc.php b/plugins/add_index/maintain.inc.php deleted file mode 100644 index e17a0f236..000000000 --- a/plugins/add_index/maintain.inc.php +++ /dev/null @@ -1,38 +0,0 @@ - \ No newline at end of file -- cgit v1.2.3