Update of /cvsroot/phpcvsview/phpcvsview
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3109
Modified Files:
cvsview.php
Log Message:
Moved calculation of $ScriptPath to this file from func_DirListing.php.
Index: cvsview.php
===================================================================
RCS file: /cvsroot/phpcvsview/phpcvsview/cvsview.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** cvsview.php 3 Oct 2004 11:05:55 -0000 1.13
--- cvsview.php 4 Oct 2004 11:52:39 -0000 1.14
***************
*** 28,31 ****
--- 28,36 ----
$REPOS = "";
$ScriptName = $_SERVER['PHP_SELF'];
+ $ScriptPath = substr($ScriptName, 0, strrpos($ScriptName, "/"));
+ if ($ScriptPath == "") {
+ $ScriptPath = "/";
+ }
+
if (isset($_GET["tm"])) {
$ThemeName = $_GET["tm"];
|