Changeset 5982 for trunk/install
- Timestamp:
- Apr 28, 2010, 4:28:05 PM (14 years ago)
- Location:
- trunk/install
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/install/db/65-database.php
r5215 r5982 166 166 $query = 'SHOW TABLES LIKE "'.$prefixeTable.'%"'; 167 167 $result = pwg_query($query); 168 while ( $row=pwg_db_fetch_ assoc($result) )168 while ( $row=pwg_db_fetch_row($result) ) 169 169 { 170 170 array_push($all_tables, $row[0]); -
trunk/install/db/86-database.php
r5452 r5982 27 27 } 28 28 29 $upgrade_description = 'Automatically activate core themes and used themes.';29 $upgrade_description = 'Automatically activate core themes.'; 30 30 31 $themes_core = array('Sylvia', 'dark', 'clear'); 32 33 $query = ' 34 SELECT 35 DISTINCT(theme) 36 FROM '.PREFIX_TABLE.'user_infos 37 ;'; 38 $themes_used = array_from_query($query, 'theme'); 39 40 $query = ' 41 SELECT 42 id 43 FROM '.PREFIX_TABLE.'themes 44 ;'; 45 $themes_active = array_from_query($query, 'id'); 46 47 48 $themes_to_activate = array_diff( 49 array_unique(array_merge($themes_used, $themes_core)), 50 $themes_active 51 ); 52 53 // echo '<pre>'; print_r($themes_to_activate); echo '</pre>'; exit(); 54 55 foreach ($themes_to_activate as $theme) 56 { 57 $query = ' 58 INSERT INTO '.PREFIX_TABLE.'themes 59 (id) VALUES(\''.$theme.'\' 60 ;'; 61 pwg_query($query); 62 } 31 include_once(PHPWG_ROOT_PATH . 'admin/include/functions_install.inc.php'); 32 activate_core_themes(); 63 33 64 34 echo -
trunk/install/upgrade_1.7.0.php
r5196 r5982 33 33 } 34 34 } 35 36 define('UPGRADES_PATH', PHPWG_ROOT_PATH.'install/db');37 38 list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));39 define('CURRENT_DATE', $dbnow);40 35 41 36 // +-----------------------------------------------------------------------+ … … 89 84 echo '<pre>'; 90 85 91 for ($upgrade_id = 61; ; $upgrade_id++)86 for ($upgrade_id = 61; $upgrade_id <= 79; $upgrade_id++) 92 87 { 93 88 if (!file_exists(UPGRADES_PATH.'/'.$upgrade_id.'-database.php')) … … 120 115 121 116 // now we upgrade from 2.0.0 122 //include_once(PHPWG_ROOT_PATH.'install/upgrade_2.0.0.php');117 include_once(PHPWG_ROOT_PATH.'install/upgrade_2.0.0.php'); 123 118 ?>
Note: See TracChangeset
for help on using the changeset viewer.