<?php
/**
+ * @file
* Drupal shell execution script
*
* Check for your PHP interpreter - on Windows you'll probably have to
* @param path Drupal's absolute root directory in local file system (optional).
* @param URI A URI to execute, including HTTP protocol prefix.
*/
+
$script = basename(array_shift($_SERVER['argv']));
if (in_array('--help', $_SERVER['argv']) || empty($_SERVER['argv'])) {
exit;
}
-// define default settings
$cmd = 'index.php';
+// define default settings
$_SERVER['HTTP_HOST'] = 'default';
$_SERVER['PHP_SELF'] = '/index.php';
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
// toggle verbose mode
if (in_array('--verbose', $_SERVER['argv'])) {
- $_verbose_mode = true;
+ $_verbose_mode = TRUE;
}
else {
- $_verbose_mode = false;
+ $_verbose_mode = FALSE;
}
// parse invocation arguments