Changeset 12547 for extensions/stripped/admin/upgrade.inc.php
- Timestamp:
- Nov 5, 2011, 12:36:01 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped/admin/upgrade.inc.php
r12321 r12547 3 3 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 4 5 global $prefixeTable, $conf ;5 global $prefixeTable, $conf, $stripped; 6 6 7 7 if (!isset($conf['stripped'])) 8 8 { 9 9 $config = array( 10 'themeStyle' => 'black', 10 11 'hideMenu' => true, 11 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', 12 23 'animatedTabs' => true, 13 'noLowercase' => false,14 'showThumbLegend' => false,15 'showTitleOnBrowsePath' => false,16 'showDescriptionInsteadOfTitle' => false,17 'useNavigationArrows' => true,18 24 'infoTabAdminOnly' => false, 19 25 'defaultTab' => "none", 26 20 27 'imageAutosize' => true, 21 'imageAutosizeTitle' => true,22 28 'imageAutosizeMargin' => 60, 23 29 'imageAutosizeMinHeight' => 200, 30 24 31 'imagePreload' => false, 25 32 'imagePreloadNb' => 5, 26 33 'imagePreloadThumbs' => false, 27 34 'imagePreloadHD' => false, 28 'navThumbsFade' => 150, 35 29 36 'marginContainer' => 30, 30 37 'paddingContainer' => 10, 31 'defaultZoomSize' => 'fit',32 38 'highResClickMode' => 'zoom', 39 'maxThumb' => 15, 33 40 ); 34 41 … … 38 45 39 46 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 } 41 69 42 70 ?>
Note: See TracChangeset
for help on using the changeset viewer.