X-Git-Url: http://git.pjr.cc/?a=blobdiff_plain;f=www%2Findex.php;h=acb44a1cbdb1a5ce8ac95e022d958c6027e4a2ed;hb=9e6cb4463d6cf32f623cfd0ee27259677b6c28db;hp=1482cebe8f634b1f44cb7f36bfbbda78ff61118b;hpb=e5447b1fce8c6afe107c6cecbacb8ee34f46a74d;p=gwvp-mini.git diff --git a/www/index.php b/www/index.php index 1482ceb..acb44a1 100644 --- a/www/index.php +++ b/www/index.php @@ -3,9 +3,9 @@ error_log("INCALLSTART ".print_r($_COOKIE, true)." -------------------- ".print_ $WEB_ROOT_FS = realpath(dirname(__FILE__)); $BASE_URL = dirname($_SERVER["PHP_SELF"]); -global $WEB_ROOT_FS, $BASE_URL, $data_directory, $db_type, $db_name, $db_username, $db_password, $IS_WEB_REQUEST; +global $WEB_ROOT_FS, $BASE_URL, $data_directory, $db_type, $db_name, $db_username, $db_password, $IS_WEB_REQUEST, $cmd_line_tool; -$IS_WEB_REQUEST = false; +$IS_WEB_REQUEST = true; if(file_exists("./config.php")) require_once("./config.php"); else if(file_exists("/etc/gwvpmini/config.php")) require_once("/etc/gwvpmini/config.php"); @@ -20,6 +20,8 @@ if(isset($noconfig)) { return; } +error_log("CMDLINETOOL: ".$cmd_line_tool); + // need to make this db agnostic if(!gwvpmini_DBExists($db_name)) { if(!is_dir("$data_directory/repos")) mkdir("$data_directory/repos");