Changeset 12048 for extensions/stripped_black_bloc/admin/upgrade.inc.php
- Timestamp:
- Sep 4, 2011, 6:08:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped_black_bloc/admin/upgrade.inc.php
r11923 r12048 7 7 if (!isset($conf['stripped_black_bloc'])) 8 8 { 9 $config = array( 10 'color_main' => 'E6554F', 11 'column_width' => 170, 12 'thumbnail_width' => 150, 13 'thumbnail' => 'piwigo' //generated - auto - piwigo 9 $config = array( 10 'color_main' => 'E6554F', 11 'column_width' => 170, 12 'thumbnail_width' => 150, 13 'every_x' => 20, 14 'starting_to' => 1, 15 'thumbnail' => 'piwigo' //generated - auto - piwigo 14 16 ); 15 17 $query = " … … 19 21 20 22 pwg_query($query); 21 23 load_conf_from_db(); 22 24 } 23 elseif (count(unserialize( $conf['stripped_black_bloc'] ))!=4) { 24 $config = array( 25 'color_main' => 'E6554F', 26 'column_width' => 170, 27 'thumbnail_width' => 150, 28 'thumbnail' => 'piwigo' //generated - auto - piwigo 25 elseif (count(unserialize( $conf['stripped_black_bloc'] ))!=6) 26 { 27 $config = array( 28 'color_main' => 'E6554F', 29 'column_width' => 170, 30 'thumbnail_width' => 150, 31 'every_x' => 20, 32 'starting_to' => 1, 33 'thumbnail' => 'piwigo' //generated - auto - piwigo 29 34 ); 30 35 31 36 32 33 37 conf_update_param('stripped_black_bloc', pwg_db_real_escape_string(serialize($config))); 38 load_conf_from_db(); 34 39 } 35 40 ?>
Note: See TracChangeset
for help on using the changeset viewer.