Rename classes to include a fake namespace, since I can't expect everyone to be running PHP 5.3
Rename classes to include a fake namespace, since I can't expect everyone to be running PHP 5.3

--- a/include/Config.class.php
+++ b/include/Config.class.php
@@ -13,7 +13,7 @@
  *
  * @package GitPHP
  */
-class Config
+class GitPHP_Config
 {
 	
 	/**
@@ -56,7 +56,7 @@
 	public static function GetInstance()
 	{
 		if (!self::$instance) {
-			self::$instance = new Config();
+			self::$instance = new GitPHP_Config();
 		}
 		return self::$instance;
 	}

--- a/include/display.git_blob.php
+++ b/include/display.git_blob.php
@@ -49,7 +49,7 @@
 		$paths = git_path_trees($projectroot . $project, $hashbase, $file);
 		$tpl->assign("paths",$paths);
 
-		if (Config::GetInstance()->GetValue('filemimetype', true)) {
+		if (GitPHP_Config::GetInstance()->GetValue('filemimetype', true)) {
 			$mime = file_mime($catout,$file);
 			if ($mime)
 				$mimetype = strtok($mime, "/");
@@ -59,10 +59,10 @@
 			$tpl->assign("mime", $mime);
 			$tpl->assign("data", base64_encode($catout));
 		} else {
-			$usedgeshi = Config::GetInstance()->GetValue('geshi', true);
+			$usedgeshi = GitPHP_Config::GetInstance()->GetValue('geshi', true);
 			if ($usedgeshi) {
 				$usedgeshi = FALSE;
-				include_once(Config::GetInstance()->GetValue('geshiroot', 'lib/geshi/') . "geshi.php");
+				include_once(GitPHP_Config::GetInstance()->GetValue('geshiroot', 'lib/geshi/') . "geshi.php");
 				if (class_exists("GeSHi")) {
 					$geshi = new GeSHi("",'php');
 					if ($geshi) {

--- a/include/display.git_blob_plain.php
+++ b/include/display.git_blob_plain.php
@@ -27,7 +27,7 @@
 
 		$buffer = git_cat_file($projectroot . $project, $hash);
 
-		if (Config::GetInstance()->GetValue('filemimetype', true))
+		if (GitPHP_Config::GetInstance()->GetValue('filemimetype', true))
 			$mime = file_mime($buffer, $file);
 
 		$headers = array();

--- a/include/display.git_opml.php
+++ b/include/display.git_opml.php
@@ -19,7 +19,7 @@
 	if (!$tpl->is_cached('opml.tpl', $cachekey)) {
 		header("Content-type: text/xml; charset=UTF-8");
 		$projlist = git_read_projects($projectroot,$projectlist);
-		$tpl->assign("title", Config::GetInstance()->GetValue('title', $gitphp_appstring));
+		$tpl->assign("title", GitPHP_Config::GetInstance()->GetValue('title', $gitphp_appstring));
 		$tpl->assign("self",script_url());
 		$opmllist = array();
 		foreach ($projlist as $cat => $plist) {

--- a/include/display.git_search.php
+++ b/include/display.git_search.php
@@ -21,7 +21,7 @@
 
 	if (!$tpl->is_cached('search.tpl', $cachekey)) {
 
-		if (!Config::GetInstance()->GetValue('search', true)) {
+		if (!GitPHP_Config::GetInstance()->GetValue('search', true)) {
 			git_message("Search has been disabled", TRUE, TRUE);
 			return;
 		}

--- a/include/display.git_search_files.php
+++ b/include/display.git_search_files.php
@@ -21,7 +21,7 @@
 
 	if (!$tpl->is_cached('searchfiles.tpl', $cachekey)) {
 
-		if (!(Config::GetInstance()->GetValue('search', true) && Config::GetInstance()->GetValue('filesearch', true))) {
+		if (!(GitPHP_Config::GetInstance()->GetValue('search', true) && GitPHP_Config::GetInstance()->GetValue('filesearch', true))) {
 			git_message("File search has been disabled", TRUE, TRUE);
 			return;
 		}

--- a/include/display.git_snapshot.php
+++ b/include/display.git_snapshot.php
@@ -22,7 +22,7 @@
 	$bzcompress = false;
 	$gzencode = false;
 
-	$compressformat = Config::GetInstance()->GetValue('compressformat', GITPHP_COMPRESS_ZIP);
+	$compressformat = GitPHP_Config::GetInstance()->GetValue('compressformat', GITPHP_COMPRESS_ZIP);
 
 	$rname = str_replace(array("/",".git"),array("-",""),$project);
 	if ($compressformat == GITPHP_COMPRESS_ZIP) {
@@ -47,9 +47,9 @@
 			(($compressformat == GITPHP_COMPRESS_ZIP) ? "zip" : "tar"));
 
 		if (($compressformat == GITPHP_COMPRESS_BZ2) && $bzcompress) {
-			$arc = bzcompress($arc, Config::GetInstance()->GetValue('compresslevel', 4));
+			$arc = bzcompress($arc, GitPHP_Config::GetInstance()->GetValue('compresslevel', 4));
 		} else if (($compressformat == GITPHP_COMPRESS_GZ) && $gzencode) {
-			$arc = gzencode($arc, Config::GetInstance()->GetValue('compresslevel', -1));
+			$arc = gzencode($arc, GitPHP_Config::GetInstance()->GetValue('compresslevel', -1));
 		}
 		$tpl->assign("archive",$arc);
 	}

--- a/include/display.git_summary.php
+++ b/include/display.git_summary.php
@@ -22,7 +22,7 @@
 	$cachekey = sha1($project);
 
 	if (!$tpl->is_cached('project.tpl', $cachekey)) {
-		$projectObj = new Project($project);
+		$projectObj = new GitPHP_Project($project);
 
 		$descr = $projectObj->GetDescription();
 		$head = git_read_head($projectroot . $project);
@@ -34,10 +34,10 @@
 		$tpl->assign("description",$descr);
 		$tpl->assign("owner",$owner);
 		$tpl->assign("lastchange",$commitdate['rfc2822']);
-		if (Config::GetInstance()->HasKey('cloneurl'))
-			$tpl->assign('cloneurl', Config::GetInstance()->GetValue('cloneurl') . $project);
-		if (Config::GetInstance()->HasKey('pushurl'))
-			$tpl->assign('pushurl', Config::GetInstance()->GetValue('pushurl') . $project);
+		if (GitPHP_Config::GetInstance()->HasKey('cloneurl'))
+			$tpl->assign('cloneurl', GitPHP_Config::GetInstance()->GetValue('cloneurl') . $project);
+		if (GitPHP_Config::GetInstance()->HasKey('pushurl'))
+			$tpl->assign('pushurl', GitPHP_Config::GetInstance()->GetValue('pushurl') . $project);
 		$revlist = git_read_revlist($projectroot . $project, $head, 17);
 		foreach ($revlist as $i => $rev) {
 			$revdata = array();

--- a/include/git/Project.class.php
+++ b/include/git/Project.class.php
@@ -15,7 +15,7 @@
  *
  * @package GitPHP
  */
-class Project
+class GitPHP_Project
 {
 
 	/**
@@ -87,7 +87,7 @@
 	 */
 	private function SetProject($project)
 	{
-		$projectRoot = Config::GetInstance()->GetValue('projectroot');
+		$projectRoot = GitPHP_Config::GetInstance()->GetValue('projectroot');
 		$realProjectRoot = realpath($projectRoot);
 		$fullPath = realpath($projectRoot . $project);
 
@@ -171,7 +171,7 @@
 	 */
 	public function GetPath()
 	{
-		return Config::GetInstance()->GetValue('projectroot') . $this->project;
+		return GitPHP_Config::GetInstance()->GetValue('projectroot') . $this->project;
 	}
 
 	/**

--- a/include/gitutil.git_diff.php
+++ b/include/gitutil.git_diff.php
@@ -17,7 +17,7 @@
 		$pid = posix_getpid();
 	else
 		$pid = rand();
-	$tmpdir = Config::GetInstance()->GetValue('gittmp', '/tmp/gitphp/');
+	$tmpdir = GitPHP_Config::GetInstance()->GetValue('gittmp', '/tmp/gitphp/');
 	if (isset($from)) {
 		$from_tmp = $tmpdir . "gitphp_" . $pid . "_from";
 		git_cat_file($proj,$from,$from_tmp);
@@ -26,7 +26,7 @@
 		$to_tmp = $tmpdir . "gitphp_" . $pid . "_to";
 		git_cat_file($proj,$to,$to_tmp);
 	}
-	$out = shell_exec(Config::GetInstance()->GetValue('diffbin', 'diff') . " -u -p -L '" . $from_name . "' -L '" . $to_name . "' " . $from_tmp . " " . $to_tmp);
+	$out = shell_exec(GitPHP_Config::GetInstance()->GetValue('diffbin', 'diff') . " -u -p -L '" . $from_name . "' -L '" . $to_name . "' " . $from_tmp . " " . $to_tmp);
 	if (isset($from))
 		unlink($from_tmp);
 	if (isset($to))

--- a/include/gitutil.git_exec_nix.php
+++ b/include/gitutil.git_exec_nix.php
@@ -9,7 +9,7 @@
 
  function git_exec_nix($project, $command)
  {
-	$cmd = Config::GetInstance()->GetValue('gitbin', 'git');
+	$cmd = GitPHP_Config::GetInstance()->GetValue('gitbin', 'git');
 	if (isset($project) && (strlen($project) > 0))
 		$cmd .= " --git-dir=" . $project;
 	$cmd .= " " . $command;

--- a/include/gitutil.git_exec_win.php
+++ b/include/gitutil.git_exec_win.php
@@ -9,7 +9,7 @@
 
 function git_exec_win($project, $command)
 {
-	$cmd = Config::GetInstance()->GetValue('gitbin', 'C:\\Progra~1\\Git\\bin\\git.exe');
+	$cmd = GitPHP_Config::GetInstance()->GetValue('gitbin', 'C:\\Progra~1\\Git\\bin\\git.exe');
 	if (isset($project) && (strlen($project) > 0))
 		$cmd .= " --git-dir=" . $project;
 	$cmd .= " " . $command;

--- a/include/gitutil.git_history_list.php
+++ b/include/gitutil.git_history_list.php
@@ -12,7 +12,7 @@
 
 function git_history_list($proj,$hash,$file)
 {
-	$cmd = GIT_REV_LIST . " " . $hash . " | " . Config::GetInstance()->GetValue('gitbin', 'git') . " --git-dir=" . $proj . " " . GIT_DIFF_TREE . " -r --stdin -- " . $file;
+	$cmd = GIT_REV_LIST . " " . $hash . " | " . GitPHP_Config::GetInstance()->GetValue('gitbin', 'git') . " --git-dir=" . $proj . " " . GIT_DIFF_TREE . " -r --stdin -- " . $file;
 	return git_exec($proj, $cmd);
 }
 

--- a/include/gitutil.git_project_info.php
+++ b/include/gitutil.git_project_info.php
@@ -13,7 +13,7 @@
 
 function git_project_info($projectroot,$project)
 {
-	$projectObj = new Project($project);
+	$projectObj = new GitPHP_Project($project);
 
 	$projinfo = array();
 	$projinfo["project"] = $project;

--- a/include/util.file_mime_fileinfo.php
+++ b/include/util.file_mime_fileinfo.php
@@ -10,7 +10,7 @@
 function file_mime_fileinfo($buffer)
 {
 	if ($buffer && function_exists("finfo_buffer")) {
-		$finfo = finfo_open(FILEINFO_MIME, Config::GetInstance()->GetValue('magicdb', '/usr/share/misc/magic.mgc'));
+		$finfo = finfo_open(FILEINFO_MIME, GitPHP_Config::GetInstance()->GetValue('magicdb', '/usr/share/misc/magic.mgc'));
 		if ($finfo) {
 			$mime = finfo_buffer($finfo, $buffer, FILEINFO_MIME);
 			if ($mime && strpos($mime,"/")) {

--- a/include/util.prep_tmpdir.php
+++ b/include/util.prep_tmpdir.php
@@ -9,7 +9,7 @@
 
 function prep_tmpdir()
 {
-	$tmpdir = Config::GetInstance()->GetValue('gittmp', '/tmp/gitphp/');
+	$tmpdir = GitPHP_Config::GetInstance()->GetValue('gittmp', '/tmp/gitphp/');
 	if (file_exists($tmpdir)) {
 		if (is_dir($tmpdir)) {
 			if (!is_writeable($tmpdir))

--- a/include/util.script_url.php
+++ b/include/util.script_url.php
@@ -9,8 +9,8 @@
 
 function script_url()
 {
-	if (Config::GetInstance()->HasKey('self'))
-		return Config::GetInstance()->GetValue('self');
+	if (GitPHP_Config::GetInstance()->HasKey('self'))
+		return GitPHP_Config::GetInstance()->GetValue('self');
 
 	if (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on'))
 		$scriptstr = "https://";

file:a/index.php -> file:b/index.php
--- a/index.php
+++ b/index.php
@@ -30,17 +30,17 @@
  require_once(GITPHP_CONFIGDIR . 'gitphp.conf.php');
  require_once(GITPHP_INCLUDEDIR . 'Config.class.php');
  try {
- 	Config::GetInstance()->LoadConfig(GITPHP_CONFIGDIR . 'gitphp.conf.php.example');
+ 	GitPHP_Config::GetInstance()->LoadConfig(GITPHP_CONFIGDIR . 'gitphp.conf.php.example');
  } catch (Exception $e) {
  }
- Config::GetInstance()->LoadConfig(GITPHP_CONFIGDIR . 'gitphp.conf.php');
+ GitPHP_Config::GetInstance()->LoadConfig(GITPHP_CONFIGDIR . 'gitphp.conf.php');
 
 
  $project = null;
 
  if (isset($_GET['p'])) {
- 	$fullpath = realpath(Config::GetInstance()->GetValue('projectroot') . $_GET['p']);
-	$realprojroot = realpath(Config::GetInstance()->GetValue('projectroot'));
+ 	$fullpath = realpath(GitPHP_Config::GetInstance()->GetValue('projectroot') . $_GET['p']);
+	$realprojroot = realpath(GitPHP_Config::GetInstance()->GetValue('projectroot'));
 	$pathpiece = substr($fullpath, 0, strlen($realprojroot));
 	if (strcmp($pathpiece, $realprojroot) === 0) {
 		if (is_string($git_projects) && is_file($git_projects)) {
@@ -75,7 +75,7 @@
  /*
   * Instantiate Smarty
   */
- require_once(Config::GetInstance()->GetValue('smarty_prefix', 'lib/smarty/libs/') . "Smarty.class.php");
+ require_once(GitPHP_Config::GetInstance()->GetValue('smarty_prefix', 'lib/smarty/libs/') . "Smarty.class.php");
  $tpl = new Smarty;
  if (!isset($_GET['a']) ||
 	!in_array($_GET['a'], array('commitdiff_plain', 'blob_plain',
@@ -87,7 +87,7 @@
  /*
   * Debug
   */
- if (Config::GetInstance()->GetValue('debug', false)) {
+ if (GitPHP_Config::GetInstance()->GetValue('debug', false)) {
  	if ($extraoutput) {
 		define('GITPHP_START_TIME', microtime(true));
 		error_reporting(E_ALL|E_STRICT);
@@ -97,27 +97,27 @@
 /*
  * Caching
  */
- if (Config::GetInstance()->GetValue('cache', false)) {
+ if (GitPHP_Config::GetInstance()->GetValue('cache', false)) {
  	$tpl->caching = 2;
-	if (Config::GetInstance()->HasKey('cachelifetime'))
-		$tpl->cache_lifetime = Config::GetInstance()->GetValue('cachelifetime');
-	if (Config::GetInstance()->GetValue('cacheexpire', true) === false) {
+	if (GitPHP_Config::GetInstance()->HasKey('cachelifetime'))
+		$tpl->cache_lifetime = GitPHP_Config::GetInstance()->GetValue('cachelifetime');
+	if (GitPHP_Config::GetInstance()->GetValue('cacheexpire', true) === false) {
 		require_once(GITPHP_INCLUDEDIR . 'cache.cache_expire.php');
-		cache_expire(Config::GetInstance()->GetValue('projectroot'), $project, (isset($git_projects) ? $git_projects : null));
+		cache_expire(GitPHP_Config::GetInstance()->GetValue('projectroot'), $project, (isset($git_projects) ? $git_projects : null));
 	}
  }
 
 /*
  * Setup global assigns used everywhere (such as header/footer)
  */
- $tpl->assign("stylesheet", Config::GetInstance()->GetValue('stylesheet', 'gitphp.css'));
+ $tpl->assign("stylesheet", GitPHP_Config::GetInstance()->GetValue('stylesheet', 'gitphp.css'));
  $tpl->assign("version",$gitphp_version);
- $tpl->assign("pagetitle", Config::GetInstance()->GetValue('title', $gitphp_appstring));
+ $tpl->assign("pagetitle", GitPHP_Config::GetInstance()->GetValue('title', $gitphp_appstring));
  if ($project) {
 	$tpl->assign("validproject",TRUE);
 	$tpl->assign("project",$project);
 	require_once(GITPHP_INCLUDEDIR . 'git/Project.class.php');
-	$projectObj = new Project($project);
+	$projectObj = new GitPHP_Project($project);
 	$tpl->assign("projectdescription", $projectObj->GetDescription());
 	if (isset($_GET['a'])) {
 		$tpl->assign("action",$_GET['a']);
@@ -134,9 +134,9 @@
 	$tpl->assign("currentsearchhash",$_GET['hb']);
 else if (isset($_GET['h']))
 	$tpl->assign("currentsearchhash",$_GET['h']);
-if (Config::GetInstance()->GetValue('search', true))
+if (GitPHP_Config::GetInstance()->GetValue('search', true))
 	$tpl->assign("enablesearch",TRUE);
-if (Config::GetInstance()->GetValue('filesearch', true))
+if (GitPHP_Config::GetInstance()->GetValue('filesearch', true))
 	$tpl->assign("filesearch",TRUE);
 
 
@@ -147,105 +147,105 @@
 	git_message("Cache expired");
  } else if (isset($_GET['a']) && $_GET['a'] == "opml") {
 	require_once(GITPHP_INCLUDEDIR . 'display.git_opml.php');
-	git_opml(Config::GetInstance()->GetValue('projectroot'), (isset($git_projects) ? $git_projects : null));
+	git_opml(GitPHP_Config::GetInstance()->GetValue('projectroot'), (isset($git_projects) ? $git_projects : null));
  } else if (isset($_GET['a']) && $_GET['a'] == "project_index") {
 	require_once(GITPHP_INCLUDEDIR . 'display.git_project_index.php');
-	git_project_index(Config::GetInstance()->GetValue('projectroot'),(isset($git_projects) ? $git_projects : null));
+	git_project_index(GitPHP_Config::GetInstance()->GetValue('projectroot'),(isset($git_projects) ? $git_projects : null));
  } else if ($project) {
- 	if (!is_dir(Config::GetInstance()->GetValue('projectroot') . $project)) {
+ 	if (!is_dir(GitPHP_Config::GetInstance()->GetValue('projectroot') . $project)) {
 		$tpl->assign("validproject",FALSE);
 		require_once(GITPHP_INCLUDEDIR . 'display.git_message.php');
 		git_message("No such directory",TRUE);
-	} else if (!is_file(Config::GetInstance()->GetValue('projectroot') . $project . "/HEAD")) {
+	} else if (!is_file(GitPHP_Config::GetInstance()->GetValue('projectroot') . $project . "/HEAD")) {
 		$tpl->assign("validproject",FALSE);
 		require_once(GITPHP_INCLUDEDIR . 'display.git_message.php');
 		git_message("No such project",TRUE);
 	} else {
 		if (!isset($_GET['a'])) {
 			require_once(GITPHP_INCLUDEDIR . 'display.git_summary.php');
-			git_summary(Config::GetInstance()->GetValue('projectroot'),$project);
+			git_summary(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project);
 		} else {
 			switch ($_GET['a']) {
 				case "summary":
 					require_once(GITPHP_INCLUDEDIR . 'display.git_summary.php');
-					git_summary(Config::GetInstance()->GetValue('projectroot'),$project);
+					git_summary(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project);
 					break;
 				case "tree":
 					require_once(GITPHP_INCLUDEDIR . 'display.git_tree.php');
-					git_tree(Config::GetInstance()->GetValue('projectroot'), $project, (isset($_GET['h']) ? $_GET['h'] : NULL), (isset($_GET['f']) ? $_GET['f'] : NULL), (isset($_GET['hb']) ? $_GET['hb'] : NULL));
+					git_tree(GitPHP_Config::GetInstance()->GetValue('projectroot'), $project, (isset($_GET['h']) ? $_GET['h'] : NULL), (isset($_GET['f']) ? $_GET['f'] : NULL), (isset($_GET['hb']) ? $_GET['hb'] : NULL));
 					break;
 				case "shortlog":
 					require_once(GITPHP_INCLUDEDIR . 'display.git_shortlog.php');
-					git_shortlog(Config::GetInstance()->GetValue('projectroot'),$project,(isset($_GET['h']) ? $_GET['h'] : NULL), (isset($_GET['pg']) ? $_GET['pg'] : NULL));
+					git_shortlog(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project,(isset($_GET['h']) ? $_GET['h'] : NULL), (isset($_GET['pg']) ? $_GET['pg'] : NULL));
 					break;
 				case "log":
 					require_once(GITPHP_INCLUDEDIR . 'display.git_log.php');
-					git_log(Config::GetInstance()->GetValue('projectroot'),$project, (isset($_GET['h']) ? $_GET['h'] : NULL), (isset($_GET['pg']) ? $_GET['pg'] : NULL));
+					git_log(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project, (isset($_GET['h']) ? $_GET['h'] : NULL), (isset($_GET['pg']) ? $_GET['pg'] : NULL));
 					break;
 				case "commit":
 					require_once(GITPHP_INCLUDEDIR . 'display.git_commit.php');
-					git_commit(Config::GetInstance()->GetValue('projectroot'),$project,$_GET['h']);
+					git_commit(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project,$_GET['h']);
 					break;
 				case "commitdiff":
 					require_once(GITPHP_INCLUDEDIR . 'display.git_commitdiff.php');
-					git_commitdiff(Config::GetInstance()->GetValue('projectroot'),$project,$_GET['h'], (isset($_GET['hp']) ? $_GET['hp'] : NULL));
+					git_commitdiff(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project,$_GET['h'], (isset($_GET['hp']) ? $_GET['hp'] : NULL));
 					break;
 				case "commitdiff_plain":
 					require_once(GITPHP_INCLUDEDIR . 'display.git_commitdiff_plain.php');
-					git_commitdiff_plain(Config::GetInstance()->GetValue('projectroot'),$project,$_GET['h'],(isset($_GET['hp']) ? $_GET['hp'] : NULL));
+					git_commitdiff_plain(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project,$_GET['h'],(isset($_GET['hp']) ? $_GET['hp'] : NULL));
 					break;
 				case "heads":
 					require_once(GITPHP_INCLUDEDIR . 'display.git_heads.php');
-					git_heads(Config::GetInstance()->GetValue('projectroot'),$project);
+					git_heads(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project);
 					break;
 				case "tags":
 					require_once(GITPHP_INCLUDEDIR . 'display.git_tags.php');
-					git_tags(Config::GetInstance()->GetValue('projectroot'),$project);
+					git_tags(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project);
 					break;
 				case "rss":
 					require_once(GITPHP_INCLUDEDIR . 'display.git_rss.php');
-					git_rss(Config::GetInstance()->GetValue('projectroot'),$project);
+					git_rss(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project);
 					break;
 				case "blob":
 					require_once(GITPHP_INCLUDEDIR . 'display.git_blob.php');
-					git_blob(Config::GetInstance()->GetValue('projectroot'),$project, (isset($_GET['h']) ? $_GET['h'] : NULL), (isset($_GET['f']) ? $_GET['f'] : NULL), (isset($_GET['hb']) ? $_GET['hb'] : NULL));
+					git_blob(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project, (isset($_GET['h']) ? $_GET['h'] : NULL), (isset($_GET['f']) ? $_GET['f'] : NULL), (isset($_GET['hb']) ? $_GET['hb'] : NULL));
 					break;
 				case "blob_plain":
 					require_once(GITPHP_INCLUDEDIR . 'display.git_blob_plain.php');
-					git_blob_plain(Config::GetInstance()->GetValue('projectroot'),$project,$_GET['h'],(isset($_GET['f']) ? $_GET['f'] : NULL));
+					git_blob_plain(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project,$_GET['h'],(isset($_GET['f']) ? $_GET['f'] : NULL));
 					break;
 				case "blobdiff":
 					require_once(GITPHP_INCLUDEDIR . 'display.git_blobdiff.php');
-					git_blobdiff(Config::GetInstance()->GetValue('projectroot'),$project,$_GET['h'],$_GET['hb'],$_GET['hp'],(isset($_GET['f']) ? $_GET['f'] : NULL));
+					git_blobdiff(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project,$_GET['h'],$_GET['hb'],$_GET['hp'],(isset($_GET['f']) ? $_GET['f'] : NULL));
 					break;
 				case "blobdiff_plain":
 					require_once(GITPHP_INCLUDEDIR . 'display.git_blobdiff_plain.php');
-					git_blobdiff_plain(Config::GetInstance()->GetValue('projectroot'),$project,$_GET['h'],$_GET['hb'],$_GET['hp'], (isset($_GET['f']) ? $_GET['f'] : NULL));
+					git_blobdiff_plain(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project,$_GET['h'],$_GET['hb'],$_GET['hp'], (isset($_GET['f']) ? $_GET['f'] : NULL));
 					break;
 				case "blame":
 					require_once(GITPHP_INCLUDEDIR . 'display.git_blame.php');
-					git_blame(Config::GetInstance()->GetValue('projectroot'),$project, (isset($_GET['h']) ? $_GET['h'] : NULL), (isset($_GET['f']) ? $_GET['f'] : NULL), (isset($_GET['hb']) ? $_GET['hb'] : NULL));
+					git_blame(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project, (isset($_GET['h']) ? $_GET['h'] : NULL), (isset($_GET['f']) ? $_GET['f'] : NULL), (isset($_GET['hb']) ? $_GET['hb'] : NULL));
 					break;
 				case "snapshot":
 					require_once(GITPHP_INCLUDEDIR . 'display.git_snapshot.php');
-					git_snapshot(Config::GetInstance()->GetValue('projectroot'),$project, (isset($_GET['h']) ? $_GET['h'] : NULL));
+					git_snapshot(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project, (isset($_GET['h']) ? $_GET['h'] : NULL));
 					break;
 				case "history":
 					require_once(GITPHP_INCLUDEDIR . 'display.git_history.php');
-					git_history(Config::GetInstance()->GetValue('projectroot'),$project, (isset($_GET['h']) ? $_GET['h'] : NULL),$_GET['f']);
+					git_history(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project, (isset($_GET['h']) ? $_GET['h'] : NULL),$_GET['f']);
 					break;
 				case "search":
 					if (isset($_GET['st']) && ($_GET['st'] == 'file')) {
 						require_once(GITPHP_INCLUDEDIR . 'display.git_search_files.php');
-						git_search_files(Config::GetInstance()->GetValue('projectroot'),$project,(isset($_GET['h']) ? $_GET['h'] : NULL),(isset($_GET['s']) ? $_GET['s'] : NULL),(isset($_GET['pg']) ? $_GET['pg'] : 0));
+						git_search_files(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project,(isset($_GET['h']) ? $_GET['h'] : NULL),(isset($_GET['s']) ? $_GET['s'] : NULL),(isset($_GET['pg']) ? $_GET['pg'] : 0));
 					} else {
 						require_once(GITPHP_INCLUDEDIR . 'display.git_search.php');
-						git_search(Config::GetInstance()->GetValue('projectroot'),$project,(isset($_GET['h']) ? $_GET['h'] : NULL),(isset($_GET['s']) ? $_GET['s'] : NULL),(isset($_GET['st']) ? $_GET['st'] : "commit"),(isset($_GET['pg']) ? $_GET['pg'] : 0));
+						git_search(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project,(isset($_GET['h']) ? $_GET['h'] : NULL),(isset($_GET['s']) ? $_GET['s'] : NULL),(isset($_GET['st']) ? $_GET['st'] : "commit"),(isset($_GET['pg']) ? $_GET['pg'] : 0));
 					}
 					break;
 				case "tag":
 					require_once(GITPHP_INCLUDEDIR . 'display.git_tag.php');
-					git_tag(Config::GetInstance()->GetValue('projectroot'),$project,$_GET['h']);
+					git_tag(GitPHP_Config::GetInstance()->GetValue('projectroot'),$project,$_GET['h']);
 					break;
 				default:
 					$tpl->assign("validaction", FALSE);
@@ -257,10 +257,10 @@
 	}
  } else {
 	require_once(GITPHP_INCLUDEDIR . 'display.git_project_list.php');
-	git_project_list(Config::GetInstance()->GetValue('projectroot'), (isset($git_projects) ? $git_projects : null), (isset($_GET['o']) ? $_GET['o'] : "project"));
- }
-
- if (Config::GetInstance()->GetValue('debug', false) && $extraoutput)
+	git_project_list(GitPHP_Config::GetInstance()->GetValue('projectroot'), (isset($git_projects) ? $git_projects : null), (isset($_GET['o']) ? $_GET['o'] : "project"));
+ }
+
+ if (GitPHP_Config::GetInstance()->GetValue('debug', false) && $extraoutput)
  	echo "Execution time: " . round(microtime(true) - GITPHP_START_TIME, 8) . " sec";
 
 ?>

comments