From 316d89a90b5cd61f41ea3f35112277608c2e2694 Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 9 Mar 2006 01:57:13 +0000 Subject: bug 255: parameter values in #config limited to 255 chars (value becomes text) feature 303: page banner moved from combination of gallery_title, gallery_description and template to database (simplifies user customization) git-svn-id: http://piwigo.org/svn/trunk@1071 68402e56-0260-453c-a942-63ccdbb3a9ee --- install/db/13-database.php | 73 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 install/db/13-database.php (limited to 'install/db') diff --git a/install/db/13-database.php b/install/db/13-database.php new file mode 100644 index 000000000..ac35cc40c --- /dev/null +++ b/install/db/13-database.php @@ -0,0 +1,73 @@ +

'.$t.'

'.$d.'

'; +$page_banner=addslashes($page_banner); +$query = ' +INSERT INTO '.PREFIX_TABLE.'config (param,value,comment) VALUES (' . +"'page_banner','$page_banner','html displayed on the top each page of your gallery');"; +pwg_query($query); + +$query = ' +DELETE FROM '.PREFIX_TABLE.'config + WHERE param=\'gallery_description\' +;'; +pwg_query($query); + + +echo +"\n" +.'Table '.PREFIX_TABLE.'config updated' +."\n" +; +?> -- cgit v1.2.3