some framework stuff
[gwvp.git] / www / index.php
index cfe2386..aef8e3d 100644 (file)
@@ -1,8 +1,22 @@
 <?php
 
-// initial http file
+// get config
 require_once("config.php");
 
+// initial http file
+$WEB_ROOT_FS = realpath(dirname(__FILE__));
+$BASE_URL = dirname($_SERVER["PHP_SELF"]);
+
+global $WEB_ROOT_FS, $BASE_URL, $repo_base, $data_directory, $db_type, $db_name, $db_username, $db_password;
+
+// add gwvplib as if it were a path in ../gwvplib
+if(file_exists($lib_base)) {
+       $path = realpath($lib_base);
+       set_include_path(get_include_path().PATH_SEPARATOR.$path);
+}
+
+require_once("gwvplib.php");
+
 /* first determine the url, it will be something that does either or the following:
  * 
  * 
@@ -13,9 +27,10 @@ require_once("config.php");
  * 5. do we auth?
  */
 
-goWebGitBackEnd();
+gwvp_goWebBegin();
+//goWebGitBackEnd();
+
 
-/*
 echo "<pre>";
 echo "BASEURL: $BASE_URL\n";
 echo "CUSTOM\n";
@@ -24,6 +39,6 @@ print_r($_REQUEST);
 
 
 echo "</pre>";
-*/
+
 
 ?>