aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-10-07 23:25:42 +0000
committerplegall <plg@piwigo.org>2005-10-07 23:25:42 +0000
commit1f594dc148ce24c5d6c10f7af99504f278876996 (patch)
tree160c508bc6cefa7c506193159cfe2a4a1b1289fc /admin
parentf9baa625b6590a4cebcbc69c0486bb8764c163fb (diff)
- modification: configuration parameters gallery_title and
gallery_description are GUI managed in Administration>Configuration>General - bug fixed: configuration parameters (use|show)_(exif|iptc) and authorize_remembering should have been deleted from config table some time ago. git-svn-id: http://piwigo.org/svn/trunk@882 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/configuration.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/admin/configuration.php b/admin/configuration.php
index ecbdcf1d4..f038800f4 100644
--- a/admin/configuration.php
+++ b/admin/configuration.php
@@ -111,9 +111,20 @@ if (isset($_POST['submit']))
{
if (isset($_POST[$row['param']]))
{
+ $value = $_POST[$row['param']];
+
+ if ('gallery_title' == $row['param']
+ or 'gallery_description' == $row['param'])
+ {
+ if (!$conf['allow_html_descriptions'])
+ {
+ $value = strip_tags($value);
+ }
+ }
+
$query = '
UPDATE '.CONFIG_TABLE.'
- SET value = \''. str_replace("\'", "''", $_POST[$row['param']]).'\'
+ SET value = \''. str_replace("\'", "''", $value).'\'
WHERE param = \''.$row['param'].'\'
;';
pwg_query($query);
@@ -157,6 +168,8 @@ switch ($page['section'])
'HISTORY_NO'=>$history_no,
'GALLERY_LOCKED_YES'=>$lock_yes,
'GALLERY_LOCKED_NO'=>$lock_no,
+ 'CONF_GALLERY_TITLE' => $conf['gallery_title'],
+ 'CONF_GALLERY_DESCRIPTION' => $conf['gallery_description'],
));
break;
}