Changeset 11059 for extensions/stripped/admin
- Timestamp:
- May 25, 2011, 9:36:23 PM (13 years ago)
- Location:
- extensions/stripped/admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped/admin/admin.inc.php
r10688 r11059 19 19 $config['replaceActionIcons']=isset($_POST['f_replaceActionIcons']); 20 20 $config['noLowercase']=!isset($_POST['f_forceLowercase']); 21 $config['showThumbLegend']=isset($_POST['f_showThumbLegend']); 21 22 $config['showTitleOnBrowsePath']=isset($_POST['f_showTitleOnBrowsePath']); 22 23 $config['showDescriptionInsteadOfTitle']=isset($_POST['f_showDescriptionInsteadOfTitle']); … … 34 35 35 36 36 $query = ' 37 UPDATE '.CONFIG_TABLE.' 38 SET value = "'.addslashes(serialize($config)).'" 39 WHERE param = "stripped" 40 ;'; 41 pwg_query($query); 37 conf_update_param('stripped', pwg_db_real_escape_string(serialize($config))); 42 38 43 39 array_push($page['infos'], l10n('Information data registered in database')); -
extensions/stripped/admin/admin.tpl
r10688 r11059 27 27 <span class="property">{'Force text to lowercase'|@translate}</span> 28 28 <input type="checkbox" name="f_forceLowercase" {if !($options.noLowercase)}checked{/if}> 29 </label></li> 30 <li><label> 31 <span class="property">{'Show thumbnail legend'|@translate}</span> 32 <input type="checkbox" name="f_showThumbLegend" {if $options.showThumbLegend}checked{/if}> 29 33 </label></li> 30 34 </ul> -
extensions/stripped/admin/maintain.inc.php
r10688 r11059 13 13 'replaceActionIcons' => true, 14 14 'noLowercase' => false, 15 'showThumbLegend' => false, 15 16 'showTitleOnBrowsePath' => false, 16 17 'showDescriptionInsteadOfTitle' => false, … … 30 31 $query = ' 31 32 INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) 32 VALUES ("stripped" , "'. addslashes(serialize($config)).'" , "stripped theme parameters");';33 VALUES ("stripped" , "'.pwg_db_real_escape_string(serialize($config)).'" , "stripped theme parameters");'; 33 34 34 35 pwg_query($query); -
extensions/stripped/admin/upgrade.inc.php
r10688 r11059 13 13 'replaceActionIcons' => true, 14 14 'noLowercase' => false, 15 'showThumbLegend' => false, 15 16 'showTitleOnBrowsePath' => false, 16 17 'showDescriptionInsteadOfTitle' => false, … … 30 31 $query = ' 31 32 INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) 32 VALUES ("stripped" , "'. addslashes(serialize($config)).'" , "stripped theme parameters");';33 VALUES ("stripped" , "'.pwg_db_real_escape_string(serialize($config)).'" , "stripped theme parameters");'; 33 34 34 35 pwg_query($query);
Note: See TracChangeset
for help on using the changeset viewer.