[phpcvsview-cvs-updates] phpcvsview cvsview.php,1.15,1.16
Status: Pre-Alpha
Brought to you by:
bcheesem
From: Sijis A. <si...@us...> - 2004-10-06 08:36:14
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22505 Modified Files: cvsview.php Log Message: - changed enviroment path data from strings to arrays Index: cvsview.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/cvsview.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** cvsview.php 5 Oct 2004 17:45:36 -0000 1.15 --- cvsview.php 6 Oct 2004 08:36:02 -0000 1.16 *************** *** 14,25 **** require_once 'config.php'; ! global $config; $REPOS = ""; ! $ScriptName = $_SERVER['PHP_SELF']; ! $ScriptPath = substr($ScriptName, 0, strrpos($ScriptName, "/")); ! if ($ScriptPath == "") { ! $ScriptPath = "/"; } --- 14,25 ---- require_once 'config.php'; ! global $config, $env; $REPOS = ""; ! $env['script_name'] = $_SERVER['PHP_SELF']; ! $env['script_path'] = substr($env['script_name'], 0, strrpos($env['script_name'], "/")); ! if ($env['script_path'] == "") { ! $env['script_path'] = "/"; } *************** *** 42,51 **** // Check for a module path if (isset($_GET["mp"])) { ! $config['mod_path'] = $_GET["mp"]; } else { ! $config['mod_path'] = "/"; } ! $config['mod_path'] = str_replace("//", "/", $config['mod_path']); if (isset($_GET["fh"])) { --- 42,51 ---- // Check for a module path if (isset($_GET["mp"])) { ! $env['mod_path'] = $_GET["mp"]; } else { ! $env['mod_path'] = "/"; } ! $env['mod_path'] = str_replace("//", "/", $env['mod_path']); if (isset($_GET["fh"])) { *************** *** 53,60 **** } else { if (isset($_GET["fa"])) { ! DisplayFileAnnotation($config['mod_path'], $_GET["fa"]); } else { if (isset($_GET["fv"])) { ! DisplayFileContents($config['mod_path'], $_GET["dt"]); } else { DisplayDirListing(); --- 53,60 ---- } else { if (isset($_GET["fa"])) { ! DisplayFileAnnotation($env['mod_path'], $_GET["fa"]); } else { if (isset($_GET["fv"])) { ! DisplayFileContents($env['mod_path'], $_GET["dt"]); } else { DisplayDirListing(); |