diff options
author | rub <rub@piwigo.org> | 2007-02-12 06:09:05 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2007-02-12 06:09:05 +0000 |
commit | 62c1993adcfc257d98e47dc7efa8633209dbac3b (patch) | |
tree | 7b9c52ad8f30d0b2384b8c52d788da8372f0b6ad /plugins | |
parent | f02ef033adf044e22cc142123da640a9ec9bc67d (diff) |
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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/add_index/admin/admin_menu.php | 76 | ||||
-rw-r--r-- | plugins/add_index/admin/admin_menu.tpl | 33 | ||||
-rw-r--r-- | plugins/add_index/language/en_UK.iso-8859-1/plugin.lang.php | 8 | ||||
-rw-r--r-- | plugins/add_index/language/fr_FR.iso-8859-1/plugin.lang.php | 7 | ||||
-rw-r--r-- | plugins/add_index/main.admin.inc.php | 13 | ||||
-rw-r--r-- | plugins/add_index/maintain.inc.php | 38 |
6 files changed, 1 insertions, 174 deletions
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 @@ -<?php
-// +-----------------------------------------------------------------------+
-// | PhpWebGallery - a PHP based picture gallery |
-// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
-// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
-// | Copyright (C) 2007 Ruben ARNAUD - team@phpwebgallery.net |
-// +-----------------------------------------------------------------------+
-// | branch : BSF (Best So Far)
-// | file : $RCSfile$
-// | last update : $Date: 2006-07-18 23:38:54 +0200 (mar., 18 juil. 2006) $
-// | last modifier : $Author: rub $
-// | revision : $Revision: 1481 $
-// +-----------------------------------------------------------------------+
-// | This program is free software; you can redistribute it and/or modify |
-// | it under the terms of the GNU General Public License as published by |
-// | the Free Software Foundation |
-// | |
-// | This program is distributed in the hope that it will be useful, but |
-// | WITHOUT ANY WARRANTY; without even the implied warranty of |
-// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
-// | General Public License for more details. |
-// | |
-// | You should have received a copy of the GNU General Public License |
-// | along with this program; if not, write to the Free Software |
-// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
-// | USA. |
-// +-----------------------------------------------------------------------+
-
-if ((!defined('PHPWG_ROOT_PATH')) or (!(defined('IN_ADMIN') and IN_ADMIN)))
-{
- die('Hacking attempt!');
-}
-
-// +-----------------------------------------------------------------------+
-// | Check Access and exit when user status is not ok |
-// +-----------------------------------------------------------------------+
-check_status(ACCESS_ADMINISTRATOR);
-
-// +-----------------------------------------------------------------------+
-// | Main |
-// +-----------------------------------------------------------------------+
-global $template, $conf;
-
-// +-----------------------------------------------------------------------+
-// | template initialization |
-// +-----------------------------------------------------------------------+
-$template->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 @@ -<!-- $Id: admin_menu.tpl Ruben ARNAUD -->
-<div class="titrePage">
- <h2>{lang:Add_Index}</h2>
-</div>
-
-<p>{lang:add_index_Description_1}</p>
-<p>{lang:add_index_Description_2}</p>
-
-<form method="post" name="admin_menu" id="admin_menu" action="{F_ACTION}">
- <fieldset>
- <legend>{lang:add_index_Parameters}</legend>
- <table>
- <tr>
- <td>
- <label for="filename">{lang:add_index_filename}</label>
- </td>
- <td><input type="text" maxlength="35" size="35" name="add_index_filename" id="filename" value="{filename}"/></td>
- </tr>
- <tr>
- <td>
- <label for="source_directory_path">{lang:add_index_source_directory_path}</label>
- </td>
- <td><input type="text" maxlength="35" size="35" name="add_index_source_directory_path" id="source_directory_path" value="{source_directory_path}"/></td>
- </tr>
- </table>
- </fieldset>
-
- <p>
- <!--<input type="submit" value="{lang:Submit}" name="param_submit" {TAG_INPUT_ENABLED}/>-->
- <input type="reset" value="{lang:Reset}" name="param_reset"/>
- </p>
-
-</form>
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 @@ -<?php
-// +-----------------------------------------------------------------------+
-// | PhpWebGallery - a PHP based picture gallery |
-// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
-// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
-// | Copyright (C) 2007 Ruben ARNAUD - team@phpwebgallery.net |
-// +-----------------------------------------------------------------------+
-// | branch : BSF (Best So Far)
-// | file : $RCSfile$
-// | last update : $Date: 2006-07-18 23:38:54 +0200 (mar., 18 juil. 2006) $
-// | last modifier : $Author: rub $
-// | revision : $Revision: 1481 $
-// +-----------------------------------------------------------------------+
-// | This program is free software; you can redistribute it and/or modify |
-// | it under the terms of the GNU General Public License as published by |
-// | the Free Software Foundation |
-// | |
-// | This program is distributed in the hope that it will be useful, but |
-// | WITHOUT ANY WARRANTY; without even the implied warranty of |
-// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
-// | General Public License for more details. |
-// | |
-// | You should have received a copy of the GNU General Public License |
-// | along with this program; if not, write to the Free Software |
-// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
-// | USA. |
-// +-----------------------------------------------------------------------+
-
-function plugin_uninstall($plugin_id)
-{
- if ($plugin_id == 'add_index')
- {
- //$query = 'delete from '.CONFIG_TABLE.' where param in ';
- //pwg_query($query);
- }
-}
-
-?>
\ No newline at end of file |