source: extensions/stripped/admin/upgrade.inc.php @ 10558

Last change on this file since 10558 was 9987, checked in by Zaphod, 13 years ago

version 1.3.1 - add auto upgrade function

File size: 943 bytes
Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5global $prefixeTable, $conf;
6
7if (!isset($conf['stripped']))
8{
9    $config = array(
10        'hideMenu'                                              => true,
11        'animatedMenu'                                  => true,
12        'animatedTabs'                                  => true,
13        'replaceActionIcons'                    => true,
14        'showTitleOnBrowsePath'                 => false,
15        'showDescriptionInsteadOfTitle' => false,
16        'useNavigationArrows'                   => true,
17        'infoTabAdminOnly'                              => false,
18        'imageAutosize'                                 => true,
19        'imageAutosizeTitle'                    => true,
20        'imageAutosizeMargin'                   => 60,
21        'imageAutosizeMinHeight'                => 200,
22        'navThumbsFade'                                 => 150,
23        'marginContainer'                               => 30,
24        'paddingContainer'                              => 10,
25        'defaultZoomSize'                               => 'full',
26        'highResClickMode'                              => 'zoom',
27      );
28     
29    $query = '
30INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
31VALUES ("stripped" , "'.addslashes(serialize($config)).'" , "stripped theme parameters");';
32
33    pwg_query($query);
34  }
35
36?>
Note: See TracBrowser for help on using the repository browser.