Index: includes/bootstrap.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/bootstrap.inc,v retrieving revision 1.9 diff -u -r1.9 bootstrap.inc --- includes/bootstrap.inc 26 Jan 2004 19:05:20 -0000 1.9 +++ includes/bootstrap.inc 9 Feb 2004 19:52:30 -0000 @@ -241,6 +241,8 @@ include_once "includes/session.inc"; include_once "includes/module.inc"; -// initialize configuration variables, using values from conf.php if available: -$conf = variable_init(isset($conf) ? $conf : array()); +if (DRUPAL_NO_INIT != 1) { + // initialize configuration variables, using values from conf.php if available: + $conf = variable_init(isset($conf) ? $conf : array()); +} ?> Index: includes/common.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/common.inc,v retrieving revision 1.321 diff -u -r1.321 common.inc --- includes/common.inc 8 Feb 2004 21:42:58 -0000 1.321 +++ includes/common.inc 9 Feb 2004 19:52:35 -0000 @@ -1188,33 +1188,34 @@ include_once "includes/tablesort.inc"; include_once "includes/file.inc"; -// set error handler: -set_error_handler("error_handler"); - -// spit out the correct charset http header -header("Content-Type: text/html; charset=utf-8"); - -// initialize the _GET["q"] prior to loading the modules and invoking their 'init' hook: -if (!empty($_GET["q"])) { - $_GET["q"] = drupal_get_normal_path(trim($_GET["q"], "/")); -} -else { - $_GET["q"] = drupal_get_normal_path(variable_get("site_frontpage", "node")); -} +if (DRUPAL_NO_INIT != 1) { + // set error handler: + set_error_handler("error_handler"); + + // spit out the correct charset http header + header("Content-Type: text/html; charset=utf-8"); + + // initialize the _GET["q"] prior to loading the modules and invoking their 'init' hook: + if (!empty($_GET["q"])) { + $_GET["q"] = drupal_get_normal_path(trim($_GET["q"], "/")); + } + else { + $_GET["q"] = drupal_get_normal_path(variable_get("site_frontpage", "node")); + } -// initialize installed modules: -module_init(); + // initialize installed modules: + module_init(); -if ($_REQUEST && !user_access("bypass input data check")) { - if (!valid_input_data($_REQUEST)) { - die("terminated request because of suspicious input data"); + if ($_REQUEST && !user_access("bypass input data check")) { + if (!valid_input_data($_REQUEST)) { + die("terminated request because of suspicious input data"); + } } -} -// initialize localization system: -$locale = locale_init(); - -// initialize theme: -$theme = init_theme(); + // initialize localization system: + $locale = locale_init(); + // initialize theme: + $theme = init_theme(); +} ?> Index: includes/database.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/database.inc,v retrieving revision 1.27 diff -u -r1.27 database.inc --- includes/database.inc 1 Oct 2003 05:18:02 -0000 1.27 +++ includes/database.inc 9 Feb 2004 19:52:35 -0000 @@ -27,7 +27,9 @@ include_once "includes/database.pear.inc"; } -db_connect($db_url); +if (DRUPAL_NO_INIT != 1) { + db_connect($db_url); +} ?> Index: includes/session.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/session.inc,v retrieving revision 1.6 diff -u -r1.6 session.inc --- includes/session.inc 17 Jan 2004 10:06:04 -0000 1.6 +++ includes/session.inc 9 Feb 2004 19:52:35 -0000 @@ -1,8 +1,10 @@