phpcvsview-cvs-updates Mailing List for PHP CVS Repository Viewer (Page 7)
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: Brian C. <bch...@us...> - 2005-01-23 04:19:06
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Yellow/Images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25101/Themes/Yellow/Images Added Files: file.png folder.png module.png parent.png Log Message: Added Blue, Green, and Yellow Themes. --- NEW FILE: folder.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: file.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: module.png --- (This appears to be a binary file; contents omitted.) |
From: Brian C. <bch...@us...> - 2005-01-23 04:19:06
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Green/Images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25101/Themes/Green/Images Added Files: file.png folder.png module.png parent.png Log Message: Added Blue, Green, and Yellow Themes. --- NEW FILE: folder.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: file.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: module.png --- (This appears to be a binary file; contents omitted.) |
From: Brian C. <bch...@us...> - 2005-01-23 04:19:05
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Blue/Images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25101/Themes/Blue/Images Added Files: file.png folder.png module.png parent.png Log Message: Added Blue, Green, and Yellow Themes. --- NEW FILE: folder.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: file.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: module.png --- (This appears to be a binary file; contents omitted.) |
From: Brian C. <bch...@us...> - 2005-01-23 04:18:09
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Yellow/Images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24906/Images Log Message: Directory /cvsroot/phpcvsview/phpcvsview/Themes/Yellow/Images added to the repository |
From: Brian C. <bch...@us...> - 2005-01-23 04:17:50
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Green/Images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24796/Images Log Message: Directory /cvsroot/phpcvsview/phpcvsview/Themes/Green/Images added to the repository |
From: Brian C. <bch...@us...> - 2005-01-23 04:17:24
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Blue/Images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24706/Images Log Message: Directory /cvsroot/phpcvsview/phpcvsview/Themes/Blue/Images added to the repository |
From: Brian C. <bch...@us...> - 2005-01-23 04:17:12
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Yellow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24584/Yellow Log Message: Directory /cvsroot/phpcvsview/phpcvsview/Themes/Yellow added to the repository |
From: Brian C. <bch...@us...> - 2005-01-23 04:17:11
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Green In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24584/Green Log Message: Directory /cvsroot/phpcvsview/phpcvsview/Themes/Green added to the repository |
From: Brian C. <bch...@us...> - 2005-01-23 04:17:11
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Blue In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24584/Blue Log Message: Directory /cvsroot/phpcvsview/phpcvsview/Themes/Blue added to the repository |
From: Brian C. <bch...@us...> - 2005-01-23 01:48:08
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23986 Modified Files: config.php cvsview.php Log Message: Changes to support the cookie generation for remembering the users theme. Index: config.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/config.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** config.php 8 Jan 2005 04:34:59 -0000 1.9 --- config.php 23 Jan 2005 01:47:56 -0000 1.10 *************** *** 35,38 **** $config['GeSHi']['HighlightersPath'] = "geshi/geshi"; ! ?> ! --- 35,37 ---- $config['GeSHi']['HighlightersPath'] = "geshi/geshi"; ! ?> \ No newline at end of file Index: cvsview.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/cvsview.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** cvsview.php 22 Jan 2005 13:58:20 -0000 1.18 --- cvsview.php 23 Jan 2005 01:47:56 -0000 1.19 *************** *** 27,33 **** $ThemeName = $_GET["tm"]; } else { ! $ThemeName = "Default"; } require_once "Themes/$ThemeName/theme.php"; require_once 'phpcvs.php'; --- 27,43 ---- $ThemeName = $_GET["tm"]; } else { ! if (isset($_COOKIE["theme"])) { ! $ThemeName = $_COOKIE["theme"]; ! } ! else ! { ! $ThemeName = "Default"; ! } } + // Re-Set our cookie with the theme name in it. This cookie is set to expire 1 Year from today. + // This was done as there is no way to stop a cookie expiring. + setcookie("theme", $ThemeName, time()+31536000, "/"); + require_once "Themes/$ThemeName/theme.php"; require_once 'phpcvs.php'; |
From: Brian C. <bch...@us...> - 2005-01-23 01:32:49
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Red In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20215/Themes/Red Added Files: theme.css theme.php Log Message: Added a "Red" theme to the repository for testing purposes, should be altered for production code. --- 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 2005/01/23 01:32:38 bcheesem Exp $ * @copyright 2003-2004 Brian A Cheeseman **/ //global $ThemeName; $FolderIcon = "Themes/".$ThemeName."/Images/folder.png"; $FileIcon = "Themes/".$ThemeName."/Images/file.png"; $ParentIcon = "Themes/".$ThemeName."/Images/parent.png"; $ModuleIcon = "Themes/".$ThemeName."/Images/module.png"; function GetPageHeader($Title="", $Heading="") { global $StartTime, $ThemeName, $env; $StartTime = microtime(); $PageHead = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">"; $PageHead .= "<html><head>"; if ($Title != "") { $PageHead .= "<title>$Title</title>"; } $PageHead .= "<link href=\"Themes/".$ThemeName."/theme.css\" rel=\"stylesheet\" type=\"text/css\" />"; // Add JavaScript to postback the change in theme selection. $PageHead .= "<script src=\"./phpcvsview.js\"></script>"; $PageHead .= "</head>"; $PageHead .= "<body>"; if ($Heading != "") { $PageHead .= "<div class=\"title\">$Heading</div>"; } $PageHead .= "<p>Welcome to the CVS Repository viewing system for the phpCVSView project "; $PageHead .= "hosted at SourceForge.net</p><p>The goal of this project is simply to "; $PageHead .= "build a php application/class to provide access to a CVS based source "; $PageHead .= "control repository over the various connectivity mechanisms available for "; $PageHead .= "CVS in general. There are also some extensions to this goal planned for "; $PageHead .= "future releases such as a full web-based CVS client utilising the core of "; $PageHead .= "this project.</p><p>So please feel free to look at our code, suggest "; $PageHead .= "features, test the code in your own environment, submit bugs, and most of "; $PageHead .= "all support the commitment of the open source developers by using the many "; $PageHead .= "wonderful products available.</p><p>Kindest Regards,<br />Brian Cheeseman."; $PageHead .= "<br />phpCVSView Project Leader.</p>"; $PageHead .= "<form class=\"themechanger\">Change Theme: <select name=\"ThemeSelect\" class=\"themechanger\" onchange=\"postBackThemeChange(this.form)\">"; foreach (GetThemeList() as $key=>$value) { $PageHead .= "<option value=\"$value\""; if ($value == $ThemeName) { $PageHead .= " selected"; } $PageHead .= ">$value</option>"; } $PageHead .= "</select>"; $PageHead .= "<input type=\"hidden\" name=\"URLRequest\" value=\"".$env['script_name'].""; $first = true; foreach ($_GET as $key=>$value) { if ($key != "tm") { if ($first != true) { $PageHead .= "&"; } else { $PageHead .= "?"; } $first = false; $PageHead .= $key."=".$value; } } $PageHead .= "\"></form>"; return $PageHead; } function GetPageFooter() { global $StartTime; $EndTime = microtime(); $PageFoot = "<div class=\"footer\">This page was generated by <a href=\"http://phpcvsview.sourceforge.net/\">phpCVSView</a> in ".number_format(microtime_diff($StartTime, $EndTime), 3)." seconds.<br />"; $PageFoot .= "phpCVSView created by <a href=\"mailto:bch...@us..."; $PageFoot .= "\">Brian Cheeseman</a> and <a href=\"mailto:si...@us...\">"; $PageFoot .= "Sijis Aviles</a>."; $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://www.w3c.org/Icons/valid-css\" alt=\"Valid CSS!\" /></a></p>"; $PageFoot .= "</div>"; $PageFoot .= "</body></html>"; return $PageFoot; } function GetQuickLinkBar($ModPath = "/", $Prefix = "Navigate to: ", $LinkLast = false, $LastIsFile = false, $Revision = "") { global $env; // Add the quick link navigation bar. $Dirs = explode("/", $ModPath); $QLOut = "<div class=\"quicknav\">$Prefix<a href=\"".$env['script_name']."\">Root</a> "; $intCount = 1; $OffSet = 2; if ($LastIsFile) { $OffSet = 1; } while($intCount < count($Dirs)-$OffSet) { if (($intCount != count($Dirs)-$OffSet)) { $QLOut .= "/ <a href=\"".$env['script_name']."?mp=".ImplodeToPath($Dirs, "/", $intCount)."/\">".$Dirs[$intCount]."</a> "; } else { $QLOut .= "/ ".$Dirs[$intCount]." "; } $intCount++; } $QLOut .= "/ "; if ($LinkLast) { $QLOut .= "<a href=\"".$env['script_name']."?mp=".ImplodeToPath($Dirs, "/", $intCount); if ($LastIsFile) { $QLOut .= "&fh#rd$Revision\">"; } else { $QLOut .= "/"; } } $QLOut .= $Dirs[$intCount]; if ($LinkLast) { $QLOut .= "</a>"; } $QLOut .= "</div>"; return $QLOut; } function startDirList() { global $RowClass; echo "<hr />"; echo "<table>"; echo "<tr class=\"head\"><th> </th><th>File</th><th>Rev.</th><th>Age</th><th>Author</th><th>Last Log Entry</th></tr>"; $RowClass = "row1"; } function endDirList() { echo "</table>"; echo "<hr />"; } function addParentDirectory($ModPath) { global $RowClass, $ParentIcon, $env; $HREF = str_replace("//", "/", $env['script_name']."?mp=".substr($ModPath, 0, strrpos(substr($ModPath, 0, -1), "/"))."/"); echo "<tr class=\"$RowClass\">"; echo "<td class=\"min\"><a href=\"$HREF\"><img alt=\"parent\" src=\"".$env['script_path']."/$ParentIcon\" /></a></td>"; echo "<td class=\"min\"><a href=\"$HREF\">Up one folder</a></td>"; echo "<td> </td>"; echo "<td> </td>"; echo "<td> </td>"; echo "<td> </td>"; echo "</tr>"; $RowClass = "row2"; } function addFolders($ModPath, $Folders) { global $RowClass, $FolderIcon, $env; foreach ($Folders as $Folder) { $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$Folder["Name"]."/"); echo "<tr class=\"$RowClass\">"; echo "<td class=\"min\"><a href=\"$HREF\"><img alt=\"DIR\" src=\"".$env['script_path']."/$FolderIcon\" /></a></td>"; echo "<td class=\"min\"><a href=\"$HREF\">".$Folder["Name"]."</a></td>"; echo "<td> </td>"; echo "<td> </td>"; echo "<td> </td>"; echo "<td> </td>"; echo "</tr>"; if ($RowClass == "row1") { $RowClass = "row2"; } else { $RowClass = "row1"; } } } function addModules($ModPath, $Modules) { global $RowClass, $ModuleIcon, $env; foreach ($Modules as $Key => $Val) { // Add the row data here. $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$Val."/"); echo "<tr class=\"$RowClass\">"; echo "<td class=\"min\"><a href=\"$HREF\"><img alt=\"MOD\" src=\"".$env['script_path']."/$ModuleIcon\" /></a></td>"; echo "<td class=\"min\"><a href=\"$HREF\">".$Key."</a></td>"; echo "<td> </td>"; echo "<td> </td>"; echo "<td> </td>"; echo "<td> </td>"; echo "</tr>"; if ($RowClass == "row1") { $RowClass = "row2"; } else { $RowClass = "row1"; } } } function addFiles($ModPath, $Files) { global $RowClass, $FileIcon, $env; foreach ($Files as $File) { $HREF = str_replace("//", "/", $env['script_name']."?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\">"; echo "<td align=\"center\"><a href=\"$HREF&fh\"><img alt=\"FILE\" src=\"".$env['script_path']."/$FileIcon\" /></a></td>"; echo "<td><a href=\"$HREF&fh\">".$File["Name"]."</a></td>"; echo "<td align=\"center\"><a href=\"$HREF&fv&dt=$DateTime\">".$File["Head"]."</a></td>"; echo "<td align=\"center\">".str_replace(" ", " ", $AGE)." ago</td>"; echo "<td align=\"center\">".$File["Revisions"][$File["Head"]]["author"]."</td>"; echo "<td>".str_replace(array("\n", " "), array("<br />", " "), $File["Revisions"][$File["Head"]]["LogMessage"])."</td>"; echo "</tr>"; if ($RowClass == "row1") { $RowClass = "row2"; } else { $RowClass = "row1"; } } } ?> --- NEW FILE: theme.css --- body { margin-top: 3px; margin-bottom: 3px; margin-left: 3px; margin-right: 3px; padding:0px; font-family: Tahoma, arial, sans-serif; font-size: 10pt; background-color: #ffffff; color: #000000; } img { border: none; } a:link,a:active,a:visited { color: #990000; text-decoration: none; } a:hover { color: #990000; text-decoration: underline; } .head { background-color: #ffbbbb; } .row1 { background-color: #ffeeee; } .row2 { background-color: #ffdddd; } .footer { font-size: 8pt; text-align: center; } .quicknav { font-size: 8pt; text-align: left; font-weight: bold; } .themechanger { font-size: 8pt; text-align: left; padding: 0px; margin: 0px; } .title { text-align: center; font-size: 18pt; font-weight: bold; font-style: italic; color: black; } table { font-size: 8pt; border: 0px none; width: 100%; border-spacing: 0px 0px; border-collapse: collapse; } table.source { border: 0px none; width: 100%; border-spacing: 0px 0px; border-collapse: collapse; } td { padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; } td.min { width: 1px; } li { font-family: 'Courier New', Courier, monospace; font-size: 12px; font-weight: normal; } |
From: Brian C. <bch...@us...> - 2005-01-23 01:32:47
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Red/Images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20215/Themes/Red/Images Added Files: file.png folder.png module.png parent.png Log Message: Added a "Red" theme to the repository for testing purposes, should be altered for production code. --- NEW FILE: folder.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: file.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: module.png --- (This appears to be a binary file; contents omitted.) |
From: Brian C. <bch...@us...> - 2005-01-23 01:30:56
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Red/Images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19655/Images Log Message: Directory /cvsroot/phpcvsview/phpcvsview/Themes/Red/Images added to the repository |
From: Brian C. <bch...@us...> - 2005-01-23 01:30:30
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Red In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19498/Red Log Message: Directory /cvsroot/phpcvsview/phpcvsview/Themes/Red added to the repository |
From: Brian C. <bch...@us...> - 2005-01-23 01:29:47
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19324/Themes/Default Modified Files: theme.css theme.php Log Message: Changed coloration slightly for table rows of CVS output. Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** theme.php 22 Jan 2005 13:58:20 -0000 1.8 --- theme.php 23 Jan 2005 01:29:38 -0000 1.9 *************** *** 20,24 **** function GetPageHeader($Title="", $Heading="") { ! global $StartTime, $ThemeName; $StartTime = microtime(); $PageHead = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">"; --- 20,24 ---- function GetPageHeader($Title="", $Heading="") { ! global $StartTime, $ThemeName, $env; $StartTime = microtime(); $PageHead = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">"; Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.css,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** theme.css 22 Jan 2005 13:58:20 -0000 1.8 --- theme.css 23 Jan 2005 01:29:38 -0000 1.9 *************** *** 31,35 **** .row1 { ! background-color: #eeeeee; } .row2 --- 31,35 ---- .row1 { ! background-color: #eeeeff; } .row2 |
From: Brian C. <bch...@us...> - 2005-01-23 00:55:34
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10782 Modified Files: phpcvs.php Log Message: Fixed a problem under Win32/IIS5/PHP5 where the %T in function strftime doesn't work. The %T has been replaced with %H:%M:%S. Index: phpcvs.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/phpcvs.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** phpcvs.php 8 Jan 2005 04:57:01 -0000 1.19 --- phpcvs.php 23 Jan 2005 00:55:22 -0000 1.20 *************** *** 1032,1036 **** } ! if (!$this->sendArgument(strftime("%d %b %Y %T -0000", $DateTime))) { return false; } --- 1032,1036 ---- } ! if (!$this->sendArgument(strftime("%d %b %Y %H:%M:%S -0000", $DateTime))) { return false; } |
From: Brian C. <bch...@us...> - 2005-01-23 00:54:14
|
Update of /cvsroot/phpcvsview/phpcvsview/geshi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10409/geshi Modified Files: geshi.php Log Message: Fix for the highlighter auto-detection based on file extension where there is no file extension. Index: geshi.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/geshi/geshi.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** geshi.php 22 Dec 2004 11:06:00 -0000 1.2 --- geshi.php 23 Jan 2005 00:54:06 -0000 1.3 *************** *** 2455,2459 **** ); ! $highlighter = $highlightmappings[$fileExtension]; if ($highlighter == null) { $highlighter = ""; --- 2455,2459 ---- ); ! @$highlighter = $highlightmappings[$fileExtension]; if ($highlighter == null) { $highlighter = ""; |
From: Brian C. <bch...@us...> - 2005-01-22 14:01:50
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29929 Added Files: phpcvsview.js Log Message: Added javascript file for the client side code in relation to posting back the theme change request. --- NEW FILE: phpcvsview.js --- function postBackThemeChange(form) { var ddTheme=form.ThemeSelect.value; var hfRequest=form.URLRequest.value; if (hfRequest.indexOf("?") == -1) { newlocation=hfRequest+'?tm='+ddTheme; } else { newlocation=hfRequest+'&tm='+ddTheme; } location=newlocation; } |
From: Brian C. <bch...@us...> - 2005-01-22 13:58:29
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28846/Themes/Default Modified Files: theme.css theme.php Log Message: Added code to enable access to theme switching to the project. Still need to add code to set a cookie on the client machine. Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** theme.php 22 Dec 2004 11:06:00 -0000 1.7 --- theme.php 22 Jan 2005 13:58:20 -0000 1.8 *************** *** 11,36 **** * @copyright 2003-2004 Brian A Cheeseman **/ ! $FolderIcon = "Themes/Default/Images/folder.png"; ! $FileIcon = "Themes/Default/Images/file.png"; ! $ParentIcon = "Themes/Default/Images/parent.png"; ! $ModuleIcon = "Themes/Default/Images/module.png"; function GetPageHeader($Title="", $Heading="") { ! 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>"; } ! $PageHead .= "<body>"; if ($Heading != "") { $PageHead .= "<div class=\"title\">$Heading</div>"; } - $PageHead .= "<p>Welcome to the CVS Repository viewing system for the phpCVSView project "; $PageHead .= "hosted at SourceForge.net</p><p>The goal of this project is simply to "; --- 11,38 ---- * @copyright 2003-2004 Brian A Cheeseman **/ + + //global $ThemeName; ! $FolderIcon = "Themes/".$ThemeName."/Images/folder.png"; ! $FileIcon = "Themes/".$ThemeName."/Images/file.png"; ! $ParentIcon = "Themes/".$ThemeName."/Images/parent.png"; ! $ModuleIcon = "Themes/".$ThemeName."/Images/module.png"; function GetPageHeader($Title="", $Heading="") { ! global $StartTime, $ThemeName; $StartTime = microtime(); $PageHead = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">"; ! $PageHead .= "<html><head>"; if ($Title != "") { ! $PageHead .= "<title>$Title</title>"; } ! $PageHead .= "<link href=\"Themes/".$ThemeName."/theme.css\" rel=\"stylesheet\" type=\"text/css\" />"; ! // Add JavaScript to postback the change in theme selection. ! $PageHead .= "<script src=\"./phpcvsview.js\"></script>"; ! $PageHead .= "</head>"; $PageHead .= "<body>"; if ($Heading != "") { $PageHead .= "<div class=\"title\">$Heading</div>"; } $PageHead .= "<p>Welcome to the CVS Repository viewing system for the phpCVSView project "; $PageHead .= "hosted at SourceForge.net</p><p>The goal of this project is simply to "; *************** *** 44,53 **** $PageHead .= "wonderful products available.</p><p>Kindest Regards,<br />Brian Cheeseman."; $PageHead .= "<br />phpCVSView Project Leader.</p>"; ! ! // $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> and <a href=\"mailto:si...@us...\">"; ! // $PageHead .= "Sijis Aviles</a>.</p><p>Please feel free to browse our source code.</p>"; return $PageHead; } --- 46,76 ---- $PageHead .= "wonderful products available.</p><p>Kindest Regards,<br />Brian Cheeseman."; $PageHead .= "<br />phpCVSView Project Leader.</p>"; ! $PageHead .= "<form class=\"themechanger\">Change Theme: <select name=\"ThemeSelect\" class=\"themechanger\" onchange=\"postBackThemeChange(this.form)\">"; ! foreach (GetThemeList() as $key=>$value) ! { ! $PageHead .= "<option value=\"$value\""; ! if ($value == $ThemeName) { ! $PageHead .= " selected"; ! } ! $PageHead .= ">$value</option>"; ! } ! $PageHead .= "</select>"; ! $PageHead .= "<input type=\"hidden\" name=\"URLRequest\" value=\"".$env['script_name'].""; ! $first = true; ! foreach ($_GET as $key=>$value) ! { ! if ($key != "tm") { ! if ($first != true) { ! $PageHead .= "&"; ! } ! else ! { ! $PageHead .= "?"; ! } ! $first = false; ! $PageHead .= $key."=".$value; ! } ! } ! $PageHead .= "\"></form>"; return $PageHead; } Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.css,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** theme.css 22 Dec 2004 11:05:59 -0000 1.7 --- theme.css 22 Jan 2005 13:58:20 -0000 1.8 *************** *** 48,51 **** --- 48,58 ---- font-weight: bold; } + .themechanger + { + font-size: 8pt; + text-align: left; + padding: 0px; + margin: 0px; + } .title { *************** *** 88,177 **** font-weight: normal; } - - /* - .geshi .de1, - .geshi .de2 - { - font-family: 'Courier New', Courier, monospace; - font-size: 12px; - font-weight: normal; - } - - .geshi .imp - { - font-weight: bold; - color: red; - } - - .geshi .kw1 - { - color: #b1b100; - } - - .geshi .kw2 - { - color: #000000; - font-weight: bold; - } - - .geshi .kw3 - { - color: #6666cc; - } - - .geshi .co1 - { - color: #808080; - font-style: italic; - } - - .geshi .co2 - { - color: #808080; - font-style: italic; - } - - .geshi .coMULTI - { - color: #808080; - font-style: italic; - } - - .geshi .es0 - { - color: #000099; - font-weight: bold; - } - - .geshi .br0 - { - color: #66cc66; - } - - .geshi .st0 - { - color: #ff0000; - } - - .geshi .nu0 - { - color: #cc66cc; - } - - .geshi .me1 - { - color: #006600; - } - - .geshi .me2 - { - color: #006600; - } - - .geshi .re0 - { - color: #0000ff; - } - - - */ \ No newline at end of file --- 95,96 ---- |
From: Brian C. <bch...@us...> - 2005-01-22 13:58:29
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28846 Modified Files: cvsview.php func_FileView.php utils.php Log Message: Added code to enable access to theme switching to the project. Still need to add code to set a cookie on the client machine. Index: utils.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/utils.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** utils.php 2 Oct 2004 02:53:35 -0000 1.2 --- utils.php 22 Jan 2005 13:58:20 -0000 1.3 *************** *** 97,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 --- 97,129 ---- function ImplodeToPath($Dirs, $Seperator, $Number) { $RetVal = ""; for ($Counter = 0; $Counter <= $Number; $Counter++) { if ($Dirs[$Counter] != "") { $RetVal .= $Seperator . $Dirs[$Counter]; } } return $RetVal; } + function GetThemeList() + { + $DirHandle = opendir('Themes'); + $ThemeList = Array(); + $ThemeCount = 0; + while ($Dir = readdir($DirHandle)) + { + if ((!ereg("[.]",$Dir))) + { + if($Dir != "CVS") + { + $ThemeList[$ThemeCount++] = $Dir; + } + } + } + closedir($DirHandle); + sort($ThemeList, SORT_STRING); + return $ThemeList; + } + ?> \ No newline at end of file Index: func_FileView.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileView.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** func_FileView.php 8 Jan 2005 04:38:26 -0000 1.10 --- func_FileView.php 22 Jan 2005 13:58:20 -0000 1.11 *************** *** 12,16 **** **/ ! if ($config['GeSHi']['Use']) { include_once($config['GeSHi']['Path'].'/geshi.php'); } --- 12,16 ---- **/ ! if ($config['GeSHi']['Enable']) { include_once($config['GeSHi']['Path'].'/geshi.php'); } *************** *** 55,59 **** echo "<hr />\n"; ! if ($config['GeSHi']['Use']) { // Create the GeSHi instance and parse the output. // TODO: setup code to auto identify the highlighting class to use for current file. --- 55,59 ---- echo "<hr />\n"; ! if ($config['GeSHi']['Enable']) { // Create the GeSHi instance and parse the output. // TODO: setup code to auto identify the highlighting class to use for current file. Index: cvsview.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/cvsview.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** cvsview.php 19 Dec 2004 10:27:04 -0000 1.17 --- cvsview.php 22 Jan 2005 13:58:20 -0000 1.18 *************** *** 14,18 **** require_once 'config.php'; ! global $config, $env; $REPOS = ""; --- 14,18 ---- require_once 'config.php'; ! global $config, $env, $ThemeName; $REPOS = ""; |
From: Brian C. <bch...@us...> - 2005-01-08 04:57:12
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16555 Modified Files: phpcvs.php Log Message: Fixed error in phpcvs.php causing an undefined index relating to the Branch member. Index: phpcvs.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/phpcvs.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** phpcvs.php 19 Dec 2004 04:51:37 -0000 1.18 --- phpcvs.php 8 Jan 2005 04:57:01 -0000 1.19 *************** *** 776,779 **** --- 776,788 ---- $LineProcessed = true; + // Start by initialising the array. + $this->FILES[$FileCount]["Head"] = ""; + $this->FILES[$FileCount]["Branch"] = ""; + $this->FILES[$FileCount]["Locks"] = ""; + $this->FILES[$FileCount]["Access"] = ""; + $this->FILES[$FileCount]["KeywordSubst"] = ""; + $this->FILES[$FileCount]["TotalRevs"] = ""; + $this->FILES[$FileCount]["SelectedRevs"] = ""; + $this->FILES[$FileCount]["Description"] = ""; } } |
From: Brian C. <bch...@us...> - 2005-01-08 04:38:35
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13535 Modified Files: func_FileView.php Log Message: Changed Configuration for the GeSHi connectivity. Index: func_FileView.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileView.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** func_FileView.php 22 Dec 2004 11:05:59 -0000 1.9 --- func_FileView.php 8 Jan 2005 04:38:26 -0000 1.10 *************** *** 12,17 **** **/ ! if ($config['UseGeSHi']) { ! include_once($config['GeSHiPath'].'/geshi.php'); } --- 12,17 ---- **/ ! if ($config['GeSHi']['Use']) { ! include_once($config['GeSHi']['Path'].'/geshi.php'); } *************** *** 55,59 **** echo "<hr />\n"; ! if ($config['UseGeSHi']) { // Create the GeSHi instance and parse the output. // TODO: setup code to auto identify the highlighting class to use for current file. --- 55,59 ---- echo "<hr />\n"; ! if ($config['GeSHi']['Use']) { // Create the GeSHi instance and parse the output. // TODO: setup code to auto identify the highlighting class to use for current file. *************** *** 64,68 **** } ! $geshi = new GeSHi($CVSServer->FILECONTENTS, $Language, $config['GeSHiHighlightersPath']); $geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS); $geshi->set_line_style('background: #fcfcfc;'); --- 64,68 ---- } ! $geshi = new GeSHi($CVSServer->FILECONTENTS, $Language, $config['GeSHi']['HighlightersPath']); $geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS); $geshi->set_line_style('background: #fcfcfc;'); |
From: Brian C. <bch...@us...> - 2005-01-08 04:35:08
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12911 Modified Files: config.php Log Message: Changed Configuration for the GeSHi connectivity. Index: config.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/config.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** config.php 22 Dec 2004 11:18:47 -0000 1.8 --- config.php 8 Jan 2005 04:34:59 -0000 1.9 *************** *** 1,37 **** ! <?php ! ! /** ! * This source code is distributed under the terms as layed out in the ! * GNU General Public License. ! * ! * Purpose: To store the configuration for this instance of phpCVSView ! * ! * @author Brian A Cheeseman <bch...@us...> ! * @version $Id$ ! * @copyright 2003-2004 Brian A Cheeseman ! **/ ! ! // The CVSROOT path to access as it is on the server, ie for this projects ! // repository the value should be "/cvsroot/phpcvsview" ! $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"; ! ! // Setup whether to use GeSHi project code for syntax highlighting or not. ! $config['UseGeSHi'] = true; ! $config['GeSHiPath'] = "geshi"; ! $config['GeSHiHighlightersPath'] = "geshi/geshi"; ! ! ?> --- 1,38 ---- ! <?php ! ! /** ! * This source code is distributed under the terms as layed out in the ! * GNU General Public License. ! * ! * Purpose: To store the configuration for this instance of phpCVSView ! * ! * @author Brian A Cheeseman <bch...@us...> ! * @version $Id$ ! * @copyright 2003-2004 Brian A Cheeseman ! **/ ! ! // The CVSROOT path to access as it is on the server, ie for this projects ! // repository the value should be "/cvsroot/phpcvsview" ! $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"; ! ! // Setup whether to use GeSHi project code for syntax highlighting or not. ! $config['GeSHi']['Enable'] = true; ! $config['GeSHi']['Path'] = "geshi"; ! $config['GeSHi']['HighlightersPath'] = "geshi/geshi"; ! ! ?> ! |
From: Brian C. <bch...@us...> - 2004-12-22 11:18:56
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10361 Modified Files: config.php Log Message: - Added config items for page title and page heading back in as these are currently required by the theme engine. Index: config.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/config.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** config.php 22 Dec 2004 11:14:51 -0000 1.7 --- config.php 22 Dec 2004 11:18:47 -0000 1.8 *************** *** 25,28 **** --- 25,33 ---- $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"; + // Setup whether to use GeSHi project code for syntax highlighting or not. $config['UseGeSHi'] = true; |
From: Brian C. <bch...@us...> - 2004-12-22 11:15:01
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9830 Modified Files: config.php Log Message: - Removed unused configuration variables from config.php Index: config.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/config.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** config.php 19 Dec 2004 03:00:46 -0000 1.6 --- config.php 22 Dec 2004 11:14:51 -0000 1.7 *************** *** 12,17 **** **/ ! // The CVSROOT path to access. For sourceforge you need the usual expansion ! // of the path based on the project name. $config['cvsroot'] = "/cvsroot/phpcvsview"; --- 12,17 ---- **/ ! // The CVSROOT path to access as it is on the server, ie for this projects ! // repository the value should be "/cvsroot/phpcvsview" $config['cvsroot'] = "/cvsroot/phpcvsview"; *************** *** 25,37 **** $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"; - // Setup whether to use GeSHi project code for syntax highlighting or not. $config['UseGeSHi'] = true; --- 25,28 ---- |