Update of /cvsroot/phpcvsview/phpcvsview
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15986
Modified Files:
cvsview.php
Log Message:
- added comments and organized variables
Index: cvsview.php
===================================================================
RCS file: /cvsroot/phpcvsview/phpcvsview/cvsview.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** cvsview.php 4 Feb 2005 04:21:52 -0000 1.24
--- cvsview.php 24 Feb 2005 06:37:17 -0000 1.25
***************
*** 26,33 ****
}
! $REPOS = "";
$env['script_name'] = $_SERVER['PHP_SELF'];
$env['script_path'] = substr($env['script_name'], 0, strrpos($env['script_name'], "/"));
$env['script_path'] = (empty($env['script_path']))? '/' : $env['script_path'];
$env['language_path'] = 'languages/';
$env['theme_path'] = 'Themes/';
--- 26,38 ----
}
! // set enviroment paths and defaults
$env['script_name'] = $_SERVER['PHP_SELF'];
+
$env['script_path'] = substr($env['script_name'], 0, strrpos($env['script_name'], "/"));
$env['script_path'] = (empty($env['script_path']))? '/' : $env['script_path'];
+
+ $env['mod_path'] = (isset($_GET["mp"])) ? $_GET["mp"] : "/";
+ $env['mod_path'] = str_replace("//", "/", $env['mod_path']);
+
$env['language_path'] = 'languages/';
$env['theme_path'] = 'Themes/';
***************
*** 62,65 ****
--- 67,71 ----
}
+ // include required files and functions
require_once $env['theme_path'] . $config['theme']."/theme.php";
require_once $env['language_path'] . $config['language'] .'.php';
***************
*** 74,82 ****
require_once 'func_ArchiveDownload.php';
!
! // Check for a module path
! $env['mod_path'] = (isset($_GET["mp"])) ? $_GET["mp"] : "/";
! $env['mod_path'] = str_replace("//", "/", $env['mod_path']);
!
if (isset($_GET["fh"])) {
DisplayFileHistory();
--- 80,84 ----
require_once 'func_ArchiveDownload.php';
! // begin display logic
if (isset($_GET["fh"])) {
DisplayFileHistory();
|