Changeset 5384 for trunk/install.php
- Timestamp:
- Mar 26, 2010, 4:44:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/install.php
r5357 r5384 25 25 define('PHPWG_ROOT_PATH','./'); 26 26 27 include(PHPWG_ROOT_PATH . 'admin/include/functions_install.inc.php');28 29 27 @set_magic_quotes_runtime(0); // Disable magic_quotes_runtime 30 28 // … … 183 181 } 184 182 185 include(PHPWG_ROOT_PATH .'include/dblayer/functions_'.$dblayer.'.inc.php');186 183 include(PHPWG_ROOT_PATH . 'include/constants.php'); 187 184 include(PHPWG_ROOT_PATH . 'include/functions.inc.php'); … … 261 258 } 262 259 //---------------------------------------------------------------- form analyze 260 include(PHPWG_ROOT_PATH .'include/dblayer/functions_'.$dblayer.'.inc.php'); 261 include(PHPWG_ROOT_PATH . 'admin/include/functions_install.inc.php'); 262 263 263 if ( isset( $_POST['install'] )) 264 264 { 265 try 266 { 267 $pwg_db_link = pwg_db_connect($_POST['dbhost'], $_POST['dbuser'], 268 $_POST['dbpasswd'], $_POST['dbname']); 269 270 array_push( $infos, l10n('Parameters are correct') ); 271 265 if (try_db_connection($infos, $errors)) 266 { 272 267 $required_version = constant('REQUIRED_'.strtoupper($dblayer).'_VERSION'); 273 268 if ( version_compare(pwg_get_db_version(), $required_version, '>=') ) … … 296 291 } 297 292 } 298 catch (Exception $e) 299 { 300 array_push( $errors, l10n($e->getMessage())); 301 } 293 302 294 $webmaster = trim(preg_replace( '/\s{2,}/', ' ', $admin_name )); 303 295 if ( empty($webmaster))
Note: See TracChangeset
for help on using the changeset viewer.