[9987] | 1 | <?php |
---|
| 2 | |
---|
| 3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 4 | |
---|
[12547] | 5 | global $prefixeTable, $conf, $stripped; |
---|
[9987] | 6 | |
---|
| 7 | if (!isset($conf['stripped'])) |
---|
| 8 | { |
---|
| 9 | $config = array( |
---|
[14687] | 10 | 'paramVersion' => '2.2', |
---|
[12960] | 11 | |
---|
[12547] | 12 | 'themeStyle' => 'black', |
---|
[9987] | 13 | 'hideMenu' => true, |
---|
| 14 | 'animatedMenu' => true, |
---|
[10688] | 15 | 'noLowercase' => false, |
---|
[12960] | 16 | 'albumType' => 'small', |
---|
| 17 | 'albumFrame' => true, |
---|
[12547] | 18 | 'thumbFrame' => true, |
---|
[11059] | 19 | 'showThumbLegend' => false, |
---|
[12547] | 20 | |
---|
[9987] | 21 | 'showTitleOnBrowsePath' => false, |
---|
[12547] | 22 | 'imageFrame' => true, |
---|
| 23 | 'imageCaption' => 'title', |
---|
| 24 | 'imageArrows' => false, |
---|
| 25 | 'navArrows' => true, |
---|
| 26 | 'defaultZoomSize' => 'fit', |
---|
| 27 | 'animatedTabs' => true, |
---|
[9987] | 28 | 'infoTabAdminOnly' => false, |
---|
[11982] | 29 | 'defaultTab' => "none", |
---|
[12547] | 30 | |
---|
[14687] | 31 | 'albumSize' => "thumb", |
---|
| 32 | 'thumbSize' => "thumb", |
---|
| 33 | 'imageSize' => "xlarge", |
---|
| 34 | 'hdSize' => "original", |
---|
| 35 | |
---|
[9987] | 36 | 'imageAutosize' => true, |
---|
| 37 | 'imageAutosizeMargin' => 60, |
---|
| 38 | 'imageAutosizeMinHeight' => 200, |
---|
[12547] | 39 | |
---|
[12153] | 40 | 'imagePreload' => false, |
---|
| 41 | 'imagePreloadNb' => 5, |
---|
| 42 | 'imagePreloadThumbs' => false, |
---|
| 43 | 'imagePreloadHD' => false, |
---|
[12547] | 44 | |
---|
[9987] | 45 | 'marginContainer' => 30, |
---|
| 46 | 'paddingContainer' => 10, |
---|
| 47 | 'highResClickMode' => 'zoom', |
---|
[12547] | 48 | 'maxThumb' => 15, |
---|
[9987] | 49 | ); |
---|
| 50 | |
---|
[11833] | 51 | $query = " |
---|
| 52 | INSERT INTO " . CONFIG_TABLE . " (param,value,comment) |
---|
| 53 | VALUES ('stripped' , '".pwg_db_real_escape_string(serialize($config))."' , 'stripped theme parameters');"; |
---|
[9987] | 54 | |
---|
| 55 | pwg_query($query); |
---|
| 56 | |
---|
[12547] | 57 | } else { |
---|
| 58 | |
---|
| 59 | if (isset($stripped['animatedMenu']) & (!isset($stripped['themeStyle']))) { |
---|
| 60 | |
---|
| 61 | $config = $stripped; |
---|
| 62 | $config['themeStyle']='original'; |
---|
| 63 | $config['thumbFrame']=true; |
---|
| 64 | |
---|
| 65 | if ($stripped['showDescriptionInsteadOfTitle']) { |
---|
| 66 | $config['imageCaption']='description'; |
---|
| 67 | } else { |
---|
| 68 | $config['imageCaption']='title'; |
---|
| 69 | } |
---|
| 70 | |
---|
| 71 | $config['imageArrows']=true; |
---|
| 72 | $config['navArrows']=false; |
---|
[14687] | 73 | $config['paramVersion']='2.2'; |
---|
| 74 | $config['albumType']='small'; |
---|
| 75 | $config['albumFrame']=$config['thumbFrame']; |
---|
| 76 | $config['albumSize']='thumb'; |
---|
| 77 | $config['thumbSize']='thumb'; |
---|
| 78 | $config['imageSize']='xlarge'; |
---|
| 79 | $config['hdSize']='original'; |
---|
[12547] | 80 | |
---|
| 81 | conf_update_param('stripped', pwg_db_real_escape_string(serialize($config))); |
---|
| 82 | |
---|
[12960] | 83 | } else { |
---|
| 84 | if (isset($stripped['themeStyle']) & (!isset($stripped['paramVersion']))) { |
---|
| 85 | |
---|
| 86 | $config = $stripped; |
---|
[14687] | 87 | $config['paramVersion']='2.2'; |
---|
[12960] | 88 | $config['albumType']='small'; |
---|
| 89 | $config['albumFrame']=$config['thumbFrame']; |
---|
[14687] | 90 | $config['albumSize']='thumb'; |
---|
| 91 | $config['thumbSize']='thumb'; |
---|
| 92 | $config['imageSize']='xlarge'; |
---|
| 93 | $config['hdSize']='original'; |
---|
[12960] | 94 | |
---|
| 95 | conf_update_param('stripped', pwg_db_real_escape_string(serialize($config))); |
---|
| 96 | |
---|
[14687] | 97 | } else { |
---|
| 98 | |
---|
| 99 | if ($stripped['paramVersion'] == '2.1') { |
---|
| 100 | |
---|
| 101 | $config = $stripped; |
---|
| 102 | $config['paramVersion']='2.2'; |
---|
| 103 | $config['albumSize']='thumb'; |
---|
| 104 | $config['thumbSize']='thumb'; |
---|
| 105 | $config['imageSize']='xlarge'; |
---|
| 106 | $config['hdSize']='original'; |
---|
| 107 | |
---|
| 108 | conf_update_param('stripped', pwg_db_real_escape_string(serialize($config))); |
---|
| 109 | |
---|
| 110 | } |
---|
| 111 | |
---|
[12960] | 112 | } |
---|
| 113 | |
---|
[12547] | 114 | } |
---|
| 115 | |
---|
[12960] | 116 | } |
---|
[9987] | 117 | ?> |
---|