1 | <?php |
---|
2 | |
---|
3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
4 | |
---|
5 | global $prefixeTable, $conf; |
---|
6 | |
---|
7 | if (!isset($conf['stripped'])) |
---|
8 | { |
---|
9 | $config = array( |
---|
10 | 'hideMenu' => true, |
---|
11 | 'animatedMenu' => true, |
---|
12 | 'animatedTabs' => true, |
---|
13 | 'replaceActionIcons' => true, |
---|
14 | 'noLowercase' => false, |
---|
15 | 'showThumbLegend' => false, |
---|
16 | 'showTitleOnBrowsePath' => false, |
---|
17 | 'showDescriptionInsteadOfTitle' => false, |
---|
18 | 'useNavigationArrows' => true, |
---|
19 | 'infoTabAdminOnly' => false, |
---|
20 | 'defaultTab' => "none", |
---|
21 | 'imageAutosize' => true, |
---|
22 | 'imageAutosizeTitle' => true, |
---|
23 | 'imageAutosizeMargin' => 60, |
---|
24 | 'imageAutosizeMinHeight' => 200, |
---|
25 | 'imagePreload' => false, |
---|
26 | 'imagePreloadNb' => 5, |
---|
27 | 'imagePreloadThumbs' => false, |
---|
28 | 'imagePreloadHD' => false, |
---|
29 | 'navThumbsFade' => 150, |
---|
30 | 'marginContainer' => 30, |
---|
31 | 'paddingContainer' => 10, |
---|
32 | 'defaultZoomSize' => 'fit', |
---|
33 | 'highResClickMode' => 'zoom', |
---|
34 | ); |
---|
35 | |
---|
36 | $query = " |
---|
37 | INSERT INTO " . CONFIG_TABLE . " (param,value,comment) |
---|
38 | VALUES ('stripped' , '".pwg_db_real_escape_string(serialize($config))."' , 'stripped theme parameters');"; |
---|
39 | |
---|
40 | pwg_query($query); |
---|
41 | } |
---|
42 | |
---|
43 | ?> |
---|