Ignore:
Timestamp:
May 25, 2011, 9:36:23 PM (13 years ago)
Author:
Zaphod
Message:

version 1.3.9

Location:
extensions/stripped/admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped/admin/admin.inc.php

    r10688 r11059  
    1919        $config['replaceActionIcons']=isset($_POST['f_replaceActionIcons']);
    2020        $config['noLowercase']=!isset($_POST['f_forceLowercase']);
     21        $config['showThumbLegend']=isset($_POST['f_showThumbLegend']);
    2122        $config['showTitleOnBrowsePath']=isset($_POST['f_showTitleOnBrowsePath']);
    2223        $config['showDescriptionInsteadOfTitle']=isset($_POST['f_showDescriptionInsteadOfTitle']);
     
    3435
    3536       
    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)));
    4238
    4339  array_push($page['infos'], l10n('Information data registered in database'));
  • extensions/stripped/admin/admin.tpl

    r10688 r11059  
    2727                                        <span class="property">{'Force text to lowercase'|@translate}</span>&nbsp;
    2828                                        <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>&nbsp;
     32                                        <input type="checkbox" name="f_showThumbLegend" {if $options.showThumbLegend}checked{/if}>
    2933                                </label></li>
    3034                        </ul>
  • extensions/stripped/admin/maintain.inc.php

    r10688 r11059  
    1313        'replaceActionIcons'                    => true,
    1414        'noLowercase'                                   => false,
     15        'showThumbLegend'                               => false,
    1516        'showTitleOnBrowsePath'                 => false,
    1617        'showDescriptionInsteadOfTitle' => false,
     
    3031    $query = '
    3132INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
    32 VALUES ("stripped" , "'.addslashes(serialize($config)).'" , "stripped theme parameters");';
     33VALUES ("stripped" , "'.pwg_db_real_escape_string(serialize($config)).'" , "stripped theme parameters");';
    3334
    3435    pwg_query($query);
  • extensions/stripped/admin/upgrade.inc.php

    r10688 r11059  
    1313        'replaceActionIcons'                    => true,
    1414        'noLowercase'                                   => false,
     15        'showThumbLegend'                               => false,
    1516        'showTitleOnBrowsePath'                 => false,
    1617        'showDescriptionInsteadOfTitle' => false,
     
    3031    $query = '
    3132INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
    32 VALUES ("stripped" , "'.addslashes(serialize($config)).'" , "stripped theme parameters");';
     33VALUES ("stripped" , "'.pwg_db_real_escape_string(serialize($config)).'" , "stripped theme parameters");';
    3334
    3435    pwg_query($query);
Note: See TracChangeset for help on using the changeset viewer.