[phpcvsview-cvs-updates] phpcvsview config.php,1.2,1.3 cvsview.php,1.9,1.10 phpcvs.php,1.9,1.10
Status: Pre-Alpha
Brought to you by:
bcheesem
From: Brian C. <bch...@us...> - 2004-10-02 01:24:40
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19136 Modified Files: config.php cvsview.php phpcvs.php Log Message: Corrected changes for configuration file. Fixed retrieval of revision date/time in file history view. Index: config.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/config.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** config.php 2 Oct 2004 00:52:00 -0000 1.2 --- config.php 2 Oct 2004 01:24:29 -0000 1.3 *************** *** 12,20 **** **/ - global $CVSROOT, $PServer, $UserName, $Password, $HTMLTitle, $HTMLHeading, $HTMLTblHdBg, $HTMLTblCell1, $HTMLTblCell2; - // The CVSROOT path to access. For sourceforge you need the usual expansion // of the path based on the project name. ! $CVSROOT = "/cvsroot/p/ph/phpcvsview"; // The hostname (or IP Address) of the server providing the PServer services. --- 12,18 ---- **/ // The CVSROOT path to access. For sourceforge you need the usual expansion // of the path based on the project name. ! $CVSROOT = "/cvsroot/phpcvsview"; // The hostname (or IP Address) of the server providing the PServer services. Index: cvsview.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/cvsview.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** cvsview.php 2 Oct 2004 00:49:25 -0000 1.9 --- cvsview.php 2 Oct 2004 01:24:29 -0000 1.10 *************** *** 18,25 **** **/ include_once 'config.php'; ! /** ! * ! * End of phpCVSView Configuration Parameters. * **/ --- 18,26 ---- **/ include_once 'config.php'; ! ! global $CVSROOT, $PServer, $UserName, $Password, $HTMLTitle, $HTMLHeading, $HTMLTblHdBg, $HTMLTblCell1, $HTMLTblCell2; ! /** ! * * End of phpCVSView Configuration Parameters. * **/ *************** *** 207,214 **** } - $Output = print_r($CVSServer->FILES, true); - $Output2 = str_replace("\n", "<br>", $Output); - echo "<hr><h1>Files Present</h1><pre>$Output2</pre><br><hr>"; - $CVSServer->Disconnect(); --- 208,211 ---- *************** *** 257,260 **** --- 254,258 ---- foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { + print_r($Revision); $HREF = str_replace("//", "/", "$ScriptName?mp=$ModPath"); $DateTime = strtotime($Revision["date"]); *************** *** 263,267 **** echo " (<a href=\"$HREF&fv&dt=$DateTime\">view</a>)"; echo " (<a href=\"$HREF&fd&dt=$DateTime\">download</a>)"; ! echo " (<a href=\"$HREF&df&r1=".strtotime($Revision["Revision"]["date"])."&r2="; echo strtotime($CVSServer->FILES[0]["Revisions"][$Revision["PrevRevision"]]["date"])."\">diff to previous</a>)"; echo " (<a href=\"$HREF&fa=".$Revision["Revision"]."\">annotate</a>)<br>\n"; --- 261,265 ---- echo " (<a href=\"$HREF&fv&dt=$DateTime\">view</a>)"; echo " (<a href=\"$HREF&fd&dt=$DateTime\">download</a>)"; ! echo " (<a href=\"$HREF&df&r1=".strtotime($Revision["date"])."&r2="; echo strtotime($CVSServer->FILES[0]["Revisions"][$Revision["PrevRevision"]]["date"])."\">diff to previous</a>)"; echo " (<a href=\"$HREF&fa=".$Revision["Revision"]."\">annotate</a>)<br>\n"; Index: phpcvs.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/phpcvs.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** phpcvs.php 2 Oct 2004 00:32:08 -0000 1.9 --- phpcvs.php 2 Oct 2004 01:24:29 -0000 1.10 *************** *** 157,161 **** $this->CVS_PORT = 2401; $this->CVS_USERNAME = $UserName; ! $this->CVS_PASSWORD = Password; $this->SOCKET = new Net_Socket(); } --- 157,161 ---- $this->CVS_PORT = 2401; $this->CVS_USERNAME = $UserName; ! $this->CVS_PASSWORD = $Password; $this->SOCKET = new Net_Socket(); } |