add some functions to pull git infomation from a repo
[gwvp-mini.git] / www / index.php
index c0b765b..b894fd8 100644 (file)
@@ -1,9 +1,10 @@
 <?php
-error_log("INCALLSTART ".print_r($_COOKIE, true)." -------------------- ".print_r($_SERVER,true)." ---------- ".print_r($_REQUEST, true));
+// 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, $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;
+global $git_backend_cmd, $git_cli_cmd, $php_cli_cmd, $data_directory, $cmd_line_tool;\r
 
 $IS_WEB_REQUEST = true;\r
 
@@ -20,6 +21,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");
@@ -29,7 +32,7 @@ if(!gwvpmini_DBExists($db_name)) {
        gwvpmini_setConfigVal("repodir", "$data_directory/repos");
 }
 
-error_log("REQUEST BEGIN");
+// error_log("REQUEST BEGIN");
 gwvpmini_goWeb();