git branching and pushing is doing my head in
[gwvp-mini.git] / www / index.php
index 61e77b2..c0b765b 100644 (file)
@@ -1,8 +1,11 @@
 <?php
+error_log("INCALLSTART ".print_r($_COOKIE, true)." -------------------- ".print_r($_SERVER,true)." ---------- ".print_r($_REQUEST, true));
 $WEB_ROOT_FS = realpath(dirname(__FILE__));\r
 $BASE_URL = dirname($_SERVER["PHP_SELF"]);\r
 \r
-global $WEB_ROOT_FS, $BASE_URL, $data_directory, $db_type, $db_name, $db_username, $db_password;\r
+global $WEB_ROOT_FS, $BASE_URL, $data_directory, $db_type, $db_name, $db_username, $db_password, $IS_WEB_REQUEST;
+
+$IS_WEB_REQUEST = true;\r
 
 if(file_exists("./config.php")) require_once("./config.php");
 else if(file_exists("/etc/gwvpmini/config.php")) require_once("/etc/gwvpmini/config.php");
@@ -12,7 +15,6 @@ if(file_exists("../gwvpmini/gwvpmini.php")) require_once("../gwvpmini/gwvpmini.p
 else if(file_exists("/usr/share/gwvpmini/lib/gwvpmini/gwvpmini.php")) require_once("/usr/share/gwvpmini/lib/gwvpmini/gwvpmini.php");
 
 
-
 if(isset($noconfig)) {
        gwvpmini_goSetup();
        return;
@@ -27,13 +29,14 @@ if(!gwvpmini_DBExists($db_name)) {
        gwvpmini_setConfigVal("repodir", "$data_directory/repos");
 }
 
+error_log("REQUEST BEGIN");
 gwvpmini_goWeb();
 
 
-echo "<pre>";
+/*echo "<pre>";
 print_r($_SERVER);
 print_r($_REQUEST);
 print_r($_SESSION);
-echo "</pre>";
+echo "</pre>";*/
 
 ?>
\ No newline at end of file