1 | <?php |
---|
2 | |
---|
3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
4 | |
---|
5 | global $prefixeTable, $conf, $stripped; |
---|
6 | |
---|
7 | if (!isset($conf['stripped'])) |
---|
8 | { |
---|
9 | $config = array( |
---|
10 | 'themeStyle' => 'black', |
---|
11 | 'hideMenu' => true, |
---|
12 | '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', |
---|
23 | 'animatedTabs' => true, |
---|
24 | 'infoTabAdminOnly' => false, |
---|
25 | 'defaultTab' => "none", |
---|
26 | |
---|
27 | 'imageAutosize' => true, |
---|
28 | 'imageAutosizeMargin' => 60, |
---|
29 | 'imageAutosizeMinHeight' => 200, |
---|
30 | |
---|
31 | 'imagePreload' => false, |
---|
32 | 'imagePreloadNb' => 5, |
---|
33 | 'imagePreloadThumbs' => false, |
---|
34 | 'imagePreloadHD' => false, |
---|
35 | |
---|
36 | 'marginContainer' => 30, |
---|
37 | 'paddingContainer' => 10, |
---|
38 | 'highResClickMode' => 'zoom', |
---|
39 | 'maxThumb' => 15, |
---|
40 | ); |
---|
41 | |
---|
42 | $query = " |
---|
43 | INSERT INTO " . CONFIG_TABLE . " (param,value,comment) |
---|
44 | VALUES ('stripped' , '".pwg_db_real_escape_string(serialize($config))."' , 'stripped theme parameters');"; |
---|
45 | |
---|
46 | pwg_query($query); |
---|
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 | } |
---|
69 | |
---|
70 | ?> |
---|