Changeset 1027 for trunk/include/functions.inc.php
- Timestamp:
- Feb 6, 2006, 10:52:16 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r1021 r1027 489 489 function redirect( $url ) 490 490 { 491 global $user, $template, $lang_info, $conf, $lang, $t2, $page ;491 global $user, $template, $lang_info, $conf, $lang, $t2, $page, $debug; 492 492 493 493 // $refresh, $url_link and $title are required for creating an automated … … 973 973 return $email; 974 974 } 975 976 /** 977 * which upgrades are available ? 978 * 979 * @return array 980 */ 981 function get_available_upgrade_ids() 982 { 983 $upgrades_path = PHPWG_ROOT_PATH.'install/db'; 984 985 $available_upgrade_ids = array(); 986 987 if ($contents = opendir($upgrades_path)) 988 { 989 while (($node = readdir($contents)) !== false) 990 { 991 if (is_file($upgrades_path.'/'.$node) 992 and preg_match('/^(.*?)-database\.php$/', $node, $match)) 993 { 994 array_push($available_upgrade_ids, $match[1]); 995 } 996 } 997 } 998 natcasesort($available_upgrade_ids); 999 1000 return $available_upgrade_ids; 1001 } 975 1002 ?>
Note: See TracChangeset
for help on using the changeset viewer.