diff options
author | rub <rub@piwigo.org> | 2007-01-08 00:16:10 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2007-01-08 00:16:10 +0000 |
commit | 4489066c982c1044028295164ec2f2e840c16881 (patch) | |
tree | 9dbe71687d9ac6743b7137b45c943d15eb28e045 /admin/plugins.php | |
parent | f992150313a63d30aeda6e5f3dcd64fc62a06adb (diff) |
Feature Issue ID 0000496: Integrate MOD add_index on PWG with plugin.lang.php
Add some plugin triggers:
o for help
o for language
o for site manager
o for advanced features
Allow to launch directly plugin page (without section key)
Add add_index plugin, available on site manager and advanced features
Configuration page and best help must be coming soon.
git-svn-id: http://piwigo.org/svn/trunk@1699 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/plugins.php')
-rw-r--r-- | admin/plugins.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/admin/plugins.php b/admin/plugins.php index e8f2c2a5a..d58e25a64 100644 --- a/admin/plugins.php +++ b/admin/plugins.php @@ -42,7 +42,15 @@ $my_base_url = PHPWG_ROOT_PATH.'admin.php?page=plugins'; // +-----------------------------------------------------------------------+ if ( isset($_REQUEST['action']) and isset($_REQUEST['plugin']) ) { - $plugin_id = $_REQUEST['plugin']; + if (function_exists('mysql_real_escape_string')) + { + $plugin_id = mysql_real_escape_string($_REQUEST['plugin']); + } + else + { + $plugin_id = mysql_escape_string($_REQUEST['plugin']); + } + $crt_db_plugin = get_db_plugins('', $plugin_id); if (!empty($crt_db_plugin)) { |