Ignore:
Timestamp:
Nov 5, 2011, 12:36:01 PM (12 years ago)
Author:
Zaphod
Message:

version 2.0.0

File:
1 edited

Legend:

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

    r12321 r12547  
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    44
    5 global $prefixeTable, $conf;
     5global $prefixeTable, $conf, $stripped;
    66
    77if (!isset($conf['stripped']))
    88{
    99    $config = array(
     10        'themeStyle'                                    => 'black',
    1011        'hideMenu'                                              => true,
    1112        'animatedMenu'                                  => true,
     13        'noLowercase'                                   => false,
     14        'thumbFrame'                                    => true,
     15        'showThumbLegend'                               => false,
     16
     17        'showTitleOnBrowsePath'                 => false,
     18        'imageFrame'                                    => true,
     19        'imageCaption'                                  => 'title',
     20        'imageArrows'                                   => false,
     21        'navArrows'                                             => true,
     22        'defaultZoomSize'                               => 'fit',
    1223        'animatedTabs'                                  => true,
    13         'noLowercase'                                   => false,
    14         'showThumbLegend'                               => false,
    15         'showTitleOnBrowsePath'                 => false,
    16         'showDescriptionInsteadOfTitle' => false,
    17         'useNavigationArrows'                   => true,
    1824        'infoTabAdminOnly'                              => false,
    1925        'defaultTab'                                    => "none",
     26
    2027        'imageAutosize'                                 => true,
    21         'imageAutosizeTitle'                    => true,
    2228        'imageAutosizeMargin'                   => 60,
    2329        'imageAutosizeMinHeight'                => 200,
     30
    2431        'imagePreload'                                  => false,
    2532        'imagePreloadNb'                                => 5,
    2633        'imagePreloadThumbs'                    => false,
    2734        'imagePreloadHD'                                => false,
    28         'navThumbsFade'                                 => 150,
     35
    2936        'marginContainer'                               => 30,
    3037        'paddingContainer'                              => 10,
    31         'defaultZoomSize'                               => 'fit',
    3238        'highResClickMode'                              => 'zoom',
     39        'maxThumb'                                              => 15,
    3340      );
    3441     
     
    3845
    3946    pwg_query($query);
    40   }
     47
     48} else {
     49       
     50        if (isset($stripped['animatedMenu']) & (!isset($stripped['themeStyle']))) {
     51
     52                $config = $stripped;
     53                $config['themeStyle']='original';
     54                $config['thumbFrame']=true;
     55               
     56                if ($stripped['showDescriptionInsteadOfTitle']) {
     57                        $config['imageCaption']='description';
     58                } else {
     59                        $config['imageCaption']='title';
     60                }
     61
     62                $config['imageArrows']=true;
     63                $config['navArrows']=false;
     64                 
     65                conf_update_param('stripped', pwg_db_real_escape_string(serialize($config)));
     66       
     67        }
     68}
    4169
    4270?>
Note: See TracChangeset for help on using the changeset viewer.