2006-07-13 13:14:25 +00:00
< ? php
2010-02-17 04:19:51 +00:00
/**
* @ file
* Initiates a browser - based installation of Drupal .
*/
2011-10-31 04:05:57 +00:00
// Change the directory to the Drupal root.
chdir ( '..' );
2008-09-20 20:22:25 +00:00
/**
* Root directory of Drupal installation .
*/
2009-02-08 20:27:51 +00:00
define ( 'DRUPAL_ROOT' , getcwd ());
2008-09-20 20:22:25 +00:00
2008-05-26 17:12:55 +00:00
/**
* Global flag to indicate that site is in installation mode .
2011-12-09 03:16:39 +00:00
*
* This constant is defined using define () instead of const so that PHP
* versions older than 5.3 can display the proper PHP requirements instead of
* causing a fatal error .
2008-05-26 17:12:55 +00:00
*/
2011-12-09 03:16:39 +00:00
define ( 'MAINTENANCE_MODE' , 'install' );
2007-11-30 12:19:10 +00:00
2010-10-22 02:53:19 +00:00
// Exit early if running an incompatible PHP version to avoid fatal errors.
2011-06-11 23:33:58 +00:00
// The minimum version is specified explicitly, as DRUPAL_MINIMUM_PHP is not
// yet available. It is defined in bootstrap.inc, but it is not possible to
// load that file yet as it would cause a fatal error on older versions of PHP.
2012-03-02 19:51:19 +00:00
if ( version_compare ( PHP_VERSION , '5.3.3' ) < 0 ) {
print 'Your PHP installation is too old. Drupal requires at least PHP 5.3.3. See the <a href="http://drupal.org/requirements">system requirements</a> page for more information.' ;
2010-10-22 02:53:19 +00:00
exit ;
}
2010-02-17 04:19:51 +00:00
// Start the installer.
2011-10-31 04:05:57 +00:00
require_once DRUPAL_ROOT . '/core/includes/install.core.inc' ;
2010-02-17 04:19:51 +00:00
install_drupal ();