phpcvsview-cvs-updates Mailing List for PHP CVS Repository Viewer (Page 9)
Status: Pre-Alpha
Brought to you by:
bcheesem
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
(1) |
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(7) |
Oct
(43) |
Nov
|
Dec
(19) |
2005 |
Jan
(28) |
Feb
(85) |
Mar
|
Apr
(16) |
May
(2) |
Jun
|
Jul
|
Aug
(3) |
Sep
(14) |
Oct
|
Nov
(16) |
Dec
|
2006 |
Jan
(9) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Sijis A. <si...@us...> - 2004-10-05 17:42:33
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27470 Modified Files: config.php Log Message: - changed configuration data from strings to arrays Index: config.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/config.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** config.php 2 Oct 2004 01:47:17 -0000 1.4 --- config.php 5 Oct 2004 17:41:47 -0000 1.5 *************** *** 12,36 **** **/ ! // 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. ! $PServer = "cvs.sourceforge.net"; // The username to pass to the PServer for authentication purposes. ! $UserName = "anonymous"; // The password associated with the username above for authentication process. ! $Password = ""; ! // The HTMLTitle and HTMLHeading are used purely for the generation of the // resultant web pages. ! $HTMLTitle = "phpCVSView Source Code Library"; ! $HTMLHeading = "phpCVSView Source Code Library"; ! $HTMLTblHdBg = "#CCCCCC"; ! $HTMLTblCell1 = "#FFFFFF"; ! $HTMLTblCell2 = "#CCCCEE"; ! ?> \ No newline at end of file --- 12,36 ---- **/ ! // The CVSROOT path to access. For sourceforge you need the usual expansion // of the path based on the project name. ! $config['cvsroot'] = "/cvsroot/phpcvsview"; // The hostname (or IP Address) of the server providing the PServer services. ! $config['pserver'] = "cvs.sourceforge.net"; // The username to pass to the PServer for authentication purposes. ! $config['username'] = "anonymous"; // The password associated with the username above for authentication process. ! $config['password'] = ""; ! // The HTMLTitle and HTMLHeading are used purely for the generation of the // resultant web pages. ! $config['html_title'] = "phpCVSView Source Code Library"; ! $config['html_header'] = "phpCVSView Source Code Library"; ! $config['html_tbl_head_bg'] = "#CCCCCC"; ! $config['html_tbl_cell_one'] = "#FFFFFF"; ! $config['html_tbl_cell_two'] = "#CCCCEE"; ! ?> |
From: Brian C. <bch...@us...> - 2004-10-04 11:52:49
|
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"]; |
From: Brian C. <bch...@us...> - 2004-10-04 11:51:43
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2875 Modified Files: func_DirListing.php Log Message: Moved XHTML code generation to the theme. Index: func_DirListing.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_DirListing.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** func_DirListing.php 3 Oct 2004 14:03:04 -0000 1.4 --- func_DirListing.php 4 Oct 2004 11:51:32 -0000 1.5 *************** *** 14,25 **** function DisplayDirListing() { global $ModPath, $CVSROOT, $PServer, $UserName, $Password, $ScriptName, ! $HTMLTitle, $HTMLHeading, $HTMLTblHdBg, $HTMLTblCell1, $HTMLTblCell2; - // Calculate the path from the $ScriptName variable. - $ScriptPath = substr($ScriptName, 0, strrpos($ScriptName, "/")); - if ($ScriptPath == "") { - $ScriptPath = "/"; - } - // Create our CVS connection object and set the required properties. $CVSServer = new CVS_PServer($CVSROOT, $PServer, $UserName, $Password); --- 14,19 ---- function DisplayDirListing() { global $ModPath, $CVSROOT, $PServer, $UserName, $Password, $ScriptName, ! $HTMLTitle, $HTMLHeading, $FolderIcon, $FileIcon, $RowClass; // Create our CVS connection object and set the required properties. $CVSServer = new CVS_PServer($CVSROOT, $PServer, $UserName, $Password); *************** *** 41,122 **** // Add the quick link navigation bar. ! $Dirs = explode("/", $ModPath); ! echo "<div class=\"quicknav\">Navigate to: <a href=\"$ScriptName\">Root</a> "; ! $intCount = 1; ! while($intCount < count($Dirs)-2){ ! echo "/ <a href=\"$ScriptName?mp=".ImplodeToPath($Dirs, "/", $intCount)."/\">".$Dirs[$intCount]."</a> "; ! $intCount++; ! } // while ! echo "/ ".$Dirs[$intCount]."</div>\n"; // Start the output for the table. ! echo "<hr />\n"; ! echo "<table>\n"; ! echo " <tr class=\"head\">\n <th> </th>\n <th>File</th>\n <th>Rev.</th>\n <th>Age</th>\n <th>Author</th>\n <th>Last Log Entry</th>\n </tr>\n"; ! $RowClass = "row1"; // Do we need the "Back" operation. if (strlen($ModPath) > 1) { ! $HREF = str_replace("//", "/", "$ScriptName?mp=".substr($ModPath, 0, strrpos(substr($ModPath, 0, -1), "/"))."/"); ! echo " <tr class=\"$RowClass\">\n"; ! echo " <td align=\"center\"><a href=\"$HREF\"><img alt=\"parent\" src=\"$ScriptPath/images/parent.png\" /></a></td>\n"; ! echo " <td><a href=\"$HREF\">Previous Level</a></td>\n"; ! echo " <td> </td>\n"; ! echo " <td> </td>\n"; ! echo " <td> </td>\n"; ! echo " <td> </td>\n"; ! echo " </tr>\n"; ! $RowClass = "row2"; } ! // Process each folder and display a single row in a table. ! foreach ($CVSServer->FOLDERS as $Folder) ! { ! $HREF = str_replace("//", "/", "$ScriptName?mp=$ModPath/".$Folder["Name"]."/"); ! echo " <tr class=\"$RowClass\">\n"; ! echo " <td align=\"center\"><a href=\"$HREF\"><img alt=\"DIR\" src=\"$ScriptPath/images/folder.png\" /></a></td>\n"; ! echo " <td><a href=\"$HREF\">".$Folder["Name"]."</a></td>\n"; ! echo " <td> </td>\n"; ! echo " <td> </td>\n"; ! echo " <td> </td>\n"; ! echo " <td> </td>\n"; ! echo " </tr>\n"; ! if ($RowClass == "row1") { ! $RowClass = "row2"; ! } ! else ! { ! $RowClass = "row1"; ! } ! } ! foreach ($CVSServer->FILES as $File) ! { ! $HREF = str_replace("//", "/", "$ScriptName?mp=$ModPath/".$File["Name"]); ! $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); ! $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo " <tr class=\"$RowClass\" valign=\"top\">\n"; ! echo " <td align=\"center\"><a href=\"$HREF&fh\"><img alt=\"FILE\" src=\"$ScriptPath/images/file.png\" /></a></td>\n"; ! echo " <td><a href=\"$HREF&fh\">".$File["Name"]."</a></td>\n"; ! echo " <td align=\"center\"><a href=\"$HREF&fv&dt=$DateTime\">".$File["Head"]."</a></td>\n"; ! echo " <td align=\"center\">".$AGE." ago</td>\n"; ! echo " <td align=\"center\">".$File["Revisions"][$File["Head"]]["author"]."</td>\n"; ! echo " <td>".str_replace("\n", "<br />", $File["Revisions"][$File["Head"]]["LogMessage"])."</td>\n"; ! echo " </tr>\n"; ! if ($RowClass == "row1") { ! $RowClass = "row2"; ! } ! else ! { ! $RowClass = "row1"; ! } ! } ! ! $CVSServer->Disconnect(); // Close off our HTML table. ! echo " </table>\n"; ! echo "<hr />"; } else { // Else of if ($Response !== true) echo "Connection Failed."; --- 35,58 ---- // Add the quick link navigation bar. ! echo GetQuickLinkBar($ModPath); // Start the output for the table. ! startDirList(); // Do we need the "Back" operation. if (strlen($ModPath) > 1) { ! addParentDirectory($ScriptName, $ScriptPath, $ModPath); } ! // Display the folders within the table. ! addFolders($ModPath, $CVSServer->FOLDERS); ! // Display the files within the table. ! addFiles($ModPath, $CVSServer->FILES); // Close off our HTML table. ! endDirList(); + $CVSServer->Disconnect(); } else { // Else of if ($Response !== true) echo "Connection Failed."; |
From: Brian C. <bch...@us...> - 2004-10-04 11:50:53
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2621 Modified Files: func_FileAnnotation.php Log Message: Major changes to XHTML generation logic. Index: func_FileAnnotation.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileAnnotation.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** func_FileAnnotation.php 3 Oct 2004 14:03:04 -0000 1.4 --- func_FileAnnotation.php 4 Oct 2004 11:50:31 -0000 1.5 *************** *** 50,64 **** $search = array('<', '>', '\n'); $replace = array("<", ">", ""); foreach ($CVSServer->ANNOTATION as $Annotation) { ! echo "<tr class=\"$RowClass\"><td><pre>".$Annotation["Revision"]."</pre></td><td><pre>".$Annotation["Author"]; ! echo "</pre></td><td><pre>".$Annotation["Date"]."</pre></td><td><pre>".str_replace($search, $replace, $Annotation["Line"])."</pre></td></tr>\n"; ! if ($RowClass == "row1") { ! $RowClass = "row2"; } else { ! $RowClass = "row1"; } } echo "</table><hr />\n"; --- 50,80 ---- $search = array('<', '>', '\n'); $replace = array("<", ">", ""); + $PrevRev = ""; + $FirstLine = true; foreach ($CVSServer->ANNOTATION as $Annotation) { ! if (strcmp($PrevRev, $Annotation["Revision"]) != 0) { ! if (!$FirstLine) { ! "</pre></td></tr>\n"; ! } ! else ! { ! $FirstLine = false; ! } ! echo "<tr class=\"$RowClass\"><td>".$Annotation["Revision"]."</td><td>".$Annotation["Author"]; ! echo "</td><td>".$Annotation["Date"]."</td><td><pre>".str_replace($search, $replace, $Annotation["Line"]); ! if ($RowClass == "row1") { ! $RowClass = "row2"; ! } ! else ! { ! $RowClass = "row1"; ! } } else { ! echo "\n".str_replace($search, $replace, $Annotation["Line"]); } + $PrevRev = $Annotation["Revision"]; } echo "</table><hr />\n"; |
From: Brian C. <bch...@us...> - 2004-10-04 11:48:23
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2030 Modified Files: func_FileHistory.php Log Message: Changed "History for : " line to the Quick Link bar. Index: func_FileHistory.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileHistory.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** func_FileHistory.php 3 Oct 2004 14:03:04 -0000 1.3 --- func_FileHistory.php 4 Oct 2004 11:48:12 -0000 1.4 *************** *** 43,47 **** $Files = $CVSServer->FILES; ! echo "<h1>History for ".$ModPath."</h1>\n"; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { --- 43,49 ---- $Files = $CVSServer->FILES; ! // Add the quick link navigation bar. ! echo GetQuickLinkBar($ModPath, "Revision History for: ", false, true, ""); ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { |
From: Brian C. <bch...@us...> - 2004-10-04 11:46:52
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1710 Modified Files: func_FileView.php Log Message: Moved the quicklink bar generation to the theme.php. Removed highlighting for php files as it doesn't support themes. will code our own syntax highlighter later in the project. Index: func_FileView.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileView.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** func_FileView.php 3 Oct 2004 14:03:04 -0000 1.3 --- func_FileView.php 4 Oct 2004 11:46:37 -0000 1.4 *************** *** 46,84 **** } ! // Start the output for the file. ! $Dirs = explode("/", $ModPath); ! echo "<div class=\"quicknav\">Navigate to: <a href=\"$ScriptName\">Root</a> "; ! $intCount = 1; ! while($intCount < count($Dirs)){ ! echo "/ <a href=\"$ScriptName?mp=".ImplodeToPath($Dirs, "/", $intCount); ! if ($intCount == (count($Dirs) - 1)) { ! echo "&fh#rd$Revision"; ! } ! else ! { ! echo "/"; ! } ! echo "\">".$Dirs[$intCount]."</a> "; ! $intCount++; ! } // while ! echo "</div>\n"; ! // Display the file contents. echo "<hr />\n"; ! if (strpos($File, ".php")) { ! $search = array('\t'); ! $replace = array(" "); ! $Content = str_replace($search, $replace, $CVSServer->FILECONTENTS); ! echo highlight_string($Content, true); ! } ! else ! { ! $search = array('<', '>', '\n', '\t'); ! $replace = array("<", ">", "", " "); ! echo "<pre>\n"; ! echo str_replace($search, $replace, $CVSServer->FILECONTENTS)."\n"; ! echo "</pre>\n"; ! } // Close the connection. --- 46,59 ---- } ! // Add the quick link navigation bar. ! echo GetQuickLinkBar($ModPath, "Code view for: ", true, true, $Revision); // Display the file contents. echo "<hr />\n"; ! $search = array('<', '>', '\n', '\t'); ! $replace = array("<", ">", "", " "); ! echo "<pre>\n"; ! echo str_replace($search, $replace, $CVSServer->FILECONTENTS)."\n"; ! echo "</pre>\n"; // Close the connection. |
From: Brian C. <bch...@us...> - 2004-10-04 11:44:14
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1319 Modified Files: phpcvs.php Log Message: Class modified to use explode rather than strtok where possible. Index: phpcvs.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/phpcvs.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** phpcvs.php 4 Oct 2004 01:06:30 -0000 1.14 --- phpcvs.php 4 Oct 2004 11:43:54 -0000 1.15 *************** *** 109,121 **** function processValidRequests($LineOfText) { ! // Start tokenising the list of Valid Requests. ! $Token = strtok($LineOfText, " "); ! // Skip the first token, as it is the response identifier. ! $Token = strtok(" "); ! while($Token !== false){ ! $this->ALLOWED_REQUESTS[$Token] = true; ! $Token = strtok(" "); ! } // while return true; } --- 109,121 ---- function processValidRequests($LineOfText) { ! // Convert string to array ! $Token = explode(" ", $LineOfText); // Skip the first token, as it is the response identifier. ! array_shift($Token); ! ! // set values for allowed responses ! for($i = 0; $i <= sizeof($Token)-1; $i++){ ! $this->ALLOWED_REQUESTS[$Token[$i]] = true; ! } return true; } *************** *** 419,425 **** while($KeepGoing){ $ResponseLine = $this->SOCKET->readLine(); ! $Response = strtok($ResponseLine, " "); ! if ($Response != "") { ! $Func = $this->ALLOWED_RESPONSES[$Response]; if (method_exists($this, $Func)) { $KeepGoing = $this->$Func($ResponseLine); --- 419,425 ---- while($KeepGoing){ $ResponseLine = $this->SOCKET->readLine(); ! $Response = explode(" ", $ResponseLine); ! if ($Response[0] != "") { ! $Func = $this->ALLOWED_RESPONSES[$Response[0]]; if (method_exists($this, $Func)) { $KeepGoing = $this->$Func($ResponseLine); *************** *** 1060,1063 **** --- 1060,1079 ---- return true; } + + function debug($foo, $var = ''){ + if($var == '' || $var == 'print_r'){ + echo '<pre>'; + echo '-- beg --<br />'; + echo print_r($foo); + echo '</pre>'; + } + else{ + echo '<pre>'; + echo var_dump($foo); + echo '-- end --<br />'; + echo '</pre>'; + } + } + } |
From: Brian C. <bch...@us...> - 2004-10-04 11:40:29
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv635 Modified Files: theme.css theme.php Log Message: Theme support enhanced with code to provide the directory listing. Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** theme.php 3 Oct 2004 14:03:04 -0000 1.2 --- theme.php 4 Oct 2004 11:40:17 -0000 1.3 *************** *** 11,14 **** --- 11,18 ---- * @copyright 2003-2004 Brian A Cheeseman **/ + + $FolderIcon = "Themes/Default/Images/folder.gif"; + $FileIcon = "Themes/Default/Images/file.gif"; + $ParentIcon = "Themes/Default/Images/parent.gif"; function GetPageHeader($Title="", $Heading="") { *************** *** 44,46 **** --- 48,169 ---- } // End of function GetPageFooter() + function GetQuickLinkBar($ModPath = "/", $Prefix = "Navigate to: ", $LinkLast = false, $LastIsFile = false, $Revision = "") + { + // Add the quick link navigation bar. + $Dirs = explode("/", $ModPath); + $QLOut = "<div class=\"quicknav\">$Prefix<a href=\"$ScriptName\">Root</a> "; + $intCount = 1; + $OffSet = 2; + if ($LastIsFile) { + $OffSet = 1; + } + while($intCount < count($Dirs)-$OffSet){ + if (($intCount != count($Dirs)-$OffSet)) { + $QLOut .= "/ <a href=\"$ScriptName?mp=".ImplodeToPath($Dirs, "/", $intCount)."/\">".$Dirs[$intCount]."</a> "; + } + else + { + $QLOut .= "/ ".$Dirs[$intCount]." "; + } + $intCount++; + } // while + $QLOut .= "/ "; + if ($LinkLast) { + $QLOut .= "<a href=\"$ScriptName?mp=".ImplodeToPath($Dirs, "/", $intCount); + if ($LastIsFile) { + $QLOut .= "&fh#rd$Revision\">"; + } + else + { + $QLOut .= "/"; + } + } + $QLOut .= $Dirs[$intCount]; + if ($LinkLast) { + $QLOut .= "</a>"; + } + $QLOut .= "</div>\n"; + return $QLOut; + } + + function startDirList() + { + global $RowClass; + echo "<hr />\n"; + echo "<table>\n"; + echo " <tr class=\"head\">\n <th> </th>\n <th>File</th>\n <th>Rev.</th>\n <th>Age</th>\n <th>Author</th>\n <th>Last Log Entry</th>\n </tr>\n"; + $RowClass = "row1"; + } + + function endDirList() + { + echo " </table>\n"; + echo "<hr />"; + } + + function addParentDirectory($ModPath) + { + global $RowClass, $ParentIcon, $ScriptName, $ScriptPath; + $HREF = str_replace("//", "/", "$ScriptName?mp=".substr($ModPath, 0, strrpos(substr($ModPath, 0, -1), "/"))."/"); + echo " <tr class=\"$RowClass\">\n"; + echo " <td align=\"center\"><a href=\"$HREF\"><img alt=\"parent\" src=\"$ScriptPath/$ParentIcon\" /></a></td>\n"; + echo " <td><a href=\"$HREF\">Up one folder</a></td>\n"; + echo " <td> </td>\n"; + echo " <td> </td>\n"; + echo " <td> </td>\n"; + echo " <td> </td>\n"; + echo " </tr>\n"; + $RowClass = "row2"; + } + + function addFolders($ModPath, $Folders) + { + global $RowClass, $FolderIcon, $ScriptName, $ScriptPath; + foreach ($Folders as $Folder) + { + $HREF = str_replace("//", "/", "$ScriptName?mp=$ModPath/".$Folder["Name"]."/"); + echo " <tr class=\"$RowClass\">\n"; + echo " <td align=\"center\"><a href=\"$HREF\"><img alt=\"DIR\" src=\"$ScriptPath/$FolderIcon\" /></a></td>\n"; + echo " <td><a href=\"$HREF\">".$Folder["Name"]."</a></td>\n"; + echo " <td> </td>\n"; + echo " <td> </td>\n"; + echo " <td> </td>\n"; + echo " <td> </td>\n"; + echo " </tr>\n"; + if ($RowClass == "row1") { + $RowClass = "row2"; + } + else + { + $RowClass = "row1"; + } + } + } + + function addFiles($ModPath, $Files) + { + global $RowClass, $FileIcon, $ScriptName, $ScriptPath; + foreach ($Files as $File) + { + $HREF = str_replace("//", "/", "$ScriptName?mp=$ModPath/".$File["Name"]); + $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); + $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); + echo " <tr class=\"$RowClass\" valign=\"top\">\n"; + echo " <td align=\"center\"><a href=\"$HREF&fh\"><img alt=\"FILE\" src=\"$ScriptPath/$FileIcon\" /></a></td>\n"; + echo " <td><a href=\"$HREF&fh\">".$File["Name"]."</a></td>\n"; + echo " <td align=\"center\"><a href=\"$HREF&fv&dt=$DateTime\">".$File["Head"]."</a></td>\n"; + echo " <td align=\"center\">".$AGE." ago</td>\n"; + echo " <td align=\"center\">".$File["Revisions"][$File["Head"]]["author"]."</td>\n"; + echo " <td>".str_replace("\n", "<br />", $File["Revisions"][$File["Head"]]["LogMessage"])."</td>\n"; + echo " </tr>\n"; + if ($RowClass == "row1") { + $RowClass = "row2"; + } + else + { + $RowClass = "row1"; + } + } + } + ?> \ No newline at end of file Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.css,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** theme.css 3 Oct 2004 14:03:04 -0000 1.2 --- theme.css 4 Oct 2004 11:40:17 -0000 1.3 *************** *** 8,13 **** font-family: Verdana, arial, sans-serif; font-size: 10pt; ! background-color: #ffffff; ! color: #000000; } img --- 8,13 ---- font-family: Verdana, arial, sans-serif; font-size: 10pt; ! background-color: #000000; ! color: #ffff99; } img *************** *** 17,21 **** a:link,a:active,a:visited { ! color: #6666ff; text-decoration: none; font-weight: bold; --- 17,21 ---- a:link,a:active,a:visited { ! color: #9999ff; text-decoration: none; font-weight: bold; *************** *** 23,27 **** a:hover { ! color: #9966ff; text-decoration: underline; font-weight: bold; --- 23,27 ---- a:hover { ! color: #ff99ff; text-decoration: underline; font-weight: bold; *************** *** 29,33 **** .head { ! background-color: #cccccc; } .footer --- 29,41 ---- .head { ! background-color: #666677; ! } ! .row1 ! { ! background-color: #000011; ! } ! .row2 ! { ! background-color: #222233; } .footer *************** *** 38,43 **** .quicknav { ! font-size: 10pt; text-align: left; } .title --- 46,52 ---- .quicknav { ! font-size: 8pt; text-align: left; + font-weight: bold; } .title *************** *** 46,62 **** font-size: 18pt; font-weight: bold; ! } ! .row1 ! { ! background-color: #ffffff; ! } ! .row2 ! { ! background-color: #ddddff; } table { ! /* margin:0px 0px 0px 0px; */ ! font-size: 10pt; border: 0px none; width: 100%; --- 55,64 ---- font-size: 18pt; font-weight: bold; ! font-style: italic; ! color: white; } table { ! font-size: 8pt; border: 0px none; width: 100%; *************** *** 67,70 **** { padding: 3px; - white-space: nowrap; } --- 69,71 ---- |
From: Brian C. <bch...@us...> - 2004-10-04 11:39:04
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default/Images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv356 Added Files: file.gif folder.gif parent.gif Log Message: Added images to this theme. --- NEW FILE: folder.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: file.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: parent.gif --- (This appears to be a binary file; contents omitted.) |
From: Brian C. <bch...@us...> - 2004-10-04 04:24:48
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default/Images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27014/Images Log Message: Directory /cvsroot/phpcvsview/phpcvsview/Themes/Default/Images added to the repository |
From: Brian C. <bch...@us...> - 2004-10-04 01:06:51
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23368 Modified Files: phpcvs.php Log Message: Altered CVS_PServer::sendExportFile() method to work with the newer versions of PHP. See doco on fread on the php site. Index: phpcvs.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/phpcvs.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** phpcvs.php 2 Oct 2004 08:42:26 -0000 1.13 --- phpcvs.php 4 Oct 2004 01:06:30 -0000 1.14 *************** *** 677,681 **** if ($this->FINAL_RESPONSE) { $ContentLength = $this->SOCKET->readLine(); ! $this->FILECONTENTS = $this->SOCKET->read($ContentLength); $ReadLine = $this->SOCKET->readLine(); return true; --- 677,686 ---- if ($this->FINAL_RESPONSE) { $ContentLength = $this->SOCKET->readLine(); ! $CharsToGo = $ContentLength; ! while($CharsToGo > 0){ ! $Buffer = $this->SOCKET->read($CharsToGo); ! $this->FILECONTENTS .= $Buffer; ! $CharsToGo -= strlen($Buffer); ! } // while $ReadLine = $this->SOCKET->readLine(); return true; |
From: Brian C. <bch...@us...> - 2004-10-03 14:09:15
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31668 Modified Files: func_DirListing.php func_FileAnnotation.php func_FileHistory.php func_FileView.php Log Message: Changed HTML output to be compliant with XHTML 1.1 spec. Improved theme support. Index: func_FileView.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileView.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** func_FileView.php 3 Oct 2004 06:30:13 -0000 1.2 --- func_FileView.php 3 Oct 2004 14:03:04 -0000 1.3 *************** *** 48,57 **** // Start the output for the file. $Dirs = explode("/", $ModPath); ! echo "Navigate to: <a href=\"$ScriptName\">Root</a> "; $intCount = 1; while($intCount < count($Dirs)){ echo "/ <a href=\"$ScriptName?mp=".ImplodeToPath($Dirs, "/", $intCount); if ($intCount == (count($Dirs) - 1)) { ! echo "&fh#$Revision"; } else --- 48,57 ---- // Start the output for the file. $Dirs = explode("/", $ModPath); ! echo "<div class=\"quicknav\">Navigate to: <a href=\"$ScriptName\">Root</a> "; $intCount = 1; while($intCount < count($Dirs)){ echo "/ <a href=\"$ScriptName?mp=".ImplodeToPath($Dirs, "/", $intCount); if ($intCount == (count($Dirs) - 1)) { ! echo "&fh#rd$Revision"; } else *************** *** 62,70 **** $intCount++; } // while ! echo "<br>\n"; // Display the file contents. ! echo "<hr>\n"; if (strpos($File, ".php")) { $search = array('\t'); --- 62,70 ---- $intCount++; } // while ! echo "</div>\n"; // Display the file contents. ! echo "<hr />\n"; if (strpos($File, ".php")) { $search = array('\t'); *************** *** 89,92 **** --- 89,93 ---- echo "ERROR: Could not connect to the PServer.<br>\n"; } + echo GetPageFooter(); } Index: func_FileAnnotation.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileAnnotation.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** func_FileAnnotation.php 2 Oct 2004 05:32:56 -0000 1.3 --- func_FileAnnotation.php 3 Oct 2004 14:03:04 -0000 1.4 *************** *** 44,50 **** // Start the output for the table. ! echo "<hr>\n"; echo "<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\">\n"; ! $BGColor = $HTMLTblCell1; $search = array('<', '>', '\n'); --- 44,50 ---- // Start the output for the table. ! echo "<hr />\n"; echo "<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\">\n"; ! $RowClass = "row1"; $search = array('<', '>', '\n'); *************** *** 52,66 **** foreach ($CVSServer->ANNOTATION as $Annotation) { ! echo "<tr bgcolor=\"$BGColor\"><td nowrap><pre>".$Annotation["Revision"]."</pre></td><td nowrap><pre>".$Annotation["Author"]; ! echo "</pre></td><td nowrap><pre>".$Annotation["Date"]."</pre></td><td nowrap><pre>".str_replace($search, $replace, $Annotation["Line"])."</pre></td></tr>\n"; ! if ($BGColor == $HTMLTblCell1) { ! $BGColor = $HTMLTblCell2; } else { ! $BGColor = $HTMLTblCell1; } } ! echo "</table>\n"; // Close the connection. --- 52,66 ---- foreach ($CVSServer->ANNOTATION as $Annotation) { ! echo "<tr class=\"$RowClass\"><td><pre>".$Annotation["Revision"]."</pre></td><td><pre>".$Annotation["Author"]; ! echo "</pre></td><td><pre>".$Annotation["Date"]."</pre></td><td><pre>".str_replace($search, $replace, $Annotation["Line"])."</pre></td></tr>\n"; ! if ($RowClass == "row1") { ! $RowClass = "row2"; } else { ! $RowClass = "row1"; } } ! echo "</table><hr />\n"; // Close the connection. *************** *** 69,74 **** else { ! echo "ERROR: Could not connect to the PServer.<br>\n"; } } --- 69,75 ---- else { ! echo "ERROR: Could not connect to the PServer.<br />\n"; } + echo GetPageFooter(); } Index: func_DirListing.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_DirListing.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** func_DirListing.php 2 Oct 2004 04:52:10 -0000 1.3 --- func_DirListing.php 3 Oct 2004 14:03:04 -0000 1.4 *************** *** 42,46 **** // Add the quick link navigation bar. $Dirs = explode("/", $ModPath); ! echo "Navigate to: <a href=\"$ScriptName\">Root</a> "; $intCount = 1; while($intCount < count($Dirs)-2){ --- 42,46 ---- // Add the quick link navigation bar. $Dirs = explode("/", $ModPath); ! echo "<div class=\"quicknav\">Navigate to: <a href=\"$ScriptName\">Root</a> "; $intCount = 1; while($intCount < count($Dirs)-2){ *************** *** 48,64 **** $intCount++; } // while ! echo "/ ".$Dirs[$intCount]."<br>\n"; // Start the output for the table. ! echo "<hr>\n"; ! echo "<table border=\"0\" cellpadding=\"2\" cellspacing=\"1\" width=\"100%\">\n"; ! echo " <tr bgcolor=\"$HTMLTblHdBg\">\n <th width=\"30\"> </th>\n <th>File</th>\n <th>Rev.</th>\n <th>Age</th>\n <th>Author</th>\n <th>Last Log Entry</th>\n </tr>\n"; ! $BGColor = $HTMLTblCell1; // Do we need the "Back" operation. if (strlen($ModPath) > 1) { $HREF = str_replace("//", "/", "$ScriptName?mp=".substr($ModPath, 0, strrpos(substr($ModPath, 0, -1), "/"))."/"); ! echo " <tr bgcolor=\"$BGColor\">\n"; ! echo " <td align=\"center\" valign=\"center\"><a href=\"$HREF\"><img border=\"0\" src=\"$ScriptPath/images/parent.png\"></a></td>\n"; echo " <td><a href=\"$HREF\">Previous Level</a></td>\n"; echo " <td> </td>\n"; --- 48,64 ---- $intCount++; } // while ! echo "/ ".$Dirs[$intCount]."</div>\n"; // Start the output for the table. ! echo "<hr />\n"; ! echo "<table>\n"; ! echo " <tr class=\"head\">\n <th> </th>\n <th>File</th>\n <th>Rev.</th>\n <th>Age</th>\n <th>Author</th>\n <th>Last Log Entry</th>\n </tr>\n"; ! $RowClass = "row1"; // Do we need the "Back" operation. if (strlen($ModPath) > 1) { $HREF = str_replace("//", "/", "$ScriptName?mp=".substr($ModPath, 0, strrpos(substr($ModPath, 0, -1), "/"))."/"); ! echo " <tr class=\"$RowClass\">\n"; ! echo " <td align=\"center\"><a href=\"$HREF\"><img alt=\"parent\" src=\"$ScriptPath/images/parent.png\" /></a></td>\n"; echo " <td><a href=\"$HREF\">Previous Level</a></td>\n"; echo " <td> </td>\n"; *************** *** 67,71 **** echo " <td> </td>\n"; echo " </tr>\n"; ! $BGColor = $HTMLTblCell2; } --- 67,71 ---- echo " <td> </td>\n"; echo " </tr>\n"; ! $RowClass = "row2"; } *************** *** 74,79 **** { $HREF = str_replace("//", "/", "$ScriptName?mp=$ModPath/".$Folder["Name"]."/"); ! echo " <tr bgcolor=\"$BGColor\">\n"; ! echo " <td align=\"center\" valign=\"center\"><a href=\"$HREF\"><img border=\"0\" src=\"$ScriptPath/images/folder.png\"></a></td>\n"; echo " <td><a href=\"$HREF\">".$Folder["Name"]."</a></td>\n"; echo " <td> </td>\n"; --- 74,79 ---- { $HREF = str_replace("//", "/", "$ScriptName?mp=$ModPath/".$Folder["Name"]."/"); ! echo " <tr class=\"$RowClass\">\n"; ! echo " <td align=\"center\"><a href=\"$HREF\"><img alt=\"DIR\" src=\"$ScriptPath/images/folder.png\" /></a></td>\n"; echo " <td><a href=\"$HREF\">".$Folder["Name"]."</a></td>\n"; echo " <td> </td>\n"; *************** *** 82,91 **** echo " <td> </td>\n"; echo " </tr>\n"; ! if ($BGColor == $HTMLTblCell1) { ! $BGColor = $HTMLTblCell2; } else { ! $BGColor = $HTMLTblCell1; } } --- 82,91 ---- echo " <td> </td>\n"; echo " </tr>\n"; ! if ($RowClass == "row1") { ! $RowClass = "row2"; } else { ! $RowClass = "row1"; } } *************** *** 96,113 **** $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo " <tr bgcolor=\"$BGColor\" valign=\"top\">\n"; ! echo " <td align=\"center\" valign=\"center\"><a href=\"$HREF&fh\"><img border=\"0\" src=\"$ScriptPath/images/file.png\"></a></td>\n"; ! echo " <td><a href=\"$HREF&fh\">".$File["Name"]."</a></td>\n"; ! echo " <td align=\"center\"><a href=\"$HREF&fv&dt=$DateTime\">".$File["Head"]."</td>\n"; echo " <td align=\"center\">".$AGE." ago</td>\n"; echo " <td align=\"center\">".$File["Revisions"][$File["Head"]]["author"]."</td>\n"; ! echo " <td>".str_replace("\n", "<br>", $File["Revisions"][$File["Head"]]["LogMessage"])."</td>\n"; echo " </tr>\n"; ! if ($BGColor == $HTMLTblCell1) { ! $BGColor = $HTMLTblCell2; } else { ! $BGColor = $HTMLTblCell1; } } --- 96,113 ---- $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo " <tr class=\"$RowClass\" valign=\"top\">\n"; ! echo " <td align=\"center\"><a href=\"$HREF&fh\"><img alt=\"FILE\" src=\"$ScriptPath/images/file.png\" /></a></td>\n"; ! echo " <td><a href=\"$HREF&fh\">".$File["Name"]."</a></td>\n"; ! echo " <td align=\"center\"><a href=\"$HREF&fv&dt=$DateTime\">".$File["Head"]."</a></td>\n"; echo " <td align=\"center\">".$AGE." ago</td>\n"; echo " <td align=\"center\">".$File["Revisions"][$File["Head"]]["author"]."</td>\n"; ! echo " <td>".str_replace("\n", "<br />", $File["Revisions"][$File["Head"]]["LogMessage"])."</td>\n"; echo " </tr>\n"; ! if ($RowClass == "row1") { ! $RowClass = "row2"; } else { ! $RowClass = "row1"; } } *************** *** 117,121 **** // Close off our HTML table. echo " </table>\n"; ! echo "<hr>"; } else { // Else of if ($Response !== true) --- 117,121 ---- // Close off our HTML table. echo " </table>\n"; ! echo "<hr />"; } else { // Else of if ($Response !== true) Index: func_FileHistory.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileHistory.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** func_FileHistory.php 2 Oct 2004 04:52:10 -0000 1.2 --- func_FileHistory.php 3 Oct 2004 14:03:04 -0000 1.3 *************** *** 48,71 **** $HREF = str_replace("//", "/", "$ScriptName?mp=$ModPath"); $DateTime = strtotime($Revision["date"]); ! echo "<a name=\"$DateTime\"><hr>\n"; echo "<b>Revision</b> ".$Revision["Revision"]." -"; ! 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"; ! echo "<b>Last Checkin:</b> ".strftime("%A %d %b %Y %T -0000", strtotime($Revision["date"]))." (".CalculateDateDiff(strtotime($Revision["date"]), strtotime(gmdate("M d Y H:i:s")))." ago)<br>\n"; ! echo "<b>Branch:</b> ".$Revision["Branches"]."<br>\n"; ! echo "<b>Date:</b> ".strftime("%B %d, %Y", $DateTime)."<br>\n"; ! echo "<b>Time:</b> ".strftime("%H:%M:%S", $DateTime)."<br>\n"; ! echo "<b>Author:</b> ".$Revision["author"]."<br>\n"; ! echo "<b>State:</b> ".$Revision["state"]."<br>\n"; if ($Revision["PrevRevision"] != "") { ! echo "<b>Changes since ".$Revision["PrevRevision"].":</b> ".$Revision["lines"]."<br>"; } ! echo "<b>Log Message:</b><pre>".$Revision["LogMessage"]."</pre>\n"; } ! echo "<hr>\n"; $CVSServer->Disconnect(); --- 48,71 ---- $HREF = str_replace("//", "/", "$ScriptName?mp=$ModPath"); $DateTime = strtotime($Revision["date"]); ! echo "<hr /><p><a id=\"rd$DateTime\" />\n"; echo "<b>Revision</b> ".$Revision["Revision"]." -"; ! 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"; ! echo "<b>Last Checkin:</b> ".strftime("%A %d %b %Y %T -0000", strtotime($Revision["date"]))." (".CalculateDateDiff(strtotime($Revision["date"]), strtotime(gmdate("M d Y H:i:s")))." ago)<br />\n"; ! echo "<b>Branch:</b> ".$Revision["Branches"]."<br />\n"; ! echo "<b>Date:</b> ".strftime("%B %d, %Y", $DateTime)."<br />\n"; ! echo "<b>Time:</b> ".strftime("%H:%M:%S", $DateTime)."<br />\n"; ! echo "<b>Author:</b> ".$Revision["author"]."<br />\n"; ! echo "<b>State:</b> ".$Revision["state"]."<br />\n"; if ($Revision["PrevRevision"] != "") { ! echo "<b>Changes since ".$Revision["PrevRevision"].":</b> ".$Revision["lines"]."<br />"; } ! echo "<b>Log Message:</b></p><pre>".$Revision["LogMessage"]."</pre>\n"; } ! echo "<hr />\n"; $CVSServer->Disconnect(); |
From: Brian C. <bch...@us...> - 2004-10-03 14:05:04
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31668/Themes/Default Modified Files: theme.css theme.php Log Message: Changed HTML output to be compliant with XHTML 1.1 spec. Improved theme support. Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** theme.php 3 Oct 2004 11:00:21 -0000 1.1 --- theme.php 3 Oct 2004 14:03:04 -0000 1.2 *************** *** 15,22 **** global $StartTime; $StartTime = microtime(); ! $PageHead = "<html>"; if ($Title != "") { $PageHead .= "<head><title>$Title</title>"; ! $PageHead .= "<link rel=StyleSheet href=\"Themes/Default/theme.css\" type=\"text/css\">"; $PageHead .= "</head>"; } // End of if ($Title != "") --- 15,23 ---- global $StartTime; $StartTime = microtime(); ! $PageHead = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">"; ! $PageHead .= "<html>"; if ($Title != "") { $PageHead .= "<head><title>$Title</title>"; ! $PageHead .= "<link href=\"Themes/Default/theme.css\" rel=\"stylesheet\" type=\"text/css\" />"; $PageHead .= "</head>"; } // End of if ($Title != "") *************** *** 25,32 **** $PageHead .= "<div class=\"title\">$Heading</div>"; } // End of if ($Header != "") ! $PageHead .= "Welcome to our CVS Repository viewer. This page has been dynamically"; $PageHead .= " created with '<a href=\"http://phpcvsview.sourceforge.net/\">phpCVS"; $PageHead .= "Viewer</a>' created by <a href=\"mailto:bch...@us..."; ! $PageHead .= "\">Brian Cheeseman</a>. <br><br>Please feel free to browse our source code.<br><br>"; return $PageHead; } // End of function GetPageHeader($Title="", $Heading="") --- 26,33 ---- $PageHead .= "<div class=\"title\">$Heading</div>"; } // End of if ($Header != "") ! $PageHead .= "<p>Welcome to our CVS Repository viewer. This page has been dynamically"; $PageHead .= " created with '<a href=\"http://phpcvsview.sourceforge.net/\">phpCVS"; $PageHead .= "Viewer</a>' created by <a href=\"mailto:bch...@us..."; ! $PageHead .= "\">Brian Cheeseman</a>.</p><p>Please feel free to browse our source code.</p>"; return $PageHead; } // End of function GetPageHeader($Title="", $Heading="") *************** *** 35,39 **** global $StartTime; $EndTime = microtime(); ! $PageFoot = "<div class=\"footer\">This page was created by <a href=\"http://phpcvsview.sourceforge.net/\">phpCVSView</a> in ".number_format(microtime_diff($StartTime, $EndTime), 3)." seconds.</div>"; $PageFoot .= "</body></html>"; return $PageFoot; --- 36,43 ---- global $StartTime; $EndTime = microtime(); ! $PageFoot = "<div class=\"footer\">This page was created by <a href=\"http://phpcvsview.sourceforge.net/\">phpCVSView</a> in ".number_format(microtime_diff($StartTime, $EndTime), 3)." seconds."; ! $PageFoot .= "<p><a href=\"http://validator.w3.org/check?uri=referer\"><img src=\"http://www.w3.org/Icons/valid-xhtml11\" alt=\"Valid XHTML 1.1!\" height=\"31\" width=\"88\" /></a> "; ! $PageFoot .= "<a href=\"http://jigsaw.w3.org/css-validator/check/referer\"><img style=\"border:0;width:88px;height:31px\" src=\"http://jigsaw.w3.org/css-validator/images/vcss\" alt=\"Valid CSS!\" /></a></p>"; ! $PageFoot .= "</div>"; $PageFoot .= "</body></html>"; return $PageFoot; Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.css,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** theme.css 3 Oct 2004 11:00:21 -0000 1.1 --- theme.css 3 Oct 2004 14:03:04 -0000 1.2 *************** *** 1,8 **** body { ! margin:3px 3px 3px 3px; padding:0px; ! font-family: Tahoma, arial, sans-serif; ! font-size: 12pt; } .footer --- 1,33 ---- body { ! margin-top: 3px; ! margin-bottom: 3px; ! margin-left: 3px; ! margin-right: 3px; padding:0px; ! font-family: Verdana, arial, sans-serif; ! font-size: 10pt; ! background-color: #ffffff; ! color: #000000; ! } ! img ! { ! border: none; ! } ! a:link,a:active,a:visited ! { ! color: #6666ff; ! text-decoration: none; ! font-weight: bold; ! } ! a:hover ! { ! color: #9966ff; ! text-decoration: underline; ! font-weight: bold; ! } ! .head ! { ! background-color: #cccccc; } .footer *************** *** 13,17 **** .quicknav { ! font-size: 8pt; text-align: left; } --- 38,42 ---- .quicknav { ! font-size: 10pt; text-align: left; } *************** *** 22,29 **** font-weight: bold; } table { ! margin:0px 0px 0px 0px; ! font-size: 9pt; border: 0px none; width: 100%; --- 47,62 ---- font-weight: bold; } + .row1 + { + background-color: #ffffff; + } + .row2 + { + background-color: #ddddff; + } table { ! /* margin:0px 0px 0px 0px; */ ! font-size: 10pt; border: 0px none; width: 100%; *************** *** 34,36 **** --- 67,70 ---- { padding: 3px; + white-space: nowrap; } |
From: Brian C. <bch...@us...> - 2004-10-03 11:07:00
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19970 Modified Files: cvsview.php Log Message: Changed code to support themes. Index: cvsview.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/cvsview.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** cvsview.php 2 Oct 2004 04:52:10 -0000 1.12 --- cvsview.php 3 Oct 2004 11:05:55 -0000 1.13 *************** *** 28,36 **** $REPOS = ""; $ScriptName = $_SERVER['PHP_SELF']; require_once 'phpcvs.php'; require_once 'phpcvsmime.php'; - require_once 'header.php'; - require_once 'footer.php'; require_once 'utils.php'; require_once 'func_DirListing.php'; --- 28,42 ---- $REPOS = ""; $ScriptName = $_SERVER['PHP_SELF']; + if (isset($_GET["tm"])) { + $ThemeName = $_GET["tm"]; + } + else + { + $ThemeName = "Default"; + } + require_once "Themes/$ThemeName/theme.php"; require_once 'phpcvs.php'; require_once 'phpcvsmime.php'; require_once 'utils.php'; require_once 'func_DirListing.php'; |
From: Brian C. <bch...@us...> - 2004-10-03 11:05:36
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19585 Removed Files: footer.php header.php Log Message: Removed header.php and footer.php as code has been moved into the theme support. --- header.php DELETED --- --- footer.php DELETED --- |
From: Brian C. <bch...@us...> - 2004-10-03 11:01:32
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18222 Added Files: theme.css theme.php Log Message: Added initial theme support. --- NEW FILE: theme.php --- <?php /** * This source code is distributed under the terms as layed out in the * GNU General Public License. * * Purpose: To provide the HTML page header code * * @author Brian A Cheeseman <bch...@us...> * @version $Id: theme.php,v 1.1 2004/10/03 11:00:21 bcheesem Exp $ * @copyright 2003-2004 Brian A Cheeseman **/ function GetPageHeader($Title="", $Heading="") { global $StartTime; $StartTime = microtime(); $PageHead = "<html>"; if ($Title != "") { $PageHead .= "<head><title>$Title</title>"; $PageHead .= "<link rel=StyleSheet href=\"Themes/Default/theme.css\" type=\"text/css\">"; $PageHead .= "</head>"; } // End of if ($Title != "") $PageHead .= "<body>"; if ($Heading != "") { $PageHead .= "<div class=\"title\">$Heading</div>"; } // End of if ($Header != "") $PageHead .= "Welcome to our CVS Repository viewer. This page has been dynamically"; $PageHead .= " created with '<a href=\"http://phpcvsview.sourceforge.net/\">phpCVS"; $PageHead .= "Viewer</a>' created by <a href=\"mailto:bch...@us..."; $PageHead .= "\">Brian Cheeseman</a>. <br><br>Please feel free to browse our source code.<br><br>"; return $PageHead; } // End of function GetPageHeader($Title="", $Heading="") function GetPageFooter() { global $StartTime; $EndTime = microtime(); $PageFoot = "<div class=\"footer\">This page was created by <a href=\"http://phpcvsview.sourceforge.net/\">phpCVSView</a> in ".number_format(microtime_diff($StartTime, $EndTime), 3)." seconds.</div>"; $PageFoot .= "</body></html>"; return $PageFoot; } // End of function GetPageFooter() ?> --- NEW FILE: theme.css --- body { margin:3px 3px 3px 3px; padding:0px; font-family: Tahoma, arial, sans-serif; font-size: 12pt; } .footer { font-size: 8pt; text-align: center; } .quicknav { font-size: 8pt; text-align: left; } .title { text-align: center; font-size: 18pt; font-weight: bold; } table { margin:0px 0px 0px 0px; font-size: 9pt; border: 0px none; width: 100%; border-spacing: 0px 0px; border-collapse: collapse; } td { padding: 3px; } |
From: Brian C. <bch...@us...> - 2004-10-03 06:31:54
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32748 Modified Files: func_FileView.php header.php Log Message: Miscellaneous changes. Index: header.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/header.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** header.php 2 Oct 2004 01:47:17 -0000 1.3 --- header.php 3 Oct 2004 06:30:14 -0000 1.4 *************** *** 17,21 **** $PageHead = "<HTML>"; if ($Title != "") { ! $PageHead .= "<HEAD><TITLE>$Title</TITLE></HEAD>"; } // End of if ($Title != "") $PageHead .= "<BODY>"; --- 17,23 ---- $PageHead = "<HTML>"; if ($Title != "") { ! $PageHead .= "<HEAD><TITLE>$Title</TITLE>"; ! $PageHead .= "<LINK REL=StyleSheet HREF=\"Themes/Default/theme.css\" TYPE=\"text/css\" MEDIA=screen>"; ! $PageHead .= "</HEAD>"; } // End of if ($Title != "") $PageHead .= "<BODY>"; Index: func_FileView.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileView.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** func_FileView.php 2 Oct 2004 04:52:10 -0000 1.1 --- func_FileView.php 3 Oct 2004 06:30:13 -0000 1.2 *************** *** 68,77 **** echo "<hr>\n"; if (strpos($File, ".php")) { ! echo highlight_string($CVSServer->FILECONTENTS, true); } else { ! $search = array('<', '>', '\n'); ! $replace = array("<", ">", ""); echo "<pre>\n"; echo str_replace($search, $replace, $CVSServer->FILECONTENTS)."\n"; --- 68,80 ---- echo "<hr>\n"; if (strpos($File, ".php")) { ! $search = array('\t'); ! $replace = array(" "); ! $Content = str_replace($search, $replace, $CVSServer->FILECONTENTS); ! echo highlight_string($Content, true); } else { ! $search = array('<', '>', '\n', '\t'); ! $replace = array("<", ">", "", " "); echo "<pre>\n"; echo str_replace($search, $replace, $CVSServer->FILECONTENTS)."\n"; |
From: Brian C. <bch...@us...> - 2004-10-02 08:43:45
|
Update of /cvsroot/p/ph/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15534 Modified Files: phpcvs.php Log Message: Fixed the scenario where the last line of a text file doesn't have a CR/LF causing a timeout on the TCP socket. Index: phpcvs.php =================================================================== RCS file: /cvsroot/p/ph/phpcvsview/phpcvsview/phpcvs.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** phpcvs.php 2 Oct 2004 04:52:10 -0000 1.12 --- phpcvs.php 2 Oct 2004 08:42:26 -0000 1.13 *************** *** 71,74 **** --- 71,75 ---- var $ANNOTATION = array(); // An array of the lines in the file which has been annotated. var $FILECONTENTS = ""; // A string to store the lines of the file contents in. + var $INITIALISED = false; // A boolean to indicate whether we have already sent the Root/ValidRequests/ValidResponses. /** *************** *** 675,686 **** // is the content of the file. if ($this->FINAL_RESPONSE) { $ReadLine = $this->SOCKET->readLine(); - $ReadLine = $this->SOCKET->readLine(); - $Counter = 0; - while($ReadLine != "ok"){ - $this->FILECONTENTS .= $ReadLine."\n"; - $ReadLine = $this->SOCKET->readLine(); - } // while - return true; } --- 676,682 ---- // is the content of the file. if ($this->FINAL_RESPONSE) { + $ContentLength = $this->SOCKET->readLine(); + $this->FILECONTENTS = $this->SOCKET->read($ContentLength); $ReadLine = $this->SOCKET->readLine(); return true; } *************** *** 703,709 **** function RLog($Folder) { ! $this->sendCVSROOT(); ! $this->sendValidResponses(); ! $this->sendValidRequests(); if (!$this->sendUseUnchanged()) { --- 699,708 ---- function RLog($Folder) { ! if (!($this->INITIALISED)) { ! $this->sendCVSROOT(); ! $this->sendValidResponses(); ! $this->sendValidRequests(); ! $this->INITIALISED = true; ! } if (!$this->sendUseUnchanged()) { *************** *** 711,715 **** } ! if (!$this->sendArgument($Folder)) { return false; } --- 710,722 ---- } ! if (strncmp($Folder, "/", 1) == 0) { ! $Directory = substr($Folder, 1); ! } ! else ! { ! $Directory = $Folder; ! } ! ! if (!$this->sendArgument($Directory)) { return false; } *************** *** 900,906 **** function Annotate($Name, $Revision = "") { ! $this->sendCVSROOT(); ! $this->sendValidResponses(); ! $this->sendValidRequests(); if (!$this->sendUseUnchanged()) { --- 907,916 ---- function Annotate($Name, $Revision = "") { ! if (!($this->INITIALISED)) { ! $this->sendCVSROOT(); ! $this->sendValidResponses(); ! $this->sendValidRequests(); ! $this->INITIALISED = true; ! } if (!$this->sendUseUnchanged()) { *************** *** 984,990 **** function ExportFile($FileName, $DateTime) { ! $this->sendCVSROOT(); ! $this->sendValidResponses(); ! $this->sendValidRequests(); if (strncmp($FileName, "/", 1) == 0) { --- 994,1003 ---- function ExportFile($FileName, $DateTime) { ! if (!($this->INITIALISED)) { ! $this->sendCVSROOT(); ! $this->sendValidResponses(); ! $this->sendValidRequests(); ! $this->INITIALISED = true; ! } if (strncmp($FileName, "/", 1) == 0) { |
From: Brian C. <bch...@us...> - 2004-10-02 06:36:07
|
Update of /cvsroot/p/ph/phpcvsview/phpcvsview/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28776 Added Files: file.png folder.png parent.png Log Message: Re-imported images as binary. --- NEW FILE: folder.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: parent.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: file.png --- (This appears to be a binary file; contents omitted.) |
From: Brian C. <bch...@us...> - 2004-10-02 06:35:13
|
Update of /cvsroot/p/ph/phpcvsview/phpcvsview/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28653 Removed Files: file.png folder.png parent.png Log Message: Removed images, as they were imported at "TEXT" files. --- folder.png DELETED --- --- parent.png DELETED --- --- file.png DELETED --- |
From: Brian C. <bch...@us...> - 2004-10-02 05:54:17
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16622 Modified Files: cvsview.php func_DirListing.php func_FileAnnotation.php func_FileHistory.php phpcvs.php Added Files: func_FileView.php Log Message: Basic TEXT file viewing is operational. Altered the date handling for the differential dates to work off GMT. We now see the correct time differences. Index: func_FileHistory.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileHistory.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** func_FileHistory.php 2 Oct 2004 01:46:19 -0000 1.1 --- func_FileHistory.php 2 Oct 2004 04:52:10 -0000 1.2 *************** *** 48,52 **** $HREF = str_replace("//", "/", "$ScriptName?mp=$ModPath"); $DateTime = strtotime($Revision["date"]); ! echo "<hr>\n"; echo "<b>Revision</b> ".$Revision["Revision"]." -"; echo " (<a href=\"$HREF&fv&dt=$DateTime\">view</a>)"; --- 48,52 ---- $HREF = str_replace("//", "/", "$ScriptName?mp=$ModPath"); $DateTime = strtotime($Revision["date"]); ! echo "<a name=\"$DateTime\"><hr>\n"; echo "<b>Revision</b> ".$Revision["Revision"]." -"; echo " (<a href=\"$HREF&fv&dt=$DateTime\">view</a>)"; *************** *** 55,59 **** echo strtotime($CVSServer->FILES[0]["Revisions"][$Revision["PrevRevision"]]["date"])."\">diff to previous</a>)"; echo " (<a href=\"$HREF&fa=".$Revision["Revision"]."\">annotate</a>)<br>\n"; ! echo "<b>Last Checkin:</b> ".strftime("%A %d %b %Y %T -0000", strtotime($Revision["date"]))." (".CalculateDateDiff(strtotime($Revision["date"]), time())." ago)<br>\n"; echo "<b>Branch:</b> ".$Revision["Branches"]."<br>\n"; echo "<b>Date:</b> ".strftime("%B %d, %Y", $DateTime)."<br>\n"; --- 55,59 ---- echo strtotime($CVSServer->FILES[0]["Revisions"][$Revision["PrevRevision"]]["date"])."\">diff to previous</a>)"; echo " (<a href=\"$HREF&fa=".$Revision["Revision"]."\">annotate</a>)<br>\n"; ! echo "<b>Last Checkin:</b> ".strftime("%A %d %b %Y %T -0000", strtotime($Revision["date"]))." (".CalculateDateDiff(strtotime($Revision["date"]), strtotime(gmdate("M d Y H:i:s")))." ago)<br>\n"; echo "<b>Branch:</b> ".$Revision["Branches"]."<br>\n"; echo "<b>Date:</b> ".strftime("%B %d, %Y", $DateTime)."<br>\n"; Index: phpcvs.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/phpcvs.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** phpcvs.php 2 Oct 2004 01:47:17 -0000 1.11 --- phpcvs.php 2 Oct 2004 04:52:10 -0000 1.12 *************** *** 70,73 **** --- 70,74 ---- var $CURRENT_FILE; // The current file we are building up. var $ANNOTATION = array(); // An array of the lines in the file which has been annotated. + var $FILECONTENTS = ""; // A string to store the lines of the file contents in. /** *************** *** 143,146 **** --- 144,196 ---- } + // *************************************************************************** + // Function: processClearSticky() + // Author: Brian A Cheeseman. + // Parameters: string - Line of response text. + // Return Value: boolean - Are we expecting more responses to come in? + // *************************************************************************** + function processClearSticky($LineOfText) + { + $this->SOCKET->readLine(); + return true; + } + + // *************************************************************************** + // Function: processSetStaticDirectory() + // Author: Brian A Cheeseman. + // Parameters: string - Line of response text. + // Return Value: boolean - Are we expecting more responses to come in? + // *************************************************************************** + function processSetStaticDirectory($LineOfText) + { + $this->SOCKET->readLine(); + return true; + } + + // *************************************************************************** + // Function: processModTime() + // Author: Brian A Cheeseman. + // Parameters: string - Line of response text. + // Return Value: boolean - Are we expecting more responses to come in? + // *************************************************************************** + function processModTime($LineOfText) + { + return true; + } + + // *************************************************************************** + // Function: processCreated() + // Author: Brian A Cheeseman. + // Parameters: string - Line of response text. + // Return Value: boolean - Are we expecting more responses to come in? + // *************************************************************************** + function processCreated($LineOfText) + { + $this->SOCKET->readLine(); + $this->SOCKET->readLine(); + $this->SOCKET->readLine(); + return false; + } + /** * *************** *** 590,593 **** --- 640,694 ---- } + // *************************************************************************** + // Function: sendExpandModules() + // Author: Brian A Cheeseman. + // Parameters: None. + // Return Value: boolean - Successfully sent. + // *************************************************************************** + function sendExpandModules() + { + if ($this->ALLOWED_REQUESTS["expand-modules"] == true) { + if ($this->SOCKET->write("expand-modules\n") != true) { + return false; + } + } + $this->processResponse(); + return true; + } + + // *************************************************************************** + // Function: sendExportFile() + // Author: Brian A Cheeseman. + // Parameters: None. + // Return Value: boolean - Successfully sent. + // *************************************************************************** + function sendExportFile() + { + if ($this->ALLOWED_REQUESTS["export"] == true) { + if ($this->SOCKET->write("export\n") != true) { + return false; + } + } + $this->processResponse(); + + // Here the first line is the length, the remaining (upto the 'ok') + // is the content of the file. + if ($this->FINAL_RESPONSE) { + $ReadLine = $this->SOCKET->readLine(); + $ReadLine = $this->SOCKET->readLine(); + $Counter = 0; + while($ReadLine != "ok"){ + $this->FILECONTENTS .= $ReadLine."\n"; + $ReadLine = $this->SOCKET->readLine(); + } // while + + return true; + } + else + { + return false; + } + } + /** * Helper Methods. *************** *** 873,876 **** --- 974,1045 ---- return true; } + + // *************************************************************************** + // Function: ExportFile() + // Author: Brian A Cheeseman. + // Parameters: string - Name of file to export. + // integer - Date/Time of revision to export. + // Return Value: boolean - Were we successful. + // *************************************************************************** + function ExportFile($FileName, $DateTime) + { + $this->sendCVSROOT(); + $this->sendValidResponses(); + $this->sendValidRequests(); + + if (strncmp($FileName, "/", 1) == 0) { + $FName = substr($FileName, 1); + } + else + { + $FName = $FileName; + } + + if (!$this->sendUseUnchanged()) { + return false; + } + + if (!$this->sendArgument($FName)) { + return false; + } + + if (!$this->sendDirectory(".")) { + return false; + } + + if (!$this->sendExpandModules()) { + return false; + } + + if (!$this->sendArgument("-N")) { + return false; + } + + if (!$this->sendArgument("-D")) { + return false; + } + + if (!$this->sendArgument(strftime("%d %b %Y %T -0000", $DateTime))) { + return false; + } + + if (!$this->sendArgument("--")) { + return false; + } + + if (!$this->sendArgument($FName)) { + return false; + } + + if (!$this->sendDirectory(".")) { + return false; + } + + if (!$this->sendExportFile()) { + return false; + } + + return true; + } } Index: func_DirListing.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_DirListing.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** func_DirListing.php 2 Oct 2004 02:53:35 -0000 1.2 --- func_DirListing.php 2 Oct 2004 04:52:10 -0000 1.3 *************** *** 95,99 **** $HREF = str_replace("//", "/", "$ScriptName?mp=$ModPath/".$File["Name"]); $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); ! $AGE = CalculateDateDiff($DateTime, time()); echo " <tr bgcolor=\"$BGColor\" valign=\"top\">\n"; echo " <td align=\"center\" valign=\"center\"><a href=\"$HREF&fh\"><img border=\"0\" src=\"$ScriptPath/images/file.png\"></a></td>\n"; --- 95,99 ---- $HREF = str_replace("//", "/", "$ScriptName?mp=$ModPath/".$File["Name"]); $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); ! $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); echo " <tr bgcolor=\"$BGColor\" valign=\"top\">\n"; echo " <td align=\"center\" valign=\"center\"><a href=\"$HREF&fh\"><img border=\"0\" src=\"$ScriptPath/images/file.png\"></a></td>\n"; --- NEW FILE: func_FileView.php --- <?php /** * This source code is distributed under the terms as layed out in the * GNU General Public License. * * Purpose: To provide File View Page. * * @author Brian A Cheeseman <bch...@us...> * @version $Id: func_FileView.php,v 1.1 2004/10/02 04:52:10 bcheesem Exp $ * @copyright 2003-2004 Brian A Cheeseman **/ function DisplayFileContents($File, $Revision = "") { global $ModPath, $CVSROOT, $PServer, $UserName, $Password, $ScriptName, $HTMLTitle, $HTMLHeading, $HTMLTblHdBg, $HTMLTblCell1, $HTMLTblCell2; // Calculate the path from the $ScriptName variable. $ScriptPath = substr($ScriptName, 0, strrpos($ScriptName, "/")); if ($ScriptPath == "") { $ScriptPath = "/"; } // Create our CVS connection object and set the required properties. $CVSServer = new CVS_PServer($CVSROOT, $PServer, $UserName, $Password); // Start the output process. echo GetPageHeader($HTMLTitle, $HTMLHeading); // Connect to the CVS server. if ($CVSServer->Connect() === true) { // Authenticate against the server. $Response = $CVSServer->Authenticate(); if ($Response !== true) { return; } // Get a RLOG of the module path specified in $ModPath. $CVSServer->RLog($ModPath); // "Export" the file. $Response = $CVSServer->ExportFile($File, $Revision); if ($Response !== true) { return; } // Start the output for the file. $Dirs = explode("/", $ModPath); echo "Navigate to: <a href=\"$ScriptName\">Root</a> "; $intCount = 1; while($intCount < count($Dirs)){ echo "/ <a href=\"$ScriptName?mp=".ImplodeToPath($Dirs, "/", $intCount); if ($intCount == (count($Dirs) - 1)) { echo "&fh#$Revision"; } else { echo "/"; } echo "\">".$Dirs[$intCount]."</a> "; $intCount++; } // while echo "<br>\n"; // Display the file contents. echo "<hr>\n"; if (strpos($File, ".php")) { echo highlight_string($CVSServer->FILECONTENTS, true); } else { $search = array('<', '>', '\n'); $replace = array("<", ">", ""); echo "<pre>\n"; echo str_replace($search, $replace, $CVSServer->FILECONTENTS)."\n"; echo "</pre>\n"; } // Close the connection. $CVSServer->Disconnect(); } else { echo "ERROR: Could not connect to the PServer.<br>\n"; } } ?> Index: cvsview.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/cvsview.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** cvsview.php 2 Oct 2004 01:46:18 -0000 1.11 --- cvsview.php 2 Oct 2004 04:52:10 -0000 1.12 *************** *** 37,40 **** --- 37,41 ---- require_once 'func_FileHistory.php'; require_once 'func_FileAnnotation.php'; + require_once 'func_FileView.php'; *************** *** 57,61 **** else { ! DisplayDirListing(); } } --- 58,68 ---- else { ! if (isset($_GET["fv"])) { ! DisplayFileContents($ModPath, $_GET["dt"]); ! } ! else ! { ! DisplayDirListing(); ! } } } Index: func_FileAnnotation.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileAnnotation.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** func_FileAnnotation.php 2 Oct 2004 01:46:19 -0000 1.1 --- func_FileAnnotation.php 2 Oct 2004 04:52:10 -0000 1.2 *************** *** 54,58 **** foreach ($CVSServer->ANNOTATION as $Annotation) { - $result = str_replace($search, $replace, $email); echo "<tr bgcolor=\"$BGColor\"><td nowrap><pre>".$Annotation["Revision"]."</pre></td><td nowrap><pre>".$Annotation["Author"]; echo "</pre></td><td nowrap><pre>".$Annotation["Date"]."</pre></td><td nowrap><pre>".str_replace($search, $replace, $Annotation["Line"])."</pre></td></tr>\n"; --- 54,57 ---- |
From: Brian C. <bch...@us...> - 2004-10-02 05:34:21
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21116 Modified Files: func_FileAnnotation.php Log Message: Cleaned up code. Index: func_FileAnnotation.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileAnnotation.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** func_FileAnnotation.php 2 Oct 2004 04:52:10 -0000 1.2 --- func_FileAnnotation.php 2 Oct 2004 05:32:56 -0000 1.3 *************** *** 43,48 **** } - //print_r($CVSServer->ANNOTATION); - // Start the output for the table. echo "<hr>\n"; --- 43,46 ---- |
From: Brian C. <bch...@us...> - 2004-10-02 05:32:46
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20984/Default Log Message: Directory /cvsroot/phpcvsview/phpcvsview/Themes/Default added to the repository |
From: Brian C. <bch...@us...> - 2004-10-02 05:32:30
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20967/Themes Log Message: Directory /cvsroot/phpcvsview/phpcvsview/Themes added to the repository |
From: Brian C. <bch...@us...> - 2004-10-02 02:54:27
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31228 Modified Files: func_DirListing.php utils.php Log Message: Added code to produce quick directory navigation links above the directory listing. Index: utils.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/utils.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** utils.php 2 Oct 2004 01:46:19 -0000 1.1 --- utils.php 2 Oct 2004 02:53:35 -0000 1.2 *************** *** 95,97 **** --- 95,113 ---- } + function ImplodeToPath($Dirs, $Seperator, $Number) + { + // echo "<br><br>In ImplodeToPath()...<br>\n"; + $RetVal = ""; + for ($Counter = 0; $Counter <= $Number; $Counter++) + { + // echo "Counter is at $Counter of $Number. Value is '".$Dirs[$Counter]."'.<br>\n"; + if ($Dirs[$Counter] != "") { + $RetVal .= $Seperator . $Dirs[$Counter]; + } + // echo "RetVal is '".$RetVal."'.<br>\n"; + } + // echo "Out ImplodeToPath()...<br><br>\n"; + return $RetVal; + } + ?> \ No newline at end of file Index: func_DirListing.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_DirListing.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** func_DirListing.php 2 Oct 2004 01:46:19 -0000 1.1 --- func_DirListing.php 2 Oct 2004 02:53:35 -0000 1.2 *************** *** 40,43 **** --- 40,53 ---- $CVSServer->RLog($ModPath); + // Add the quick link navigation bar. + $Dirs = explode("/", $ModPath); + echo "Navigate to: <a href=\"$ScriptName\">Root</a> "; + $intCount = 1; + while($intCount < count($Dirs)-2){ + echo "/ <a href=\"$ScriptName?mp=".ImplodeToPath($Dirs, "/", $intCount)."/\">".$Dirs[$intCount]."</a> "; + $intCount++; + } // while + echo "/ ".$Dirs[$intCount]."<br>\n"; + // Start the output for the table. echo "<hr>\n"; |