phpcvsview-cvs-updates Mailing List for PHP CVS Repository Viewer (Page 8)
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...> - 2004-12-22 11:06:39
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8352/Themes/Default Modified Files: theme.css theme.php Log Message: - Further cleanup of default theme. - Altered GeSHi code to add a basic highlighter detection. - Optimised some of the XHTML output from the theme. Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** theme.php 19 Dec 2004 09:45:10 -0000 1.6 --- theme.php 22 Dec 2004 11:06:00 -0000 1.7 *************** *** 32,40 **** $PageHead .= "<div class=\"title\">$Heading</div>"; } ! ! $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; } --- 32,53 ---- $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 .= "<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; } *************** *** 43,47 **** 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://www.w3c.org/Icons/valid-css\" alt=\"Valid CSS!\" /></a></p>"; --- 56,63 ---- 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>"; *************** *** 87,91 **** $QLOut .= "</a>"; } ! $QLOut .= "</div>\n"; return $QLOut; } --- 103,107 ---- $QLOut .= "</a>"; } ! $QLOut .= "</div>"; return $QLOut; } *************** *** 94,100 **** { 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"; } --- 110,116 ---- { 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"; } *************** *** 102,106 **** function endDirList() { ! echo " </table>\n"; echo "<hr />"; } --- 118,122 ---- function endDirList() { ! echo "</table>"; echo "<hr />"; } *************** *** 110,121 **** global $RowClass, $ParentIcon, $env; $HREF = str_replace("//", "/", $env['script_name']."?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=\"".$env['script_path']."/$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"; } --- 126,137 ---- 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"; } *************** *** 126,137 **** foreach ($Folders as $Folder) { $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$Folder["Name"]."/"); ! echo " <tr class=\"$RowClass\">\n"; ! echo " <td align=\"center\"><a href=\"$HREF\"><img alt=\"DIR\" src=\"".$env['script_path']."/$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"; --- 142,153 ---- 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"; *************** *** 148,159 **** // Add the row data here. $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$Val."/"); ! echo " <tr class=\"$RowClass\">\n"; ! echo " <td align=\"center\"><a href=\"$HREF\"><img alt=\"MOD\" src=\"".$env['script_path']."/$ModuleIcon\" /></a></td>\n"; ! echo " <td><a href=\"$HREF\">".$Key."</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"; --- 164,175 ---- // 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"; *************** *** 171,182 **** $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo " <tr class=\"$RowClass\">\n"; ! echo " <td align=\"center\"><a href=\"$HREF&fh\"><img alt=\"FILE\" src=\"".$env['script_path']."/$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"; --- 187,198 ---- $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"; Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.css,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** theme.css 19 Dec 2004 09:45:09 -0000 1.6 --- theme.css 22 Dec 2004 11:05:59 -0000 1.7 *************** *** 60,64 **** font-size: 8pt; border: 0px none; ! width: 100%; border-spacing: 0px 0px; border-collapse: collapse; --- 60,71 ---- 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; *************** *** 66,72 **** td { ! padding: 3px; } .geshi .de1, .geshi .de2 --- 73,93 ---- 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; } + /* .geshi .de1, .geshi .de2 *************** *** 152,153 **** --- 173,177 ---- color: #0000ff; } + + + */ \ No newline at end of file |
From: Brian C. <bch...@us...> - 2004-12-22 11:06:38
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8352 Modified Files: func_FileView.php Log Message: - Further cleanup of default theme. - Altered GeSHi code to add a basic highlighter detection. - Optimised some of the XHTML output from the theme. Index: func_FileView.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileView.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** func_FileView.php 19 Dec 2004 03:00:49 -0000 1.8 --- func_FileView.php 22 Dec 2004 11:05:59 -0000 1.9 *************** *** 58,71 **** // Create the GeSHi instance and parse the output. // TODO: setup code to auto identify the highlighting class to use for current file. ! $geshi = new GeSHi($CVSServer->FILECONTENTS, "php", $config['GeSHiHighlightersPath']); $geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS); $geshi->set_line_style('background: #fcfcfc;'); $geshi->set_tab_width(4); ! $geshi->enable_classes(); ! $geshi->set_overall_class('geshi'); $hlcontent = $geshi->parse_code(); // Display the file contents. echo $hlcontent; } else --- 58,79 ---- // Create the GeSHi instance and parse the output. // TODO: setup code to auto identify the highlighting class to use for current file. ! $FileExt = substr($File, strrpos($File, ".")+1); ! $Language = guess_highlighter($FileExt); ! if (is_array($Language)) { ! $Language = $Language[0]; ! } ! ! $geshi = new GeSHi($CVSServer->FILECONTENTS, $Language, $config['GeSHiHighlightersPath']); $geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS); $geshi->set_line_style('background: #fcfcfc;'); $geshi->set_tab_width(4); ! // $geshi->enable_classes(); ! // $geshi->set_overall_class('geshi2'); $hlcontent = $geshi->parse_code(); // Display the file contents. + echo "<table class=\"source\"><tr><td>"; echo $hlcontent; + echo "</td></tr></table>"; } else |
From: Brian C. <bch...@us...> - 2004-12-22 11:06:25
|
Update of /cvsroot/phpcvsview/phpcvsview/geshi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8352/geshi Modified Files: geshi.php Log Message: - Further cleanup of default theme. - Altered GeSHi code to add a basic highlighter detection. - Optimised some of the XHTML output from the theme. Index: geshi.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/geshi/geshi.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** geshi.php 20 Dec 2004 07:28:58 -0000 1.1 --- geshi.php 22 Dec 2004 11:06:00 -0000 1.2 *************** *** 2411,2413 **** --- 2411,2472 ---- } + /** + * function: guess_highlighter + * --------------------------- + * This function attempts to identify the highlighter to use for a + * given file extension. + */ + function guess_highlighter($fileExtension) + { + $highlightmappings = array( + 'as' => 'actionscript', + 'ada' => 'ada', + 'conf' => 'apache', + 'asm' => 'asm', + 'asp' => 'asp', + 'sh' => 'bash', + 'c' => 'c,c_mac,objc', + 'dcl' => 'caddcl', + 'lisp' => 'cadlisp,lisp', + 'cpp' => 'cpp', + 'c++' => 'cpp', + 'cxx' => 'cpp', + 'cs' => 'csharp', + 'css' => 'css', + 'pas' => 'delphi,pascal', + 'htm' => 'html4script', + 'html' => 'html4script', + 'java' => 'java', + 'js' => 'javascript', + 'lua' => 'lua', + 'nsi' => 'nsis', + 'bas' => 'oobas,qbasic', + 'pl' => 'perl', + 'php' => 'php,php-brief', + 'php3' => 'php,php-brief', + 'php4' => 'php,php-brief', + 'php5' => 'php,php-brief', + 'py' => 'python', + 'tpl' => 'smarty', + 'sql' => 'sql', + 'vb' => 'vb,vbnet', + 'fky' => 'visualfoxpro', + 'xml' => 'xml' + ); + + $highlighter = $highlightmappings[$fileExtension]; + if ($highlighter == null) { + $highlighter = ""; + } + $pos = strpos($highlighter, ","); + if ($pos === false) { + return $highlighter; + } + else + { + $arr = explode(",", $highlighter); + return $arr; + } + } + ?> |
Update of /cvsroot/phpcvsview/phpcvsview/geshi/geshi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8380/geshi Added Files: actionscript.php ada.php apache.php asm.php asp.php bash.php c.php c_mac.php caddcl.php cadlisp.php cpp.php csharp.php css-gen.cfg css.php delphi.php html4strict.php java.php javascript.php lisp.php lua.php nsis.php objc.php oobas.php pascal.php perl.php php-brief.php php.php python.php qbasic.php smarty.php sql.php vb.php vbnet.php visualfoxpro.php xml.php Log Message: - Added GeSHi source code to the repository. For details relating to GeSHi please see it's website at http://qbnz.com/highlighter/ --- NEW FILE: c.php --- <?php /************************************************************************************* * c.php * ----- * Author: Nigel McNie (ora...@gm...) * Contributors: * - Jack Lloyd (ll...@ra...) * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) * Release Version: 1.0.4 * CVS Revision Version: $Revision: 1.1 $ * Date Started: 2004/06/04 * Last Modified: $Date: 2004/12/20 07:29:01 $ * * C language file for GeSHi. * * CHANGES * ------- * 2004/XX/XX (1.0.4) * - Added a couple of new keywords (Jack Lloyd) * 2004/11/27 (1.0.3) * - Added support for multiple object splitters * 2004/10/27 (1.0.2) * - Added support for URLs * 2004/08/05 (1.0.1) * - Added support for symbols * 2004/07/14 (1.0.0) * - First Release * * TODO (updated 2004/11/27) * ------------------------- * - Get a list of inbuilt functions to add (and explore C more * to complete this rather bare language file * ************************************************************************************* * * This file is part of GeSHi. * * GeSHi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * GeSHi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GeSHi; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ************************************************************************************/ $language_data = array ( 'LANG_NAME' => 'C', 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), 'COMMENT_MULTI' => array('/*' => '*/'), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array("'", '"'), 'ESCAPE_CHAR' => '\\', 'KEYWORDS' => array( 1 => array( 'if', 'return', 'while', 'case', 'continue', 'default', 'do', 'else', 'for', 'switch', 'goto' ), 2 => array( 'null', 'false', 'break', 'true', 'function', 'enum', 'extern', 'inline' ), 3 => array( 'printf', 'cout' ), 4 => array( 'auto', 'char', 'const', 'double', 'float', 'int', 'long', 'register', 'short', 'signed', 'sizeof', 'static', 'string', 'struct', 'typedef', 'union', 'unsigned', 'void', 'volatile', 'wchar_t' ), ), 'SYMBOLS' => array( '(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':' ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => true, 1 => false, 2 => false, 3 => false, 4 => false, ), 'STYLES' => array( 'KEYWORDS' => array( 1 => 'color: #b1b100;', 2 => 'color: #000000; font-weight: bold;', 3 => 'color: #000066;', 4 => 'color: #993333;' ), 'COMMENTS' => array( 1 => 'color: #808080; font-style: italic;', 2 => 'color: #339933;', 'MULTI' => 'color: #808080; font-style: italic;' ), 'ESCAPE_CHAR' => array( 0 => 'color: #000099; font-weight: bold;' ), 'BRACKETS' => array( 0 => 'color: #66cc66;' ), 'STRINGS' => array( 0 => 'color: #ff0000;' ), 'NUMBERS' => array( 0 => 'color: #cc66cc;' ), 'METHODS' => array( 1 => 'color: #202020;', 2 => 'color: #202020;' ), 'SYMBOLS' => array( 0 => 'color: #66cc66;' ), 'REGEXPS' => array( ), 'SCRIPT' => array( ) ), 'URLS' => array( 1 => '', 2 => '', 3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAME}.html', 4 => '' ), 'OOLANG' => true, 'OBJECT_SPLITTERS' => array( 1 => '.', 2 => '::' ), 'REGEXPS' => array( ), 'STRICT_MODE_APPLIES' => GESHI_NEVER, 'SCRIPT_DELIMITERS' => array( ), 'HIGHLIGHT_STRICT_BLOCK' => array( ) ); ?> --- NEW FILE: vbnet.php --- <?php /************************************************************************************* * vbnet.php * --------- * Author: Alan Juden (al...@ju...) * Copyright: (c) 2004 Alan Juden, Nigel McNie (http://qbnz.com/highlighter) * Release Version: 1.0.0 * CVS Revision Version: $Revision: 1.1 $ * Date Started: 2004/06/04 * Last Modified: $Date: 2004/12/20 07:29:02 $ * * VB.NET language file for GeSHi. * * CHANGES * ------- * 2004/11/27 (1.0.0) * - Initial release * * TODO (updated 2004/11/27) * ------------------------- * ************************************************************************************* * * This file is part of GeSHi. * * GeSHi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * GeSHi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GeSHi; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ************************************************************************************/ $language_data = array ( 'LANG_NAME' => 'vb.net', 'COMMENT_SINGLE' => array(1 => "'"), 'COMMENT_MULTI' => array(), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array('"'), 'ESCAPE_CHAR' => '', 'KEYWORDS' => array( 1 => array( '3DDKSHADOW', '3DHIGHLIGHT', '3DLIGHT', 'ABORT', 'ABORTRETRYIGNORE', 'ACTIVEBORDER', 'ACTIVETITLEBAR', 'ALIAS', 'APPLICATIONMODAL', 'APPLICATIONWORKSPACE', 'ARCHIVE', 'BACK', 'BINARYCOMPARE', 'BLACK', 'BLUE', 'BUTTONFACE', 'BUTTONSHADOW', 'BUTTONTEXT', 'CANCEL', 'CDROM', 'CR', 'CRITICAL', 'CRLF', 'CYAN', 'DEFAULT', 'DEFAULTBUTTON1', 'DEFAULTBUTTON2', 'DEFAULTBUTTON3', 'DESKTOP', 'DIRECTORY', 'EXCLAMATION', 'FALSE', 'FIXED', 'FORAPPENDING', 'FORMFEED', 'FORREADING', 'FORWRITING', 'FROMUNICODE', 'GRAYTEXT', 'GREEN', 'HIDDEN', 'HIDE', 'HIGHLIGHT', 'HIGHLIGHTTEXT', 'HIRAGANA', 'IGNORE', 'INACTIVEBORDER', 'INACTIVECAPTIONTEXT', 'INACTIVETITLEBAR', 'INFOBACKGROUND', 'INFORMATION', 'INFOTEXT', 'KATAKANALF', 'LOWERCASE', 'MAGENTA', 'MAXIMIZEDFOCUS', 'MENUBAR', 'MENUTEXT', 'METHOD', 'MINIMIZEDFOCUS', 'MINIMIZEDNOFOCUS', 'MSGBOXRIGHT', 'MSGBOXRTLREADING', 'MSGBOXSETFOREGROUND', 'NARROW', 'NEWLINE', 'NO', 'NORMAL', 'NORMALFOCUS', 'NORMALNOFOCUS', 'NULLSTRING', 'OBJECTERROR', 'OK', 'OKCANCEL', 'OKONLY', 'PROPERCASE', 'QUESTION', 'RAMDISK', 'READONLY', 'RED', 'REMOTE', 'REMOVABLE', 'RETRY', 'RETRYCANCEL', 'SCROLLBARS', 'SYSTEMFOLDER', 'SYSTEMMODAL', 'TAB', 'TEMPORARYFOLDER', 'TEXTCOMPARE', 'TITLEBARTEXT', 'TRUE', 'UNICODE', 'UNKNOWN', 'UPPERCASE', 'VERTICALTAB', 'VOLUME', 'WHITE', 'WIDE', 'WIN16', 'WIN32', 'WINDOWBACKGROUND', 'WINDOWFRAME', 'WINDOWSFOLDER', 'WINDOWTEXT', 'YELLOW', 'YES', 'YESNO', 'YESNOCANCEL' ), 2 => array( 'As', 'ADDHANDLER', 'ASSEMBLY', 'AUTO', 'Binary', 'ByRef', 'ByVal', 'BEGINEPILOGUE', 'Else', 'Empty', 'Error', 'ENDPROLOGUE', 'EXTERNALSOURCE', 'ENVIRON', 'For', 'Friend', 'GET', 'HANDLES', 'Input', 'Is', 'Len', 'Lock', 'Me', 'Mid', 'MUSTINHERIT', 'MYBASE', 'MYCLASS', 'New', 'Next', 'Nothing', 'Null', 'NOTINHERITABLE', 'NOTOVERRIDABLE', 'OFF', 'On', 'Option', 'Optional', 'OVERRIDABLE', 'ParamArray', 'Print', 'Private', 'Property', 'Public', 'Resume', 'Seek', 'Static', 'Step', 'String', 'SHELL', 'SENDKEYS', 'SET', 'Then', 'Time', 'To', 'THROW', 'WithEvents' ), 3 => array( 'COLLECTION', 'DEBUG', 'DICTIONARY', 'DRIVE', 'DRIVES', 'ERR', 'FILE', 'FILES', 'FILESYSTEMOBJECT', 'FOLDER', 'FOLDERS', 'TEXTSTREAM' ), 4 => array( 'BOOLEAN', 'BYTE', 'DATE', 'DECIMIAL', 'DOUBLE', 'INTEGER', 'LONG', 'OBJECT', 'SINGLE STRING' ), 5 => array( 'ADDRESSOF', 'AND', 'BITAND', 'BITNOT', 'BITOR', 'BITXOR', 'GETTYPE', 'LIKE', 'MOD', 'NOT', 'ORXOR' ), 6 => array( 'APPACTIVATE', 'BEEP', 'CALL', 'CHDIR', 'CHDRIVE', 'CLASS', 'CASE', 'CATCH', 'DECLARE', 'DELEGATE', 'DELETESETTING', 'DIM', 'DO', 'DOEVENTS', 'END', 'ENUM', 'EVENT', 'EXIT', 'EACH', 'FUNCTION', 'FINALLY', 'IF', 'IMPORTS', 'INHERITS', 'INTERFACE', 'IMPLEMENTS', 'KILL', 'LOOP', 'MIDB', 'NAMESPACE', 'OPEN', 'PUT', 'RAISEEVENT', 'RANDOMIZE', 'REDIM', 'REM', 'RESET', 'SAVESETTING', 'SELECT', 'SETATTR', 'STOP', 'SUB', 'SYNCLOCK', 'STRUCTURE', 'SHADOWS', 'SWITCH', 'TIMEOFDAY', 'TODAY', 'TRY', 'WIDTH', 'WITH', 'WRITE', 'WHILE' ), 7 => array( 'ABS', 'ARRAY', 'ASC', 'ASCB', 'ASCW', 'CALLBYNAME', 'CBOOL', 'CBYTE', 'CCHAR', 'CCHR', 'CDATE', 'CDBL', 'CDEC', 'CHOOSE', 'CHR', 'CHR$', 'CHRB', 'CHRB$', 'CHRW', 'CINT', 'CLNG', 'CLNG8', 'CLOSE', 'COBJ', 'COMMAND', 'COMMAND$', 'CONVERSION', 'COS', 'CREATEOBJECT', 'CSHORT', 'CSTR', 'CURDIR', 'CTYPE', 'CVDATE', 'DATEADD', 'DATEDIFF', 'DATEPART', 'DATESERIAL', 'DATEVALUE', 'DAY', 'DDB', 'DIR', 'DIR$', 'EOF', 'ERROR$', 'EXP', 'FILEATTR', 'FILECOPY', 'FILEDATATIME', 'FILELEN', 'FILTER', 'FIX', 'FORMAT', 'FORMAT$', 'FORMATCURRENCY', 'FORMATDATETIME', 'FORMATNUMBER', 'FORMATPERCENT', 'FREEFILE', 'FV', 'GETALLSETTINGS', 'GETATTRGETOBJECT', 'GETSETTING', 'HEX', 'HEX$', 'HOUR', 'IIF', 'IMESTATUS', 'INPUT$', 'INPUTB', 'INPUTB$', 'INPUTBOX', 'INSTR', 'INSTRB', 'INSTRREV', 'INT', 'IPMT', 'IRR', 'ISARRAY', 'ISDATE', 'ISEMPTY', 'ISERROR', 'ISNULL', 'ISNUMERIC', 'ISOBJECT', 'JOIN', 'LBOUND', 'LCASE', 'LCASE$', 'LEFT', 'LEFT$', 'LEFTB', 'LEFTB$', 'LENB', 'LINEINPUT', 'LOC', 'LOF', 'LOG', 'LTRIM', 'LTRIM$', 'MID$', 'MIDB', 'MIDB$', 'MINUTE', 'MIRR', 'MKDIR', 'MONTH', 'MONTHNAME', 'MSGBOX', 'NOW', 'NPER', 'NPV', 'OCT', 'OCT$', 'PARTITION', 'PMT', 'PPMT', 'PV', 'RATE', 'REPLACE', 'RIGHT', 'RIGHT$', 'RIGHTB', 'RIGHTB$', 'RMDIR', 'RND', 'RTRIM', 'RTRIM$', 'SECOND', 'SIN', 'SLN', 'SPACE', 'SPACE$', 'SPC', 'SPLIT', 'STR', 'STR$', 'STRCOMP', 'STRCONV', 'STRING$', 'STRREVERSE', 'SYD', 'TAB', 'TAN', 'TIMEOFDAY', 'TIMER', 'TIMESERIAL', 'TIMEVALUE', 'TODAY', 'TRIM', 'TRIM$', 'TYPENAME', 'UBOUND', 'UCASE', 'UCASE$', 'VAL', 'WEEKDAY', 'WEEKDAYNAME', 'YEAR' ), 8 => array( 'ANY', 'ATN', 'CALENDAR', 'CIRCLE', 'CURRENCY', 'DEFBOOL', 'DEFBYTE', 'DEFCUR', 'DEFDATE', 'DEFDBL', 'DEFDEC', 'DEFINT', 'DEFLNG', 'DEFOBJ', 'DEFSNG', 'DEFSTR', 'DEFVAR', 'EQV', 'GOSUB', 'IMP', 'INITIALIZE', 'ISMISSING', 'LET', 'LINE', 'LSET', 'RSET', 'SGN', 'SQR', 'TERMINATE', 'VARIANT', 'VARTYPE', 'WEND' ), ), 'SYMBOLS' => array( '&', '&=', '*', '*=', '+', '+=', '-', '-=', '//', '/', '/=', '=', '\\', '\\=', '^', '^=' ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => true, 1 => false, 2 => false, 3 => false, 4 => false, 5 => false, 6 => false, 7 => false, 8 => false, ), 'STYLES' => array( 'KEYWORDS' => array( 1 => 'color: #0600FF;', //Constants 2 => 'color: #FF8000;', //Keywords 3 => 'color: #008000;', //Data Types 4 => 'color: #FF0000;', //Objects 5 => 'color: #804040;', //Operators 6 => 'color: #0600FF;', //Statements 7 => 'color: #0600FF;', //Functions 8 => 'color: #0600FF;' //Deprecated ), 'COMMENTS' => array( 1 => 'color: #008080; font-style: italic;', 2 => 'color: #008080;', 'MULTI' => 'color: #008080; font-style: italic;' ), 'ESCAPE_CHAR' => array( 0 => 'color: #008080; font-weight: bold;' ), 'BRACKETS' => array( 0 => 'color: #000000;' ), 'STRINGS' => array( 0 => 'color: #808080;' ), 'NUMBERS' => array( 0 => 'color: #FF0000;' ), 'METHODS' => array( 1 => 'color: #0000FF;' ), 'SYMBOLS' => array( 0 => 'color: #008000;' ), 'REGEXPS' => array( ), 'SCRIPT' => array( ) ), 'URLS' => array( 1 => '', 2 => '', 3 => 'http://www.google.com/search?q={FNAME}+msdn.microsoft.com', 4 => '' ), 'OOLANG' => true, 'OBJECT_SPLITTERS' => array( 1 =>'.' ), 'REGEXPS' => array( ), 'STRICT_MODE_APPLIES' => GESHI_NEVER, 'SCRIPT_DELIMITERS' => array( ), 'HIGHLIGHT_STRICT_BLOCK' => array( ) ); ?> --- NEW FILE: html4strict.php --- <?php /************************************************************************************* * html4strict.php * --------------- * Author: Nigel McNie (ora...@gm...) * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) * Release Version: 1.0.3 * CVS Revision Version: $Revision: 1.1 $ * Date Started: 2004/07/10 * Last Modified: $Date: 2004/12/20 07:29:02 $ * * HTML 4.01 strict language file for GeSHi. * * CHANGES * ------- * 2004/11/27 (1.0.3) * - Added support for multiple object splitters * 2004/10/27 (1.0.2) * - Added support for URLs * 2004/08/05 (1.0.1) * - Added INS and DEL * - Removed the background colour from tags' styles * 2004/07/14 (1.0.0) * - First Release * * TODO (updated 2004/11/27) * ------------------------- * * Check that only HTML4 strict attributes are highlighted * * Eliminate empty tags that aren't allowed in HTML4 strict * * Split to several files - html4trans, xhtml1 etc * ************************************************************************************* * * This file is part of GeSHi. * * GeSHi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * GeSHi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GeSHi; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ************************************************************************************/ $language_data = array ( 'LANG_NAME' => 'HTML', 'COMMENT_SINGLE' => array(), 'COMMENT_MULTI' => array('<!--' => '-->'), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array("'", '"'), 'ESCAPE_CHAR' => '\\', 'KEYWORDS' => array( 1 => array( ), 2 => array( '<a>', '<abbr>', '<acronym>', '<address>', '<applet>', '<a', '<abbr', '<acronym', '<address', '<applet', '</a>', '</abbr>', '</acronym>', '</address>', '</applet>', '</a', '</abbr', '</acronym', '</address', '</applet', '<base>', '<basefont>', '<bdo>', '<big>', '<blockquote>', '<body>', '<br>', '<button>', '<b>', '<base', '<basefont', '<bdo', '<big', '<blockquote', '<body', '<br', '<button', '<b', '</base>', '</basefont>', '</bdo>', '</big>', '</blockquote>', '</body>', '</br>', '</button>', '</b>', '</base', '</basefont', '</bdo', '</big', '</blockquote', '</body', '</br', '</button', '</b', '<caption>', '<center>', '<cite>', '<code>', '<colgroup>', '<col>', '<caption', '<center', '<cite', '<code', '<colgroup', '<col', '</caption>', '</center>', '</cite>', '</code>', '</colgroup>', '</col>', '</caption', '</center', '</cite', '</code', '</colgroup', '</col', '<dd>', '<del>', '<dfn>', '<dir>', '<div>', '<dl>', '<dt>', '<dd', '<del', '<dfn', '<dir', '<div', '<dl', '<dt', '</dd>', '</del>', '</dfn>', '</dir>', '</div>', '</dl>', '</dt>', '</dd', '</del', '</dfn', '</dir', '</div', '</dl', '</dt', '<em>', '<em', '</em>', '</em', '<fieldset>', '<font>', '<form>', '<frame>', '<frameset>', '<fieldset', '<font', '<form', '<frame', '<frameset', '</fieldset>', '</font>', '</form>', '</frame>', '</frameset>', '</fieldset', '</font', '</form', '</frame', '</frameset', '<h1>', '<h2>', '<h3>', '<h4>', '<h5>', '<h6>', '<head>', '<hr>', '<html>', '<h1', '<h2', '<h3', '<h4', '<h5', '<h6', '<head', '<hr', '<html', '</h1>', '</h2>', '</h3>', '</h4>', '</h5>', '</h6>', '</head>', '</hr>', '</html>', '</h1', '</h2', '</h3', '</h4', '</h5', '</h6', '</head', '</hr', '</html', '<iframe>', '<ilayer>', '<img>', '<input>', '<ins>', '<isindex>', '<i>', '<iframe', '<ilayer', '<img', '<input', '<ins', '<isindex', '<i', '</iframe>', '</ilayer>', '</img>', '</input>', '</ins>', '</isindex>', '</i>', '</iframe', '</ilayer', '</img', '</input', '</ins', '</isindex', '</i', '<kbd>', '<kbd', '&t;/kbd>', '</kbd', '<label>', '<legend>', '<link>', '<li>', '<label', '<legend', '<link', '<li', '</label>', '</legend>', '</link>', '</li>', '</label', '</legend', '</link', '</li', '<map>', '<meta>', '<map', '<meta', '</map>', '</meta>', '</map', '</meta', '<noframes>', '<noscript>', '<noframes', '<noscript', '</noframes>', '</noscript>', '</noframes', '</noscript', '<object>', '<ol>', '<optgroup>', '<option>', '<object', '<ol', '<optgroup', '<option', '</object>', '</ol>', '</optgroup>', '</option>', '</object', '</ol', '</optgroup', '</option', '<param>', '<pre>', '<p>', '<param', '<pre', '<p', '</param>', '</pre>', '</p>', '</param', '</pre', '</p', '<q>', '<q', '</q>', '</q', '<samp>', '<script>', '<select>', '<small>', '<span>', '<strike>', '<strong>', '<style>', '<sub>', '<sup>', '<s>', '<samp', '<script', '<select', '<small', '<span', '<strike', '<strong', '<style', '<sub', '<sup', '<s', '</samp>', '</script>', '</select>', '</small>', '</span>', '</strike>', '</strong>', '</style>', '</sub>', '</sup>', '</s>', '</samp', '</script', '</select', '</small', '</span', '</strike', '</strong', '</style', '</sub', '</sup', '</s', '<table>', '<tbody>', '<td>', '<textarea>', '<text>', '<tfoot>', '<thead>', '<th>', '<title>', '<tr>', '<tt>', '<table', '<tbody', '<td', '<textarea', '<text', '<tfoot', '<tfoot', '<thead', '<th', '<title', '<tr', '<tt', '</table>', '</tbody>', '</td>', '</textarea>', '</text>', '</tfoot>', '</thead', '</tfoot', '</th>', '</title>', '</tr>', '</tt>', '</table', '</tbody', '</td', '</textarea', '</text', '</tfoot', '</tfoot', '</thead', '</th', '</title', '</tr', '</tt', '<ul>', '<u>', '<ul', '<u', '</ul>', '</ul>', '</ul', '</u', '<var>', '<var', '</var>', '</var', '>', '<' ), 3 => array( 'abbr', 'accept-charset', 'accept', 'accesskey', 'action', 'align', 'alink', 'alt', 'archive', 'axis', 'background', 'bgcolor', 'border', 'cellpadding', 'cellspacing', 'char', 'char', 'charoff', 'charset', 'checked', 'cite', 'class', 'classid', 'clear', 'code', 'codebase', 'codetype', 'color', 'cols', 'colspan', 'compact', 'content', 'coords', 'data', 'datetime', 'declare', 'defer', 'dir', 'disabled', 'enctype', 'face', 'for', 'frame', 'frameborder', 'headers', 'height', 'href', 'hreflang', 'hspace', 'http-equiv', 'id', 'ismap', 'label', 'lang', 'language', 'link', 'longdesc', 'marginheight', 'marginwidth', 'maxlength', 'media', 'method', 'multiple', 'name', 'nohref', 'noresize', 'noshade', 'nowrap', 'object', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onfocus', 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 'onmousedown', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onreset', 'onselect', 'onsubmit', 'onunload', 'profile', 'prompt', 'readonly', 'rel', 'rev', 'rowspan', 'rows', 'rules', 'scheme', 'scope', 'scrolling', 'selected', 'shape', 'size', 'span', 'src', 'standby', 'start', 'style', 'summary', 'tabindex', 'target', 'text', 'title', 'type', 'usemap', 'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace', 'width' ) ), 'SYMBOLS' => array( '/', '=' ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => false, 1 => false, 2 => false, 3 => false, ), 'STYLES' => array( 'KEYWORDS' => array( 1 => 'color: #b1b100;', 2 => 'color: #000000; font-weight: bold;', 3 => 'color: #000066;' ), 'COMMENTS' => array( 'MULTI' => 'color: #808080; font-style: italic;' ), 'ESCAPE_CHAR' => array( 0 => 'color: #000099; font-weight: bold;' ), 'BRACKETS' => array( 0 => 'color: #66cc66;' ), 'STRINGS' => array( 0 => 'color: #ff0000;' ), 'NUMBERS' => array( 0 => 'color: #cc66cc;' ), 'METHODS' => array( ), 'SYMBOLS' => array( 0 => 'color: #66cc66;' ), 'SCRIPT' => array( 0 => 'color: #00bbdd;', 1 => 'color: #ddbb00;', 2 => 'color: #009900;' ), 'REGEXPS' => array( ) ), 'URLS' => array( 1 => '', 2 => 'http://december.com/html/4/element/{FNAME}.html', 3 => '' ), 'OOLANG' => false, 'OBJECT_SPLITTERS' => array( ), 'REGEXPS' => array( ), 'STRICT_MODE_APPLIES' => GESHI_ALWAYS, 'SCRIPT_DELIMITERS' => array( 0 => array( '<!DOCTYPE' => '>' ), 1 => array( '&' => ';' ), 2 => array( '<' => '>' ) ), 'HIGHLIGHT_STRICT_BLOCK' => array( 0 => false, 1 => false, 2 => true ) ); ?> --- NEW FILE: java.php --- <?php /************************************************************************************* * java.php * -------- * Author: Nigel McNie (ora...@gm...) * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) * Release Version: 1.0.3 * CVS Revision Version: $Revision: 1.1 $ * Date Started: 2004/07/10 * Last Modified: $Date: 2004/12/20 07:29:02 $ * * Java language file for GeSHi. * * CHANGES * ------- * 2004/11/27 (1.0.3) * - Added support for multiple object splitters * 2004/08/05 (1.0.2) * - Added URL support [...1363 lines suppressed...] 1 => '', 2 => '', 3 => 'http://www.google.com/search?q=allinurl%3A{FNAME}+java.sun.com&bntl=1', 4 => '' ), 'OOLANG' => true, 'OBJECT_SPLITTERS' => array( 1 => '.', 2 => '::' ), 'REGEXPS' => array( ), 'STRICT_MODE_APPLIES' => GESHI_NEVER, 'SCRIPT_DELIMITERS' => array( ), 'HIGHLIGHT_STRICT_BLOCK' => array( ) ); ?> --- NEW FILE: sql.php --- <?php /************************************************************************************* * sql.php * ------- * Author: Nigel McNie (ora...@gm...) * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter) * Release Version: 1.0.3 * CVS Revision Version: $Revision: 1.1 $ * Date Started: 2004/06/04 * Last Modified: $Date: 2004/12/20 07:29:02 $ * * SQL language file for GeSHi. * * CHANGES * ------- * 2004/11/27 (1.0.3) * - Added support for multiple object splitters * 2004/10/27 (1.0.2) * - Added "`" string delimiter * - Added "#" single comment starter * 2004/08/05 (1.0.1) * - Added support for symbols * - Added many more keywords (mostly MYSQL keywords) * 2004/07/14 (1.0.0) * - First Release * * TODO (updated 2004/11/27) * ------------------------- * * Add all keywords * * Split this to several sql files - mysql-sql, ansi-sql etc * ************************************************************************************* * * This file is part of GeSHi. * * GeSHi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * GeSHi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GeSHi; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ************************************************************************************/ $language_data = array ( 'LANG_NAME' => 'SQL', 'COMMENT_SINGLE' => array(1 =>'--', 2 => '#'), 'COMMENT_MULTI' => array(), 'CASE_KEYWORDS' => 1, 'QUOTEMARKS' => array("'", '"', '`'), 'ESCAPE_CHAR' => '\\', 'KEYWORDS' => array( 1 => array( 'ALL', 'ASC', 'AS', 'ALTER', 'AND', 'ADD', 'AUTO_INCREMENT', 'BETWEEN', 'BINARY', 'BOTH', 'BY', 'BOOLEAN', 'CHANGE', 'CHECK', 'COLUMNS', 'COLUMN', 'CROSS','CREATE', 'DATABASES', 'DATABASE', 'DATA', 'DELAYED', 'DESCRIBE', 'DESC', 'DISTINCT', 'DELETE', 'DROP', 'DEFAULT', 'ENCLOSED', 'ESCAPED', 'EXISTS', 'EXPLAIN', 'FIELDS', 'FIELD', 'FLUSH', 'FOR', 'FOREIGN', 'FUNCTION', 'FROM', 'GROUP', 'GRANT', 'HAVING', 'IGNORE', 'INDEX', 'INFILE', 'INSERT', 'INNER', 'INTO', 'IDENTIFIED', 'IN', 'IS', 'IF', 'JOIN', 'KEYS', 'KILL','KEY', 'LEADING', 'LIKE', 'LIMIT', 'LINES', 'LOAD', 'LOCAL', 'LOCK', 'LOW_PRIORITY', 'LEFT', 'LANGUAGE', 'MODIFY', 'NATURAL', 'NOT', 'NULL', 'NEXTVAL', 'OPTIMIZE', 'OPTION', 'OPTIONALLY', 'ORDER', 'OUTFILE', 'OR', 'OUTER', 'ON', 'PROCEEDURE','PROCEDURAL', 'PRIMARY', 'READ', 'REFERENCES', 'REGEXP', 'RENAME', 'REPLACE', 'RETURN', 'REVOKE', 'RLIKE', 'RIGHT', 'SHOW', 'SONAME', 'STATUS', 'STRAIGHT_JOIN', 'SELECT', 'SETVAL', 'SET', 'TABLES', 'TEMINATED', 'TO', 'TRAILING','TRUNCATE', 'TABLE', 'TEMPORARY', 'TRIGGER', 'TRUSTED', 'UNIQUE', 'UNLOCK', 'USE', 'USING', 'UPDATE', 'UNSIGNED', 'VALUES', 'VARIABLES', 'VIEW', 'WITH', 'WRITE', 'WHERE', 'ZEROFILL', 'XOR', ) ), 'SYMBOLS' => array( '(', ')', '=', '<', '>', '|' ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => false, 1 => false ), 'STYLES' => array( 'KEYWORDS' => array( 1 => 'color: #993333; font-weight: bold;' ), 'COMMENTS' => array( 1 => 'color: #808080; font-style: italic;', 2 => 'color: #808080; font-style: italic;' ), 'ESCAPE_CHAR' => array( 0 => 'color: #000099; font-weight: bold;' ), 'BRACKETS' => array( 0 => 'color: #66cc66;' ), 'STRINGS' => array( 0 => 'color: #ff0000;' ), 'NUMBERS' => array( 0 => 'color: #cc66cc;' ), 'METHODS' => array( ), 'SYMBOLS' => array( 0 => 'color: #66cc66;' ), 'SCRIPT' => array( ), 'REGEXPS' => array( ) ), 'OOLANG' => false, 'OBJECT_SPLITTERS' => array( ), 'REGEXPS' => array( ), 'STRICT_MODE_APPLIES' => GESHI_NEVER, 'SCRIPT_DELIMITERS' => array( ), 'HIGHLIGHT_STRICT_BLOCK' => array( ) ); ?> --- NEW FILE: qbasic.php --- <?php /************************************************************************************* * qbasic.php * ---------- * Author: Nigel McNie (ora...@gm...) * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) * Release Version: 1.0.3 * CVS Revision Version: $Revision: 1.1 $ * Date Started: 2004/06/20 * Last Modified: $Date: 2004/12/20 07:29:02 $ * * QBasic/QuickBASIC language file for GeSHi. * * CHANGES * ------- * 2004/11/27 (1.0.3) * - Added support for multiple object splitters * 2004/10/27 (1.0.2) * - Added support for URLs * 2004/08/05 (1.0.1) * - Added support for symbols * - Removed unnessecary slashes from some keywords * 2004/07/14 (1.0.0) * - First Release * * TODO (updated 2004/11/27) * ------------------------- * * Make sure all possible combinations of keywords with * a space in them (EXIT FOR, END SELECT) are added * to the first keyword group * * Update colours, especially for the first keyword group * ************************************************************************************* * * This file is part of GeSHi. * * GeSHi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * GeSHi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GeSHi; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ************************************************************************************/ $language_data = array ( 'LANG_NAME' => 'QBasic/QuickBASIC', 'COMMENT_SINGLE' => array(1 => "'", 2 => 'REM'), 'COMMENT_MULTI' => array(), 'CASE_KEYWORDS' => GESHI_CAPS_UPPER, 'QUOTEMARKS' => array('"'), 'ESCAPE_CHAR' => '', 'KEYWORDS' => array( 1 => array( 'DO', 'LOOP', 'WHILE', 'WEND', 'THEN', 'ELSE', 'ELSEIF', 'IF', 'FOR', 'TO', 'NEXT', 'STEP', 'GOTO', 'GOSUB', 'RETURN', 'RESUME', 'SELECT', 'CASE', 'UNTIL' ), 3 => array( 'ABS', 'ABSOLUTE', 'ACCESS', 'ALIAS', 'AND', 'ANY', 'APPEND', 'AS', 'ASC', 'ATN', 'BASE', 'BEEP', 'BINARY', 'BLOAD', 'BSAVE', 'BYVAL', 'CALL', 'CALLS', 'CASE', 'CDBL', 'CDECL', 'CHAIN', 'CHDIR', 'CHDIR', 'CHR$', 'CINT', 'CIRCLE', 'CLEAR', 'CLNG', 'CLOSE', 'CLS', 'COM', 'COMMAND$', 'COMMON', 'CONST', 'COS', 'CSNG', 'CSRLIN', 'CVD', 'CVDMBF', 'CVI', 'CVL', 'CVS', 'CVSMDF', 'DATA', 'DATE$', 'DECLARE', 'DEF', 'FN', 'SEG', 'DEFDBL', 'DEFINT', 'DEFLNG', 'DEFSNG', 'DEFSTR', 'DIM', 'DOUBLE', 'DRAW', 'END', 'ENVIRON', 'ENVIRON$', 'EOF', 'EQV', 'ERASE', 'ERDEV', 'ERDEV$', 'ERL', 'ERR', 'ERROR', 'EXIT', 'EXP', 'FIELD', 'FILEATTR', 'FILES', 'FIX', 'FRE', 'FREEFILE', 'FUNCTION', 'GET', 'HEX$', 'IMP', 'INKEY$', 'INP', 'INPUT', 'INPUT$', 'INSTR', 'INT', 'INTEGER', 'IOCTL', 'IOCTL$', 'IS', 'KEY', 'KILL', 'LBOUND', 'LCASE$', 'LEFT$', 'LEN', 'LET', 'LINE', 'LIST', 'LOC', 'LOCAL', 'LOCATE', 'LOCK', 'LOF', 'LOG', 'UNLOCK', 'LONG', 'LPOS', 'LPRINT', 'LSET', 'LTRIM$', 'MID$', 'MKD$', 'MKDIR', 'MKDMBF$', 'MKI$', 'MKL$', 'MKS$', 'MKSMBF$', 'MOD', 'NAME', 'NOT', 'OCT$', 'OFF', 'ON', 'PEN', 'PLAY', 'STRIG', 'TIMER', 'UEVENT', 'OPEN', 'OPTION', 'BASE', 'OR', 'OUT', 'OUTPUT', 'PAINT', 'PALETTE', 'PCOPY', 'PEEK', 'PMAP', 'POINT', 'POKE', 'POS', 'PRESET', 'PRINT', 'USING', 'PSET', 'PUT', 'RANDOM', 'RANDOMIZE', 'READ', 'REDIM', 'RESET', 'RESTORE', 'RIGHT$', 'RMDIR', 'RND', 'RSET', 'RTRIM$', 'RUN', 'SADD', 'SCREEN', 'SEEK', 'SETMEM', 'SGN', 'SHARED', 'SHELL', 'SIGNAL', 'SIN', 'SINGLE', 'SLEEP', 'SOUND', 'SPACE$', 'SPC', 'SQR', 'STATIC', 'STICK', 'STOP', 'STR$', 'STRIG', 'STRING', 'STRING$', 'SUB', 'SWAP', 'SYSTEM', 'TAB', 'TAN', 'TIME$', 'TIMER', 'TROFF', 'TRON', 'TYPE', 'UBOUND', 'UCASE$', 'UEVENT', 'UNLOCK', 'USING', 'VAL', 'VARPTR', 'VARPTR$', 'VARSEG', 'VIEW', 'WAIT', 'WIDTH', 'WINDOW', 'WRITE', 'XOR' ) ), 'SYMBOLS' => array( '(', ')' ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => false, 1 => false, 3 => false ), 'STYLES' => array( 'KEYWORDS' => array( 1 => 'color: #a1a100;', 3 => 'color: #000066;' ), 'COMMENTS' => array( 1 => 'color: #808080;', 2 => 'color: #808080;' ), 'BRACKETS' => array( 0 => 'color: #66cc66;' ), 'STRINGS' => array( 0 => 'color: #ff0000;' ), 'NUMBERS' => array( 0 => 'color: #cc66cc;' ), 'METHODS' => array( ), 'SYMBOLS' => array( 0 => 'color: #66cc66;' ), 'ESCAPE_CHAR' => array( 0 => 'color: #000099;' ), 'SCRIPT' => array( ), 'REGEXPS' => array( ) ), 'URLS' => array( 1 => '', 3 => 'http://www.qbasicnews.com/qboho/qck{FNAME}.shtml' ), 'OOLANG' => false, 'OBJECT_SPLITTERS' => array( ), 'REGEXPS' => array( ), 'STRICT_MODE_APPLIES' => GESHI_NEVER, 'SCRIPT_DELIMITERS' => array( ), 'HIGHLIGHT_STRICT_BLOCK' => array( ) ); ?> --- NEW FILE: actionscript.php --- <?php /************************************************************************************* * actionscript.php * ---------------- * Author: Steffen Krause (Ste...@mu...) * Copyright: (c) 2004 Steffen Krause, Nigel McNie (http://qbnz.com/highlighter) * Release Version: 1.0.1 * CVS Revision Version: $Revision: 1.1 $ * Date Started: 2004/06/20 * Last Modified: $Date: 2004/12/20 07:29:01 $ * * Actionscript language file for GeSHi. * * CHANGES * ------- * 2004/11/27 (1.0.1) * - Added support for multiple object splitters * 2004/10/27 (1.0.0) * - First Release * * TODO (updated 2004/11/27) * ------------------------- * ************************************************************************************* * * This file is part of GeSHi. * * GeSHi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * GeSHi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GeSHi; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ************************************************************************************/ $language_data = array ( 'LANG_NAME' => 'Actionscript', 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), 'COMMENT_MULTI' => array('/*' => '*/'), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array("'", '"'), 'ESCAPE_CHAR' => '\\', 'KEYWORDS' => array( 1 => array( '#include', 'for', 'foreach', 'if', 'elseif', 'else', 'while', 'do', 'dowhile', 'endwhile', 'endif', 'switch', 'case', 'endswitch', 'return', 'break', 'continue', 'in' ), 2 => array( 'null', 'false', 'true', 'var', 'default', 'function', 'class', 'new', '_global' ), 3 => array( '#endinitclip', '#initclip', '__proto__', '_accProps', '_alpha', '_currentframe', '_droptarget', '_focusrect', '_framesloaded', '_height', '_highquality', '_lockroot', '_name', '_parent', '_quality', '_root', '_rotation', '_soundbuftime', '_target', '_totalframes', '_url', '_visible', '_width', '_x', '_xmouse', '_xscale', '_y', '_ymouse', '_yscale', 'abs', 'Accessibility', 'acos', 'activityLevel', 'add', 'addListener', 'addPage', 'addProperty', 'addRequestHeader', 'align', 'allowDomain', 'allowInsecureDomain', 'and', 'appendChild', 'apply', 'Arguments', 'Array', 'asfunction', 'asin', 'atan', 'atan2', 'attachAudio', 'attachMovie', 'attachSound', 'attachVideo', 'attributes', 'autosize', 'avHardwareDisable', 'background', 'backgroundColor', 'BACKSPACE', 'bandwidth', 'beginFill', 'beginGradientFill', 'blockIndent', 'bold', 'Boolean', 'border', 'borderColor', 'bottomScroll', 'bufferLength', 'bufferTime', 'builtInItems', 'bullet', 'Button', 'bytesLoaded', 'bytesTotal', 'call', 'callee', 'caller', 'Camera', 'capabilities', 'CAPSLOCK', 'caption', 'catch', 'ceil', 'charAt', 'charCodeAt', 'childNodes', 'chr', 'clear', 'clearInterval', 'cloneNode', 'close', 'Color', 'concat', 'connect', 'condenseWhite', 'constructor', 'contentType', 'ContextMenu', 'ContextMenuItem', 'CONTROL', 'copy', 'cos', 'createElement', 'createEmptyMovieClip', 'createTextField', 'createTextNode', 'currentFps', 'curveTo', 'CustomActions', 'customItems', 'data', 'Date', 'deblocking', 'delete', 'DELETEKEY', 'docTypeDecl', 'domain', 'DOWN', 'duplicateMovieClip', 'duration', 'dynamic', 'E', 'embedFonts', 'enabled', 'END', 'endFill', 'ENTER', 'eq', 'Error', 'ESCAPE(Konstante)', 'escape(Funktion)', 'eval', 'exactSettings', 'exp', 'extends', 'finally', 'findText', 'firstChild', 'floor', 'flush', 'focusEnabled', 'font', 'fps', 'fromCharCode', 'fscommand', 'gain', 'ge', 'get', 'getAscii', 'getBeginIndex', 'getBounds', 'getBytesLoaded', 'getBytesTotal', 'getCaretIndex', 'getCode', 'getCount', 'getDate', 'getDay', 'getDepth', 'getEndIndex', 'getFocus', 'getFontList', 'getFullYear', 'getHours', 'getInstanceAtDepth', 'getLocal', 'getMilliseconds', 'getMinutes', 'getMonth', 'getNewTextFormat', 'getNextHighestDepth', 'getPan', 'getProgress', 'getProperty', 'getRGB', 'getSeconds', 'getSelected', 'getSelectedText', 'getSize', 'getStyle', 'getStyleNames', 'getSWFVersion', 'getText', 'getTextExtent', 'getTextFormat', 'getTextSnapshot', 'getTime', 'getTimer', 'getTimezoneOffset', 'getTransform', 'getURL', 'getUTCDate', 'getUTCDay', 'getUTCFullYear', 'getUTCHours', 'getUTCMilliseconds', 'getUTCMinutes', 'getUTCMonth', 'getUTCSeconds', 'getVersion', 'getVolume', 'getYear', 'globalToLocal', 'goto', 'gotoAndPlay', 'gotoAndStop', 'hasAccessibility', 'hasAudio', 'hasAudioEncoder', 'hasChildNodes', 'hasEmbeddedVideo', 'hasMP3', 'hasPrinting', 'hasScreenBroadcast', 'hasScreenPlayback', 'hasStreamingAudio', 'hasStreamingVideo', 'hasVideoEncoder', 'height', 'hide', 'hideBuiltInItems', 'hitArea', 'hitTest', 'hitTestTextNearPos', 'HOME', 'hscroll', 'html', 'htmlText', 'ID3', 'ifFrameLoaded', 'ignoreWhite', 'implements', 'import', 'indent', 'index', 'indexOf', 'Infinity', '-Infinity', 'INSERT', 'insertBefore', 'install', 'instanceof', 'int', 'interface', 'isActive', 'isDebugger', 'isDown', 'isFinite', 'isNaN', 'isToggled', 'italic', 'join', 'Key', 'language', 'lastChild', 'lastIndexOf', 'le', 'leading', 'LEFT', 'leftMargin', 'length', 'level', 'lineStyle', 'lineTo', 'list', 'LN10', 'LN2', 'load', 'loadClip', 'loaded', 'loadMovie', 'loadMovieNum', 'loadSound', 'loadVariables', 'loadVariablesNum', 'LoadVars', 'LocalConnection', 'localFileReadDisable', 'localToGlobal', 'log', 'LOG10E', 'LOG2E', 'manufacturer', 'Math', 'max', 'MAX_VALUE', 'maxChars', 'maxhscroll', 'maxscroll', 'mbchr', 'mblength', 'mbord', 'mbsubstring', 'menu', 'message', 'Microphone', 'min', 'MIN_VALUE', 'MMExecute', 'motionLevel', 'motionTimeOut', 'Mouse', 'mouseWheelEnabled', 'moveTo', 'Movieclip', 'MovieClipLoader', 'multiline', 'muted', 'name', 'names', 'NaN', 'ne', 'NEGATIVE_INFINITY', 'NetConnection', 'NetStream', 'newline', 'nextFrame', 'nextScene', 'nextSibling', 'nodeName', 'nodeType', 'nodeValue', 'not', 'Number', 'Object', 'on', 'onActivity', 'onChanged', 'onClipEvent', 'onClose', 'onConnect', 'onData', 'onDragOut', 'onDragOver', 'onEnterFrame', 'onID3', 'onKeyDown', 'onKeyUp', 'onKillFocus', 'onLoad', 'onLoadComplete', 'onLoadError', 'onLoadInit', 'onLoadProgress', 'onLoadStart', 'onMouseDown', 'onMouseMove', 'onMouseUp', 'onMouseWheel', 'onPress', 'onRelease', 'onReleaseOutside', 'onResize', 'onRollOut', 'onRollOver', 'onScroller', 'onSelect', 'onSetFocus', 'onSoundComplete', 'onStatus', 'onUnload', 'onUpdate', 'onXML', 'or(logischesOR)', 'ord', 'os', 'parentNode', 'parseCSS', 'parseFloat', 'parseInt', 'parseXML', 'password', 'pause', 'PGDN', 'PGUP', 'PI', 'pixelAspectRatio', 'play', 'playerType', 'pop', 'position', 'POSITIVE_INFINITY', 'pow', 'prevFrame', 'previousSibling', 'prevScene', 'print', 'printAsBitmap', 'printAsBitmapNum', 'PrintJob', 'printNum', 'private', 'prototype', 'public', 'push', 'quality', 'random', 'rate', 'registerClass', 'removeListener', 'removeMovieClip', 'removeNode', 'removeTextField', 'replaceSel', 'replaceText', 'resolutionX', 'resolutionY', 'restrict', 'reverse', 'RIGHT', 'rightMargin', 'round', 'scaleMode', 'screenColor', 'screenDPI', 'screenResolutionX', 'screenResolutionY', 'scroll', 'seek', 'selectable', 'Selection', 'send', 'sendAndLoad', 'separatorBefore', 'serverString', 'set', 'setvariable', 'setBufferTime', 'setClipboard', 'setDate', 'setFocus', 'setFullYear', 'setGain', 'setHours', 'setInterval', 'setMask', 'setMilliseconds', 'setMinutes', 'setMode', 'setMonth', 'setMotionLevel', 'setNewTextFormat', 'setPan', 'setProperty', 'setQuality', 'setRate', 'setRGB', 'setSeconds', 'setSelectColor', 'setSelected', 'setSelection', 'setSilenceLevel', 'setStyle', 'setTextFormat', 'setTime', 'setTransform', 'setUseEchoSuppression', 'setUTCDate', 'setUTCFullYear', 'setUTCHours', 'setUTCMilliseconds', 'setUTCMinutes', 'setUTCMonth', 'setUTCSeconds', 'setVolume', 'setYear', 'SharedObject', 'SHIFT(Konstante)', 'shift(Methode)', 'show', 'showMenu', 'showSettings', 'silenceLevel', 'silenceTimeout', 'sin', 'size', 'slice', 'smoothing', 'sort', 'sortOn', 'Sound', 'SPACE', 'splice', 'split', 'sqrt', 'SQRT1_2', 'SQRT2', 'Stage', 'start', 'startDrag', 'static', 'status', 'stop', 'stopAllSounds', 'stopDrag', 'String', 'StyleSheet(Klasse)', 'styleSheet(Eigenschaft)', 'substr', 'substring', 'super', 'swapDepths', 'System', 'TAB', 'tabChildren', 'tabEnabled', 'tabIndex', 'tabStops', 'tan', 'target', 'targetPath', 'tellTarget', 'text', 'textColor', 'TextField', 'TextFormat', 'textHeight', 'TextSnapshot', 'textWidth', 'this', 'throw', 'time', 'toggleHighQuality', 'toLowerCase', 'toString', 'toUpperCase', 'trace', 'trackAsMenu', 'try', 'type', 'typeof', 'undefined', 'underline', 'unescape', 'uninstall', 'unloadClip', 'unloadMovie', 'unLoadMovieNum', 'unshift', 'unwatch', 'UP', 'updateAfterEvent', 'updateProperties', 'url', 'useCodePage', 'useEchoSuppression', 'useHandCursor', 'UTC', 'valueOf', 'variable', 'version', 'Video', 'visible', 'void', 'watch', 'width', 'with', 'wordwrap', 'XML', 'xmlDecl', 'XMLNode', 'XMLSocket' ) ), 'SYMBOLS' => array( '(', ')', '[', ']', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>' ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => false, 1 => false, 2 => false, 3 => false, ), 'STYLES' => array( 'KEYWORDS' => array( 1 => 'color: #b1b100;', 2 => 'color: #000000; font-weight: bold;', 3 => 'color: #0066CC;' ), 'COMMENTS' => array( 1 => 'color: #808080; font-style: italic;', 2 => 'color: #808080; font-style: italic;', 'MULTI' => 'color: #808080; font-style: italic;' ), 'ESCAPE_CHAR' => array( 0 => 'color: #000099; font-weight: bold;' ), 'BRACKETS' => array( 0 => 'color: #66cc66;' ), 'STRINGS' => array( 0 => 'color: #ff0000;' ), 'NUMBERS' => array( 0 => 'color: #cc66cc;' ), 'METHODS' => array( 1 => 'color: #006600;' ), 'SYMBOLS' => array( 0 => 'color: #66cc66;' ), 'REGEXPS' => array( ), 'SCRIPT' => array( ) ), 'URLS' => array( 1 => '', 2 => '', 3 => '' ), 'OOLANG' => true, 'OBJECT_SPLITTERS' => array( 1 => '.' ), 'REGEXPS' => array( ), 'STRICT_MODE_APPLIES' => GESHI_NEVER, 'SCRIPT_DELIMITERS' => array(), 'HIGHLIGHT_STRICT_BLOCK' => array() ); ?> --- NEW FILE: pascal.php --- <?php /************************************************************************************* * pascal.php * ---------- * Author: Tux (tu...@in...) * Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter) * Release Version: 1.0.2 * CVS Revision Version: $Revision: 1.1 $ * Date Started: 2004/07/26 * Last Modified: $Date: 2004/12/20 07:29:02 $ * * Pascal language file for GeSHi. * * CHANGES * ------- * 2004/11/27 (1.0.2) * - Added support for multiple object splitters * 2004/10/27 (1.0.1) * - Added support for URLs * 2004/08/05 (1.0.0) * - Added support for symbols * 2004/07/27 (0.9.1) * - Pascal is OO language. Some new words. * 2004/07/26 (0.9.0) * - First Release * * TODO (updated 2004/11/27) * ------------------------- * ************************************************************************************* * * This file is part of GeSHi. * * GeSHi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * GeSHi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GeSHi; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ************************************************************************************/ $language_data = array ( 'LANG_NAME' => 'Pascal', 'COMMENT_SINGLE' => array(1 => '//'), 'COMMENT_MULTI' => array('{' => '}','(*' => '*)'), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array("'", '"'), 'ESCAPE_CHAR' => '\\', 'KEYWORDS' => array( 1 => array( 'if', 'while', 'until', 'repeat', 'default', 'do', 'else', 'for', 'switch', 'goto','label','asm','begin','end', 'assembler','case', 'downto', 'to','div','mod','far','forward','in','inherited', 'inline','interrupt','label','library','not','var','of','then','stdcall', 'cdecl','end.','raise','try','except','name','finally','resourcestring','override','overload', 'default','public','protected','private','property','published','stored','catch' ), 2 => array( 'nil', 'false', 'break', 'true', 'function', 'procedure','implementation','interface', 'unit','program','initialization','finalization','uses' ), 3 => array( 'abs', 'absolute','and','arc','arctan','chr','constructor','destructor', 'dispose','cos','eof','eoln','exp','get','index','ln','new','xor','write','writeln', 'shr','sin','sqrt','succ','pred','odd','read','readln','ord','ordinal','blockread','blockwrite' ), 4 => array( 'array', 'char', 'const', 'boolean', 'real', 'integer', 'longint', 'word', 'shortint', 'record','byte','bytebool','string', 'type','object','export','exports','external','file','longbool','pointer','set', 'packed','ansistring','union' ), ), 'SYMBOLS' => array( ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => true, 1 => false, 2 => false, 3 => false, 4 => false, ), 'STYLES' => array( 'KEYWORDS' => array( 1 => 'color: #b1b100;', 2 => 'color: #000000; font-weight: bold;', 3 => '', 4 => 'color: #993333;' ), 'COMMENTS' => array( 1 => 'color: #808080; font-style: italic;', 2 => 'color: #339933;', 'MULTI' => 'color: #808080; font-style: italic;' ), 'ESCAPE_CHAR' => array( 0 => 'color: #000099; font-weight: bold;' ), 'BRACKETS' => array( 0 => 'color: #66cc66;' ), 'STRINGS' => array( 0 => 'color: #ff0000;' ), 'NUMBERS' => array( 0 => 'color: #cc66cc;' ), 'METHODS' => array( 1 => 'color: #202020;' ), 'SYMBOLS' => array( 0 => 'color: #66cc66;' ), 'REGEXPS' => array( ), 'SCRIPT' => array( ) ), 'URLS' => array( 1 => '', 2 => '', 3 => '', 4 => '' ), 'OOLANG' => true, 'OBJECT_SPLITTERS' => array( 1 => '.' ), 'REGEXPS' => array( ), 'STRICT_MODE_APPLIES' => GESHI_NEVER, 'SCRIPT_DELIMITERS' => array( ), 'HIGHLIGHT_STRICT_BLOCK' => array( ) ); ?> --- NEW FILE: lua.php --- <?php /************************************************************************************* * lua.php * ------- * Author: Roberto Rossi (rso...@al...) * Copyright: (c) 2004 Roberto Rossi (http://rsoftware.altervista.org), Nigel McNie (http://qbnz.com/blog) * Release Version: 1.0.1 * CVS Revision Version: $Revision: 1.1 $ * Date Started: 2004/07/10 * Last Modified: $Date: 2004/12/20 07:29:02 $ * * LUA language file for GeSHi. * * CHANGES * ------- * 2004/11/27 (1.0.1) * - Added support for multiple object splitters * 2004/10/27 (1.0.0) * - First Release * * TODO (updated 2004/11/27) * ------------------------- * ************************************************************************************* * * This file is part of GeSHi. * * GeSHi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * GeSHi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GeSHi; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ************************************************************************************/ $language_data = array ( 'LANG_NAME' => 'LUA', 'COMMENT_SINGLE' => array(1 => "--"), 'COMMENT_MULTI' => array('--[[' => ']]'), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array('"'), 'ESCAPE_CHAR' => '\\', 'KEYWORDS' => array( 1 => array( 'and','break','do','else','elseif','end','false','for','function','if', 'in','local','nil','not','or','repeat','return','then','true','until','while', '_VERSION','assert','collectgarbage','dofile','error','gcinfo','loadfile','loadstring', 'print','tonumber','tostring','type','unpack', '_ALERT','_ERRORMESSAGE','_INPUT','_PROMPT','_OUTPUT', '_STDERR','_STDIN','_STDOUT','call','dostring','foreach','foreachi','getn','globals','newtype', 'rawget','rawset','require','sort','tinsert','tremove', 'abs','acos','asin','atan','atan2','ceil','cos','deg','exp', 'floor','format','frexp','gsub','ldexp','log','log10','max','min','mod','rad','random','randomseed', 'sin','sqrt','strbyte','strchar','strfind','strlen','strlower','strrep','strsub','strupper','tan', 'openfile','closefile','readfrom','writeto','appendto', 'remove','rename','flush','seek','tmpfile','tmpname','read','write', 'clock','date','difftime','execute','exit','getenv','setlocale','time', '_G','getfenv','getmetatable','ipairs','loadlib','next','pairs','pcall', 'rawegal','rawget','rawset','require','setfenv','setmetatable','xpcall', 'string','table','math','coroutine','io','os','debug', 'string.byte','string.char','string.dump','string.find','string.len', 'string.lower','string.rep','string.sub','string.upper','string.format','string.gfind','string.gsub', 'table.concat','table.foreach','table.foreachi','table.getn','table.sort','table.insert','table.remove','table.setn', 'math.abs','math.acos','math.asin','math.atan','math.atan2','math.ceil','math.cos','math.deg','math.exp', 'math.floor','math.frexp','math.ldexp','math.log','math.log10','math.max','math.min','math.mod', 'math.pi','math.rad','math.random','math.randomseed','math.sin','math.sqrt','math.tan', 'coroutine.create','coroutine.resume','coroutine.status', 'coroutine.wrap','coroutine.yield', 'io.close','io.flush','io.input','io.lines','io.open','io.output','io.read','io.tmpfile','io.type','io.write', 'io.stdin','io.stdout','io.stderr', 'os.clock','os.date','os.difftime','os.execute','os.exit','os.getenv','os.remove','os.rename', 'os.setlocale','os.time','os.tmpname' ) ), 'SYMBOLS' => array( '(', ')', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>', '=', ';' ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => true, 1 => true ), 'STYLES' => array( 'KEYWORDS' => array( 1 => 'color: #b1b100;' ), 'COMMENTS' => array( 1 => 'color: #808080; font-style: italic;', 'MULTI' => 'color: #808080; font-style: italic;' ), 'ESCAPE_CHAR' => array( 0 => 'color: #000099; font-weight: bold;' ), 'BRACKETS' => array( 0 => 'color: #66cc66;' ), 'STRINGS' => array( 0 => 'color: #ff0000;' ), 'NUMBERS' => array( 0 => 'color: #cc66cc;' ), 'METHODS' => array( ), 'SYMBOLS' => array( 0 => 'color: #66cc66;' ), 'REGEXPS' => array( ), 'SCRIPT' => array( ) ), 'OOLANG' => false, 'OBJECT_SPLITTERS' => array( ), 'REGEXPS' => array( ), 'STRICT_MODE_APPLIES' => GESHI_NEVER, 'SCRIPT_DELIMITERS' => array( ), 'HIGHLIGHT_STRICT_BLOCK' => array( ) ); ?> --- NEW FILE: php-brief.php --- <?php /************************************************************************************* * php-brief.php * ------------- * Author: Nigel McNie (ora...@gm...) * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) * Release Version: 1.0.3 * CVS Revision Version: $Revision: 1.1 $ * Date Started: 2004/06/02 * Last Modified: $Date: 2004/12/20 07:29:02 $ * * PHP language file for GeSHi (brief version). * * CHANGES * ------- * 2004/11/27 (1.0.3) * - Added support for multiple object splitters * - Fixed &new problem * 2004/10/27 (1.0.2) * - Added support for URLs * 2004/08/05 (1.0.1) * - Added support for symbols * 2004/07/14 (1.0.0) * - First Release * * TODO (updated 2004/07/14) * ------------------------- * * Remove more functions that are hardly used * ************************************************************************************* * * This file is part of GeSHi. * * GeSHi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * GeSHi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GeSHi; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ************************************************************************************/ $language_data = array ( 'LANG_NAME' => 'PHP', 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), 'COMMENT_MULTI' => array('/*' => '*/'), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array("'", '"'), 'ESCAPE_CHAR' => '\\', 'KEYWORDS' => array( 1 => array( 'include', 'require', 'include_once', 'require_once', 'for', 'as', 'foreach', 'if', 'elseif', 'else', 'while', 'do', 'endwhile', 'endif', 'switch', 'case', 'endswitch', 'return', 'break' ), 2 => array( 'null', '__LINE__', '__FILE__', 'false', '<?php', '?>', 'true', 'var', 'default', 'function', 'class', 'new', '&new' ), 3 => array( 'func_num_args', 'func_get_arg', 'func_get_args', 'strlen', 'strcmp', 'strncmp', 'strcasecmp', 'strncasecmp', 'each', 'error_reporting', 'define', 'defined', 'trigger_error', 'user_error', 'set_error_handler', 'restore_error_handler', 'get_declared_classes', 'get_loaded_extensions', 'extension_loaded', 'get_extension_funcs', 'debug_backtrace', 'constant', 'bin2hex', 'sleep', 'usleep', 'time', 'mktime', 'gmmktime', 'strftime', 'gmstrftime', 'strtotime', 'date', 'gmdate', 'getdate', 'localtime', 'checkdate', 'flush', 'wordwrap', 'htmlspecialchars', 'htmlentities', 'html_entity_decode', 'md5', 'md5_file', 'crc32', 'getimagesize', 'image_type_to_mime_type', 'phpinfo', 'phpversion', 'phpcredits', 'strnatcmp', 'strnatcasecmp', 'substr_count', 'strspn', 'strcspn', 'strtok', 'strtoupper', 'strtolower', 'strpos', 'strrpos', 'strrev', 'hebrev', 'hebrevc', 'nl2br', 'basename', 'dirname', 'pathinfo', 'stripslashes', 'stripcslashes', 'strstr', 'stristr', 'strrchr', 'str_shuffle', 'str_word_count', 'strcoll', 'substr', 'substr_replace', 'quotemeta', 'ucfirst', 'ucwords', 'strtr', 'addslashes', 'addcslashes', 'rtrim', 'str_replace', 'str_repeat', 'count_chars', 'chunk_split', 'trim', 'ltrim', 'strip_tags', 'similar_text', 'explode', 'implode', 'setlocale', 'localeconv', 'parse_str', 'str_pad', 'chop', 'strchr', 'sprintf', 'printf', 'vprintf', 'vsprintf', 'sscanf', 'fscanf', 'parse_url', 'urlencode', 'urldecode', 'rawurlencode', 'rawurldecode', 'readlink', 'linkinfo', 'link', 'unlink', 'exec', 'system', 'escapeshellcmd', 'escapeshellarg', 'passthru', 'shell_exec', 'proc_open', 'proc_close', 'rand', 'srand', 'getrandmax', 'mt_rand', 'mt_srand', 'mt_getrandmax', 'base64_decode', 'base64_encode', 'abs', 'ceil', 'floor', 'round', 'is_finite', 'is_nan', 'is_infinite', 'bindec', 'hexdec', 'octdec', 'decbin', 'decoct', 'dechex', 'base_convert', 'number_format', 'fmod', 'ip2long', 'long2ip', 'getenv', 'putenv', 'getopt', 'microtime', 'gettimeofday', 'getrusage', 'uniqid', 'quoted_printable_decode', 'set_time_limit', 'get_cfg_var', 'magic_quotes_runtime', 'set_magic_quotes_runtime', 'get_magic_quotes_gpc', 'get_magic_quotes_runtime', 'import_request_variables', 'error_log', 'serialize', 'unserialize', 'memory_get_usage', 'var_dump', 'var_export', 'debug_zval_dump', 'print_r','highlight_file', 'show_source', 'highlight_string', 'ini_get', 'ini_get_all', 'ini_set', 'ini_alter', 'ini_restore', 'get_include_path', 'set_include_path', 'restore_include_path', 'setcookie', 'header', 'headers_sent', 'connection_aborted', 'connection_status', 'ignore_user_abort', 'parse_ini_file', 'is_uploaded_file', 'move_uploaded_file', 'intval', 'floatval', 'doubleval', 'strval', 'gettype', 'settype', 'is_null', 'is_resource', 'is_bool', 'is_long', 'is_float', 'is_int', 'is_integer', 'is_double', 'is_real', 'is_numeric', 'is_string', 'is_array', 'is_object', 'is_scalar', 'ereg', 'ereg_replace', 'eregi', 'eregi_replace', 'split', 'spliti', 'join', 'sql_regcase', 'dl', 'pclose', 'popen', 'readfile', 'rewind', 'rmdir', 'umask', 'fclose', 'feof', 'fgetc', 'fgets', 'fgetss', 'fread', 'fopen', 'fpassthru', 'ftruncate', 'fstat', 'fseek', 'ftell', 'fflush', 'fwrite', 'fputs', 'mkdir', 'rename', 'copy', 'tempnam', 'tmpfile', 'file', 'file_get_contents', 'stream_select', 'stream_context_create', 'stream_context_set_params', 'stream_context_set_option', 'stream_context_get_options', 'stream_filter_prepend', 'stream_filter_append', 'fgetcsv', 'flock', 'get_meta_tags', 'stream_set_write_buffer', 'set_file_buffer', 'set_socket_blocking', 'stream_set_blocking', 'socket_set_blocking', 'stream_get_meta_data', 'stream_register_wrapper', 'stream_wrapper_register', 'stream_set_timeout', 'socket_set_timeout', 'socket_get_status', 'realpath', 'fnmatch', 'fsockopen', 'pfsockopen', 'pack', 'unpack', 'get_browser', 'crypt', 'opendir', 'closedir', 'chdir', 'getcwd', 'rewinddir', 'readdir', 'dir', 'glob', 'fil... [truncated message content] |
From: Brian C. <bch...@us...> - 2004-12-20 07:29:11
|
Update of /cvsroot/phpcvsview/phpcvsview/geshi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8380 Added Files: geshi.php Log Message: - Added GeSHi source code to the repository. For details relating to GeSHi please see it's website at http://qbnz.com/highlighter/ --- NEW FILE: geshi.php --- <?php /************************************************************************************* * geshi.php * --------- * Author: Nigel McNie (ora...@gm...) * Copyright: (c) 2004 Nigel McNie * Release Version: 1.0.4 * CVS Revision Version: $Revision: 1.1 $ * Date Started: 2004/05/20 * Last Modified: $Date: 2004/12/20 07:28:58 $ * * The GeSHi class for Generic Syntax Highlighting. Please refer to the documentation * at http://qbnz.com/highlighter/documentation.php for more information about how to * use this class. * * For changes, release notes, TODOs etc, see the relevant files in the docs/ directory * ************************************************************************************* * [...2374 lines suppressed...] * Easy way to highlight stuff. Behaves just like highlight_string */ function geshi_highlight ( $string, $language, $path, $return = false ) { $geshi = new GeSHi($string, $language, $path); $geshi->set_header_type(GESHI_HEADER_DIV); if ( $return ) { return str_replace('<div>', '<code>', str_replace('</div>', '</code>', $geshi->parse_code())); } echo str_replace('<div>', '<code>', str_replace('</div>', '</code>', $geshi->parse_code())); if ( $geshi->error() ) { return false; } return true; } } ?> |
From: Brian C. <bch...@us...> - 2004-12-20 07:16:12
|
Update of /cvsroot/phpcvsview/phpcvsview/geshi/geshi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6717/geshi Log Message: Directory /cvsroot/phpcvsview/phpcvsview/geshi/geshi added to the repository |
From: Brian C. <bch...@us...> - 2004-12-20 07:15:36
|
Update of /cvsroot/phpcvsview/phpcvsview/geshi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6627/geshi Log Message: Directory /cvsroot/phpcvsview/phpcvsview/geshi added to the repository |
From: Brian C. <bch...@us...> - 2004-12-19 10:27:14
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13668 Modified Files: cvsview.php Added Files: func_FileDownload.php Log Message: - Added download functionality to the File Revision History view. --- NEW FILE: func_FileDownload.php --- <?php /** * This source code is distributed under the terms as layed out in the * GNU General Public License. * * Purpose: To provide File Download capability. * * @author Brian A Cheeseman <bch...@us...> * @version $Id * @copyright 2003-2004 Brian A Cheeseman **/ include_once("phpcvsmime.php"); function DownloadFile($File, $Revision = "") { global $config, $env, $MIME_TYPES; // Calculate the path from the $env['script_name'] variable. $env['script_path'] = substr($env['script_name'], 0, strrpos($env['script_name'], "/")); if ($env['script_path'] == ""){ $env['script_path'] = "/"; } // Create our CVS connection object and set the required properties. $CVSServer = new CVS_PServer($config['cvsroot'], $config['pserver'], $config['username'], $config['password']); // 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 $env['mod_path']. $CVSServer->RLog($env['mod_path']); // "Export" the file. $Response = $CVSServer->ExportFile($File, $Revision); if ($Response !== true) { return; } // Get the mime type for the file. $FileExt = substr($File, strrpos($File, ".")+1); $MimeType = $MIME_TYPES[$FileExt]; if ($MimeType == "") { $MimeType = "text/plain"; } // Send the appropriate http header. header("Content-Type: $MimeType"); // Send the file contents. echo $CVSServer->FILECONTENTS; echo "<br />File Extension: $FileExt<br />"; echo "MIME TYPE IS: $MimeType"; // Close the connection. $CVSServer->Disconnect(); } } ?> Index: cvsview.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/cvsview.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** cvsview.php 6 Oct 2004 08:36:02 -0000 1.16 --- cvsview.php 19 Dec 2004 10:27:04 -0000 1.17 *************** *** 38,41 **** --- 38,42 ---- require_once 'func_FileAnnotation.php'; require_once 'func_FileView.php'; + require_once 'func_FileDownload.php'; *************** *** 58,62 **** DisplayFileContents($env['mod_path'], $_GET["dt"]); } else { ! DisplayDirListing(); } } --- 59,69 ---- DisplayFileContents($env['mod_path'], $_GET["dt"]); } else { ! if (isset($_GET["fd"])) { ! DownloadFile($env['mod_path'], $_GET["dt"]); ! } ! else ! { ! DisplayDirListing(); ! } } } |
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default/Images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7561 Added Files: file.png folder.png module.png parent.png Removed Files: file.gif folder.gif module.gif parent.gif Log Message: - Removed GIF images, replacing them with PNG ones. This was done to get away from patent issues. --- NEW FILE: folder.png --- (This appears to be a binary file; contents omitted.) --- file.gif DELETED --- --- NEW FILE: module.png --- (This appears to be a binary file; contents omitted.) --- parent.gif DELETED --- --- folder.gif DELETED --- --- NEW FILE: parent.png --- (This appears to be a binary file; contents omitted.) --- module.gif DELETED --- --- NEW FILE: file.png --- (This appears to be a binary file; contents omitted.) |
From: Brian C. <bch...@us...> - 2004-12-19 09:45:18
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6412/Themes/Default Modified Files: theme.css theme.php Log Message: - Adjustments to the Default theme to make it more like that which would be used. Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** theme.php 19 Dec 2004 04:51:37 -0000 1.5 --- theme.php 19 Dec 2004 09:45:10 -0000 1.6 *************** *** 12,19 **** **/ ! $FolderIcon = "Themes/Default/Images/folder.gif"; ! $FileIcon = "Themes/Default/Images/file.gif"; ! $ParentIcon = "Themes/Default/Images/parent.gif"; ! $ModuleIcon = "Themes/Default/Images/module.gif"; function GetPageHeader($Title="", $Heading="") { --- 12,19 ---- **/ ! $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="") { *************** *** 171,175 **** $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=\"".$env['script_path']."/$FileIcon\" /></a></td>\n"; echo " <td><a href=\"$HREF&fh\">".$File["Name"]."</a></td>\n"; --- 171,175 ---- $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo " <tr class=\"$RowClass\">\n"; echo " <td align=\"center\"><a href=\"$HREF&fh\"><img alt=\"FILE\" src=\"".$env['script_path']."/$FileIcon\" /></a></td>\n"; echo " <td><a href=\"$HREF&fh\">".$File["Name"]."</a></td>\n"; Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.css,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** theme.css 19 Dec 2004 03:14:24 -0000 1.5 --- theme.css 19 Dec 2004 09:45:09 -0000 1.6 *************** *** 6,13 **** margin-right: 3px; padding:0px; ! font-family: Verdana, arial, sans-serif; font-size: 10pt; ! background-color: #000000; ! color: #ffff99; } img --- 6,13 ---- margin-right: 3px; padding:0px; ! font-family: Tahoma, arial, sans-serif; font-size: 10pt; ! background-color: #ffffff; ! color: #000000; } img *************** *** 17,41 **** a:link,a:active,a:visited { ! color: #9999ff; text-decoration: none; - font-weight: bold; } a:hover { ! color: #ff99ff; text-decoration: underline; - font-weight: bold; } .head { ! background-color: #666677; } .row1 { ! background-color: #000011; } .row2 { ! background-color: #222233; } .footer --- 17,39 ---- a:link,a:active,a:visited { ! color: #000099; text-decoration: none; } a:hover { ! color: #000099; text-decoration: underline; } .head { ! background-color: #bbbbff; } .row1 { ! background-color: #eeeeee; } .row2 { ! background-color: #ddddff; } .footer *************** *** 56,60 **** font-weight: bold; font-style: italic; ! color: white; } table --- 54,58 ---- font-weight: bold; font-style: italic; ! color: black; } table *************** *** 71,83 **** } - - - - - /* GeSHi (c) Nigel McNie 2004 (http://qbnz.com/highlighter) */ .geshi .de1, .geshi .de2 { font-family: 'Courier New', Courier, monospace; font-weight: normal; } --- 69,77 ---- } .geshi .de1, .geshi .de2 { font-family: 'Courier New', Courier, monospace; + font-size: 12px; font-weight: normal; } *************** *** 96,100 **** .geshi .kw2 { ! color: #ffffff; font-weight: bold; } --- 90,94 ---- .geshi .kw2 { ! color: #000000; font-weight: bold; } |
From: Brian C. <bch...@us...> - 2004-12-19 07:41:05
|
Update of /cvsroot/phpcvsview/phpcvsview/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17047 Removed Files: file.png folder.png parent.png Log Message: - Removed redundant image files. --- folder.png DELETED --- --- parent.png DELETED --- --- file.png DELETED --- |
From: Brian C. <bch...@us...> - 2004-12-19 04:51:48
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default/Images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21992/Themes/Default/Images Added Files: module.gif Log Message: - Added basic support for CVS modules. This code exports the /CVSROOT/modules fiel, parses it and then displays them in the top most folder. --- NEW FILE: module.gif --- (This appears to be a binary file; contents omitted.) |
From: Brian C. <bch...@us...> - 2004-12-19 04:51:48
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21992 Modified Files: func_DirListing.php phpcvs.php Log Message: - Added basic support for CVS modules. This code exports the /CVSROOT/modules fiel, parses it and then displays them in the top most folder. Index: phpcvs.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/phpcvs.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** phpcvs.php 6 Oct 2004 08:32:49 -0000 1.17 --- phpcvs.php 19 Dec 2004 04:51:37 -0000 1.18 *************** *** 1045,1048 **** --- 1045,1084 ---- return true; } + + // *************************************************************************** + // Function: getModuleList() + // Author: Brian Cheeseman. + // Parameters: None. + // Return Value: Array - contains list of module names and paths + // *************************************************************************** + function getModuleList() + { + // Create our resultant Array. + $Results = array(); + + // Save the current FILECONTENTS just in case. + $TempFileContents = $this->FILECONTENTS; + + // Get a copy of the current modules definition file. + $this->ExportFile("/CVSROOT/modules", gmmktime()); + $Lines = explode("\n", $this->FILECONTENTS); + + // Process each line of the modules file looking for module definitions. + foreach ($Lines as $Line) { + if (strncmp($Line, '#', 1) != 0) { + // Process the line. + $Elements = explode(" ", $Line); + if (count($Elements) > 1) { + $Results[$Elements[0]] = $Elements[1]; + } + } + } + + // Restore the saved FILECONTENTS. + $this->FILECONTENTS = $TempFileContents; + + // Return our work. + return $Results; + } // *************************************************************************** Index: func_DirListing.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_DirListing.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** func_DirListing.php 6 Oct 2004 08:40:29 -0000 1.7 --- func_DirListing.php 19 Dec 2004 04:51:37 -0000 1.8 *************** *** 33,36 **** --- 33,45 ---- // Get a RLOG of the module path specified in $config['mod_path']. $CVSServer->RLog($env['mod_path']); + + // If we are in the Root of the CVS Repository then lets get the Module list. + if (strlen($env['mod_path']) < 2) { + $Modules = $CVSServer->getModuleList(); + } + else + { + $Modules = false; + } // Add the quick link navigation bar. *************** *** 41,50 **** // Do we need the "Back" operation. ! if (strlen($env['mod_path']) > 1) { ! addParentDirectory($env['script_name'], $env['script_path'], $env['mod_path']); } // Display the folders within the table. addFolders($env['mod_path'], $CVSServer->FOLDERS); // Display the files within the table. --- 50,64 ---- // Do we need the "Back" operation. ! if (strlen($env['mod_path']) > 2) { ! addParentDirectory($env['mod_path']); } // Display the folders within the table. addFolders($env['mod_path'], $CVSServer->FOLDERS); + + // Display the Modules if we have them. + if ($Modules !== false) { + addModules($env['mod_path'], $Modules); + } // Display the files within the table. |
From: Brian C. <bch...@us...> - 2004-12-19 04:51:47
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21992/Themes/Default Modified Files: theme.php Log Message: - Added basic support for CVS modules. This code exports the /CVSROOT/modules fiel, parses it and then displays them in the top most folder. Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** theme.php 6 Oct 2004 08:49:58 -0000 1.4 --- theme.php 19 Dec 2004 04:51:37 -0000 1.5 *************** *** 15,18 **** --- 15,19 ---- $FileIcon = "Themes/Default/Images/file.gif"; $ParentIcon = "Themes/Default/Images/parent.gif"; + $ModuleIcon = "Themes/Default/Images/module.gif"; function GetPageHeader($Title="", $Heading="") { *************** *** 44,48 **** $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>"; --- 45,49 ---- $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://www.w3c.org/Icons/valid-css\" alt=\"Valid CSS!\" /></a></p>"; $PageFoot .= "</div>"; $PageFoot .= "</body></html>"; *************** *** 141,144 **** --- 142,167 ---- } + 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\">\n"; + echo " <td align=\"center\"><a href=\"$HREF\"><img alt=\"MOD\" src=\"".$env['script_path']."/$ModuleIcon\" /></a></td>\n"; + echo " <td><a href=\"$HREF\">".$Key."</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) { |
From: Brian C. <bch...@us...> - 2004-12-19 03:14:37
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5416/Themes/Default Modified Files: theme.css Log Message: - Fixed theme.css to correctly work with GeSHi. Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.css,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** theme.css 11 Oct 2004 05:52:01 -0000 1.4 --- theme.css 19 Dec 2004 03:14:24 -0000 1.5 *************** *** 11,20 **** color: #ffff99; } - img { border: none; } - a:link,a:active,a:visited { --- 11,18 ---- *************** *** 23,27 **** font-weight: bold; } - a:hover { --- 21,24 ---- *************** *** 30,49 **** font-weight: bold; } - .head { background-color: #666677; } - .row1 { background-color: #000011; } - .row2 { background-color: #222233; } - .footer { --- 27,42 ---- *************** *** 51,55 **** text-align: center; } - .quicknav { --- 44,47 ---- *************** *** 58,62 **** font-weight: bold; } - .title { --- 50,53 ---- *************** *** 67,71 **** color: white; } - table { --- 58,61 ---- *************** *** 76,80 **** border-collapse: collapse; } - td { --- 66,69 ---- *************** *** 82,87 **** } ! .numberedLine { ! color: #666; } --- 71,159 ---- } ! ! ! ! ! /* GeSHi (c) Nigel McNie 2004 (http://qbnz.com/highlighter) */ ! .geshi .de1, ! .geshi .de2 { ! font-family: 'Courier New', Courier, monospace; ! font-weight: normal; ! } ! ! .geshi .imp ! { ! font-weight: bold; ! color: red; ! } ! ! .geshi .kw1 ! { ! color: #b1b100; ! } ! ! .geshi .kw2 ! { ! color: #ffffff; ! 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; } |
From: Brian C. <bch...@us...> - 2004-12-19 03:01:40
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3146 Modified Files: config.php func_FileView.php Log Message: - Integrated the GeSHi projects Syntax Highlighting into func_FileView.php Index: config.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/config.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** config.php 5 Oct 2004 17:41:47 -0000 1.5 --- config.php 19 Dec 2004 03:00:46 -0000 1.6 *************** *** 1,36 **** ! <?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. 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"; ! ! ?> --- 1,41 ---- ! <?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. 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"; ! ! // Setup whether to use GeSHi project code for syntax highlighting or not. ! $config['UseGeSHi'] = true; ! $config['GeSHiPath'] = "geshi"; ! $config['GeSHiHighlightersPath'] = "geshi/geshi"; ! ! ?> Index: func_FileView.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileView.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** func_FileView.php 11 Oct 2004 05:27:57 -0000 1.7 --- func_FileView.php 19 Dec 2004 03:00:49 -0000 1.8 *************** *** 12,15 **** --- 12,19 ---- **/ + if ($config['UseGeSHi']) { + include_once($config['GeSHiPath'].'/geshi.php'); + } + function DisplayFileContents($File, $Revision = "") { *************** *** 49,65 **** echo GetQuickLinkBar($env['mod_path'], "Code view for: ", true, true, $Revision); - // Display the file contents. echo "<hr />\n"; - $search = array('<', '>', '\n', '\t'); - $replace = array("<", ">", "", " "); - $content = str_replace($search, $replace, $CVSServer->FILECONTENTS); - $source = explode("\n", $content); - $soure_size = sizeof($source); ! echo "<pre>\n"; ! for($i = 1; $i <= $soure_size; $i++) { ! echo '<a name="'.$i.'" class="numberedLine">'.str_repeat(' ', strlen($soure_size) - strlen($i)). $i.':</a> ' . $source[$i-1] . "\n"; } ! echo "</pre>\n"; // Close the connection. --- 53,87 ---- echo GetQuickLinkBar($env['mod_path'], "Code view for: ", true, true, $Revision); 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. ! $geshi = new GeSHi($CVSServer->FILECONTENTS, "php", $config['GeSHiHighlightersPath']); ! $geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS); ! $geshi->set_line_style('background: #fcfcfc;'); ! $geshi->set_tab_width(4); ! $geshi->enable_classes(); ! $geshi->set_overall_class('geshi'); ! $hlcontent = $geshi->parse_code(); ! ! // Display the file contents. ! echo $hlcontent; } ! else ! { ! $search = array('<', '>', '\n', '\t'); ! $replace = array("<", ">", "", " "); ! $content = str_replace($search, $replace, $CVSServer->FILECONTENTS); ! $source = explode("\n", $content); ! $soure_size = sizeof($source); ! ! echo "<pre>\n"; ! for($i = 1; $i <= $soure_size; $i++) { ! echo '<a name="'.$i.'" class="numberedLine"> '.str_repeat(' ', strlen($soure_size) - strlen($i)). $i.'.</a> ' . $source[$i-1] . "\n"; ! } ! echo "</pre>\n"; ! } ! echo "<hr />"; // Close the connection. |
From: Brian C. <bch...@us...> - 2004-12-19 03:01:08
|
Update of /cvsroot/phpcvsview/phpcvsview/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3146/images Modified Files: folder.png Log Message: - Integrated the GeSHi projects Syntax Highlighting into func_FileView.php Index: folder.png =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/images/folder.png,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 Binary files /tmp/cvssvyQOm and /tmp/cvskXTrjr differ |
From: Sijis A. <si...@us...> - 2004-10-11 05:52:32
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22165/Themes/Default Modified Files: theme.css Log Message: - added class to stylize numbered lines Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.css,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** theme.css 4 Oct 2004 11:40:17 -0000 1.3 --- theme.css 11 Oct 2004 05:52:01 -0000 1.4 *************** *** 11,18 **** --- 11,20 ---- color: #ffff99; } + img { border: none; } + a:link,a:active,a:visited { *************** *** 21,24 **** --- 23,27 ---- font-weight: bold; } + a:hover { *************** *** 27,42 **** --- 30,49 ---- font-weight: bold; } + .head { background-color: #666677; } + .row1 { background-color: #000011; } + .row2 { background-color: #222233; } + .footer { *************** *** 44,47 **** --- 51,55 ---- text-align: center; } + .quicknav { *************** *** 50,53 **** --- 58,62 ---- font-weight: bold; } + .title { *************** *** 58,61 **** --- 67,71 ---- color: white; } + table { *************** *** 66,71 **** --- 76,87 ---- border-collapse: collapse; } + td { padding: 3px; } + + .numberedLine + { + color: #666; + } |
From: Sijis A. <si...@us...> - 2004-10-11 05:28:07
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18762 Modified Files: func_FileView.php Log Message: - added numbered lines when viewing file contents Index: func_FileView.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileView.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** func_FileView.php 6 Oct 2004 08:40:29 -0000 1.6 --- func_FileView.php 11 Oct 2004 05:27:57 -0000 1.7 *************** *** 53,58 **** $search = array('<', '>', '\n', '\t'); $replace = array("<", ">", "", " "); echo "<pre>\n"; ! echo str_replace($search, $replace, $CVSServer->FILECONTENTS)."\n"; echo "</pre>\n"; --- 53,64 ---- $search = array('<', '>', '\n', '\t'); $replace = array("<", ">", "", " "); + $content = str_replace($search, $replace, $CVSServer->FILECONTENTS); + $source = explode("\n", $content); + $soure_size = sizeof($source); + echo "<pre>\n"; ! for($i = 1; $i <= $soure_size; $i++) { ! echo '<a name="'.$i.'" class="numberedLine">'.str_repeat(' ', strlen($soure_size) - strlen($i)). $i.':</a> ' . $source[$i-1] . "\n"; ! } echo "</pre>\n"; |
From: Sijis A. <si...@us...> - 2004-10-06 08:50:17
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25859/Themes/Default Modified Files: theme.php Log Message: - changed statements to handle enviroment data array - minor cosmetic changes Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** theme.php 4 Oct 2004 11:40:17 -0000 1.3 --- theme.php 6 Oct 2004 08:49:58 -0000 1.4 *************** *** 11,15 **** * @copyright 2003-2004 Brian A Cheeseman **/ ! $FolderIcon = "Themes/Default/Images/folder.gif"; $FileIcon = "Themes/Default/Images/file.gif"; --- 11,15 ---- * @copyright 2003-2004 Brian A Cheeseman **/ ! $FolderIcon = "Themes/Default/Images/folder.gif"; $FileIcon = "Themes/Default/Images/file.gif"; *************** *** 25,33 **** $PageHead .= "<link href=\"Themes/Default/theme.css\" rel=\"stylesheet\" type=\"text/css\" />"; $PageHead .= "</head>"; ! } // End of if ($Title != "") $PageHead .= "<body>"; if ($Heading != "") { $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"; --- 25,35 ---- $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 our CVS Repository viewer. This page has been dynamically"; $PageHead .= " created with '<a href=\"http://phpcvsview.sourceforge.net/\">phpCVS"; *************** *** 35,39 **** $PageHead .= "\">Brian Cheeseman</a>.</p><p>Please feel free to browse our source code.</p>"; return $PageHead; ! } // End of function GetPageHeader($Title="", $Heading="") function GetPageFooter() { --- 37,41 ---- $PageHead .= "\">Brian Cheeseman</a>.</p><p>Please feel free to browse our source code.</p>"; return $PageHead; ! } function GetPageFooter() { *************** *** 46,56 **** $PageFoot .= "</body></html>"; return $PageFoot; ! } // 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; --- 48,60 ---- $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; *************** *** 58,82 **** $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) { --- 62,85 ---- $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) { *************** *** 104,111 **** 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"; --- 107,114 ---- 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\">\n"; ! echo " <td align=\"center\"><a href=\"$HREF\"><img alt=\"parent\" src=\"".$env['script_path']."/$ParentIcon\" /></a></td>\n"; echo " <td><a href=\"$HREF\">Up one folder</a></td>\n"; echo " <td> </td>\n"; *************** *** 119,128 **** 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"; --- 122,130 ---- 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\">\n"; ! echo " <td align=\"center\"><a href=\"$HREF\"><img alt=\"DIR\" src=\"".$env['script_path']."/$FolderIcon\" /></a></td>\n"; echo " <td><a href=\"$HREF\">".$Folder["Name"]."</a></td>\n"; echo " <td> </td>\n"; *************** *** 133,139 **** if ($RowClass == "row1") { $RowClass = "row2"; ! } ! else ! { $RowClass = "row1"; } --- 135,139 ---- if ($RowClass == "row1") { $RowClass = "row2"; ! } else { $RowClass = "row1"; } *************** *** 143,154 **** 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"; --- 143,153 ---- 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\" valign=\"top\">\n"; ! echo " <td align=\"center\"><a href=\"$HREF&fh\"><img alt=\"FILE\" src=\"".$env['script_path']."/$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"; *************** *** 159,165 **** if ($RowClass == "row1") { $RowClass = "row2"; ! } ! else ! { $RowClass = "row1"; } --- 158,162 ---- if ($RowClass == "row1") { $RowClass = "row2"; ! } else { $RowClass = "row1"; } *************** *** 167,169 **** } ! ?> \ No newline at end of file --- 164,166 ---- } ! ?> |
From: Sijis A. <si...@us...> - 2004-10-06 08:40:56
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23542 Modified Files: func_DirListing.php func_FileAnnotation.php func_FileHistory.php func_FileView.php Log Message: - changed statements to handle enviroment data array Index: func_FileView.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileView.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** func_FileView.php 5 Oct 2004 17:45:36 -0000 1.5 --- func_FileView.php 6 Oct 2004 08:40:29 -0000 1.6 *************** *** 14,23 **** function DisplayFileContents($File, $Revision = "") { ! global $config; ! // Calculate the path from the $ScriptName variable. ! $ScriptPath = substr($ScriptName, 0, strrpos($ScriptName, "/")); ! if ($ScriptPath == ""){ ! $ScriptPath = "/"; } --- 14,23 ---- function DisplayFileContents($File, $Revision = "") { ! global $config, $env; ! // Calculate the path from the $env['script_name'] variable. ! $env['script_path'] = substr($env['script_name'], 0, strrpos($env['script_name'], "/")); ! if ($env['script_path'] == ""){ ! $env['script_path'] = "/"; } *************** *** 37,42 **** } ! // Get a RLOG of the module path specified in $config['mod_path']. ! $CVSServer->RLog($config['mod_path']); // "Export" the file. --- 37,42 ---- } ! // Get a RLOG of the module path specified in $env['mod_path']. ! $CVSServer->RLog($env['mod_path']); // "Export" the file. *************** *** 47,51 **** // Add the quick link navigation bar. ! echo GetQuickLinkBar($config['mod_path'], "Code view for: ", true, true, $Revision); // Display the file contents. --- 47,51 ---- // Add the quick link navigation bar. ! echo GetQuickLinkBar($env['mod_path'], "Code view for: ", true, true, $Revision); // Display the file contents. Index: func_FileAnnotation.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileAnnotation.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** func_FileAnnotation.php 5 Oct 2004 17:45:36 -0000 1.6 --- func_FileAnnotation.php 6 Oct 2004 08:40:29 -0000 1.7 *************** *** 14,23 **** function DisplayFileAnnotation($File, $Revision = "") { ! global $config; ! // Calculate the path from the $ScriptName variable. ! $ScriptPath = substr($ScriptName, 0, strrpos($ScriptName, "/")); ! if ($ScriptPath == "") { ! $ScriptPath = "/"; } --- 14,23 ---- function DisplayFileAnnotation($File, $Revision = "") { ! global $config, $env; ! // Calculate the path from the $env['script_name'] variable. ! $env['script_path'] = substr($env['script_name'], 0, strrpos($env['script_name'], "/")); ! if ($env['script_path'] == "") { ! $env['script_path'] = "/"; } Index: func_DirListing.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_DirListing.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** func_DirListing.php 5 Oct 2004 17:45:36 -0000 1.6 --- func_DirListing.php 6 Oct 2004 08:40:29 -0000 1.7 *************** *** 14,18 **** function DisplayDirListing() { ! global $config; // Create our CVS connection object and set the required properties. --- 14,18 ---- function DisplayDirListing() { ! global $config, $env; // Create our CVS connection object and set the required properties. *************** *** 32,39 **** // Get a RLOG of the module path specified in $config['mod_path']. ! $CVSServer->RLog($config['mod_path']); // Add the quick link navigation bar. ! echo GetQuickLinkBar($config['mod_path']); // Start the output for the table. --- 32,39 ---- // Get a RLOG of the module path specified in $config['mod_path']. ! $CVSServer->RLog($env['mod_path']); // Add the quick link navigation bar. ! echo GetQuickLinkBar($env['mod_path']); // Start the output for the table. *************** *** 41,53 **** // Do we need the "Back" operation. ! if (strlen($config['mod_path']) > 1) { ! addParentDirectory($ScriptName, $ScriptPath, $config['mod_path']); } // Display the folders within the table. ! addFolders($config['mod_path'], $CVSServer->FOLDERS); // Display the files within the table. ! addFiles($config['mod_path'], $CVSServer->FILES); // Close off our HTML table. --- 41,53 ---- // Do we need the "Back" operation. ! if (strlen($env['mod_path']) > 1) { ! addParentDirectory($env['script_name'], $env['script_path'], $env['mod_path']); } // Display the folders within the table. ! addFolders($env['mod_path'], $CVSServer->FOLDERS); // Display the files within the table. ! addFiles($env['mod_path'], $CVSServer->FILES); // Close off our HTML table. Index: func_FileHistory.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileHistory.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** func_FileHistory.php 5 Oct 2004 17:45:36 -0000 1.5 --- func_FileHistory.php 6 Oct 2004 08:40:29 -0000 1.6 *************** *** 14,23 **** function DisplayFileHistory() { ! global $config; ! // Calculate the path from the $ScriptName variable. ! $ScriptPath = substr($ScriptName, 0, strrpos($ScriptName, "/")); ! if ($ScriptPath == "") { ! $ScriptPath = "/"; } --- 14,23 ---- function DisplayFileHistory() { ! global $config, $env; ! // Calculate the path from the $env['script_name'] variable. ! $env['script_path'] = substr($env['script_name'], 0, strrpos($env['script_name'], "/")); ! if ($env['script_path'] == "") { ! $env['script_path'] = "/"; } *************** *** 38,50 **** // Get a RLOG of the module path specified in $config['mod_path']. ! $CVSServer->RLog($config['mod_path']); $Files = $CVSServer->FILES; // Add the quick link navigation bar. ! echo GetQuickLinkBar($config['mod_path'], "Revision History for: ", false, true, ""); foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $HREF = str_replace("//", "/", "$ScriptName?mp=".$config['mod_path']); $DateTime = strtotime($Revision["date"]); echo "<hr /><p><a id=\"rd$DateTime\" />\n"; --- 38,50 ---- // Get a RLOG of the module path specified in $config['mod_path']. ! $CVSServer->RLog($env['mod_path']); $Files = $CVSServer->FILES; // Add the quick link navigation bar. ! echo GetQuickLinkBar($env['mod_path'], "Revision History for: ", false, true, ""); foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); $DateTime = strtotime($Revision["date"]); echo "<hr /><p><a id=\"rd$DateTime\" />\n"; |
From: Sijis A. <si...@us...> - 2004-10-06 08:36:14
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22505 Modified Files: cvsview.php Log Message: - changed enviroment path data from strings to arrays Index: cvsview.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/cvsview.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** cvsview.php 5 Oct 2004 17:45:36 -0000 1.15 --- cvsview.php 6 Oct 2004 08:36:02 -0000 1.16 *************** *** 14,25 **** require_once 'config.php'; ! global $config; $REPOS = ""; ! $ScriptName = $_SERVER['PHP_SELF']; ! $ScriptPath = substr($ScriptName, 0, strrpos($ScriptName, "/")); ! if ($ScriptPath == "") { ! $ScriptPath = "/"; } --- 14,25 ---- require_once 'config.php'; ! global $config, $env; $REPOS = ""; ! $env['script_name'] = $_SERVER['PHP_SELF']; ! $env['script_path'] = substr($env['script_name'], 0, strrpos($env['script_name'], "/")); ! if ($env['script_path'] == "") { ! $env['script_path'] = "/"; } *************** *** 42,51 **** // Check for a module path if (isset($_GET["mp"])) { ! $config['mod_path'] = $_GET["mp"]; } else { ! $config['mod_path'] = "/"; } ! $config['mod_path'] = str_replace("//", "/", $config['mod_path']); if (isset($_GET["fh"])) { --- 42,51 ---- // Check for a module path if (isset($_GET["mp"])) { ! $env['mod_path'] = $_GET["mp"]; } else { ! $env['mod_path'] = "/"; } ! $env['mod_path'] = str_replace("//", "/", $env['mod_path']); if (isset($_GET["fh"])) { *************** *** 53,60 **** } else { if (isset($_GET["fa"])) { ! DisplayFileAnnotation($config['mod_path'], $_GET["fa"]); } else { if (isset($_GET["fv"])) { ! DisplayFileContents($config['mod_path'], $_GET["dt"]); } else { DisplayDirListing(); --- 53,60 ---- } else { if (isset($_GET["fa"])) { ! DisplayFileAnnotation($env['mod_path'], $_GET["fa"]); } else { if (isset($_GET["fv"])) { ! DisplayFileContents($env['mod_path'], $_GET["dt"]); } else { DisplayDirListing(); |
From: Sijis A. <si...@us...> - 2004-10-06 08:33:06
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21899 Modified Files: phpcvs.php Log Message: - fixed logic error of parsing the raw date: data Index: phpcvs.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/phpcvs.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** phpcvs.php 5 Oct 2004 17:54:32 -0000 1.16 --- phpcvs.php 6 Oct 2004 08:32:49 -0000 1.17 *************** *** 860,867 **** if (strncmp($Line, "date:", 5) == 0) { $Segment = explode(";", $Line); ! for($i = 0; $i <= sizeof($Segment); $i++){ ! $SepPos = trim(strpos($Segment[$i], ":")); ! $Name = trim(substr($Segment[$i], 0, $SepPos)); ! $Value = trim(substr($Segment[$i], $SepPos+1)); $this->FILES[$FileCount]["Revisions"]["$CurrentRevision"]["$Name"] = $Value; } --- 860,867 ---- if (strncmp($Line, "date:", 5) == 0) { $Segment = explode(";", $Line); ! foreach($Segment as $Part){ ! $SepPos = trim(strpos($Part, ":")); ! $Name = trim(substr($Part, 0, $SepPos)); ! $Value = trim(substr($Part, $SepPos+1)); $this->FILES[$FileCount]["Revisions"]["$CurrentRevision"]["$Name"] = $Value; } |
From: Sijis A. <si...@us...> - 2004-10-05 17:57:03
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30668 Modified Files: phpcvs.php Log Message: - changed debug() function - cosmetic fixes Index: phpcvs.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/phpcvs.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** phpcvs.php 4 Oct 2004 11:43:54 -0000 1.15 --- phpcvs.php 5 Oct 2004 17:54:32 -0000 1.16 *************** *** 11,18 **** * @copyright 2003-2004 Brian A Cheeseman **/ ! require_once 'Net/Socket.php'; ! class CVS_PServer { var $CVS_REPOSITORY; // Storage of the CVS Repository file system path. --- 11,19 ---- * @copyright 2003-2004 Brian A Cheeseman [...1368 lines suppressed...] ! // string - (optional) options: var_dump, both, print_r ! // Return Value: void - none. ! // *************************************************************************** ! function debug($foo, $bar = ""){ ! echo "<pre>"; ! switch($bar){ ! case "var_dump": ! echo var_dump($foo); ! break; ! case "both": ! echo var_dump($foo); ! echo print_r($foo); ! break; ! case "print_r": ! default: ! echo print_r($foo); } + echo '</pre>'; } |
From: Sijis A. <si...@us...> - 2004-10-05 17:46:27
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28741 Modified Files: cvsview.php func_DirListing.php func_FileAnnotation.php func_FileHistory.php func_FileView.php Log Message: - changed statements to handle configuration data in array format - minor cosmetic changes Index: func_FileView.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileView.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** func_FileView.php 4 Oct 2004 11:46:37 -0000 1.4 --- func_FileView.php 5 Oct 2004 17:45:36 -0000 1.5 *************** *** 12,34 **** **/ ! 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(); --- 12,34 ---- **/ ! function DisplayFileContents($File, $Revision = "") ! { ! global $config; // 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($config['cvsroot'], $config['pserver'], $config['username'], $config['password']); ! // Start the output process. ! echo GetPageHeader($config['html_title'], $config['html_header']); ! // Connect to the CVS server. if ($CVSServer->Connect() === true) { ! // Authenticate against the server. $Response = $CVSServer->Authenticate(); *************** *** 36,43 **** return; } ! ! // Get a RLOG of the module path specified in $ModPath. ! $CVSServer->RLog($ModPath); ! // "Export" the file. $Response = $CVSServer->ExportFile($File, $Revision); --- 36,43 ---- return; } ! ! // Get a RLOG of the module path specified in $config['mod_path']. ! $CVSServer->RLog($config['mod_path']); ! // "Export" the file. $Response = $CVSServer->ExportFile($File, $Revision); *************** *** 45,65 **** return; } ! // 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. $CVSServer->Disconnect(); ! } ! else ! { echo "ERROR: Could not connect to the PServer.<br>\n"; } --- 45,63 ---- return; } ! // Add the quick link navigation bar. ! echo GetQuickLinkBar($config['mod_path'], "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. $CVSServer->Disconnect(); ! } else { echo "ERROR: Could not connect to the PServer.<br>\n"; } *************** *** 67,70 **** } ! ! ?> \ No newline at end of file --- 65,67 ---- } ! ?> Index: cvsview.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/cvsview.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** cvsview.php 4 Oct 2004 11:52:39 -0000 1.14 --- cvsview.php 5 Oct 2004 17:45:36 -0000 1.15 *************** *** 12,44 **** **/ - /** - * - * phpCVSView Configuration Parameters. - * - **/ require_once 'config.php'; ! global $CVSROOT, $PServer, $UserName, $Password, $HTMLTitle, $HTMLHeading, $HTMLTblHdBg, $HTMLTblCell1, $HTMLTblCell2; ! ! /** ! * * End of phpCVSView Configuration Parameters. ! * ! **/ $REPOS = ""; $ScriptName = $_SERVER['PHP_SELF']; $ScriptPath = substr($ScriptName, 0, strrpos($ScriptName, "/")); if ($ScriptPath == "") { $ScriptPath = "/"; } ! if (isset($_GET["tm"])) { $ThemeName = $_GET["tm"]; ! } ! else ! { $ThemeName = "Default"; } ! require_once "Themes/$ThemeName/theme.php"; require_once 'phpcvs.php'; --- 12,33 ---- **/ require_once 'config.php'; ! global $config; $REPOS = ""; $ScriptName = $_SERVER['PHP_SELF']; $ScriptPath = substr($ScriptName, 0, strrpos($ScriptName, "/")); + if ($ScriptPath == "") { $ScriptPath = "/"; } ! if (isset($_GET["tm"])) { $ThemeName = $_GET["tm"]; ! } else { $ThemeName = "Default"; } ! require_once "Themes/$ThemeName/theme.php"; require_once 'phpcvs.php'; *************** *** 50,77 **** require_once 'func_FileView.php'; ! // Check for a module path if (isset($_GET["mp"])) { ! $ModPath = $_GET["mp"]; ! } else { // Else of if (isset($_GET["CVSROOT"])) ! $ModPath = "/"; ! } // End of if (isset($_GET["CVSROOT"])) ! $ModPath = str_replace("//", "/", $ModPath); if (isset($_GET["fh"])) { DisplayFileHistory(); ! } ! else ! { if (isset($_GET["fa"])) { ! DisplayFileAnnotation($ModPath, $_GET["fa"]); ! } ! else ! { if (isset($_GET["fv"])) { ! DisplayFileContents($ModPath, $_GET["dt"]); ! } ! else ! { DisplayDirListing(); } --- 39,61 ---- require_once 'func_FileView.php'; ! // Check for a module path if (isset($_GET["mp"])) { ! $config['mod_path'] = $_GET["mp"]; ! } else { ! $config['mod_path'] = "/"; ! } ! ! $config['mod_path'] = str_replace("//", "/", $config['mod_path']); if (isset($_GET["fh"])) { DisplayFileHistory(); ! } else { if (isset($_GET["fa"])) { ! DisplayFileAnnotation($config['mod_path'], $_GET["fa"]); ! } else { if (isset($_GET["fv"])) { ! DisplayFileContents($config['mod_path'], $_GET["dt"]); ! } else { DisplayDirListing(); } Index: func_FileAnnotation.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileAnnotation.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** func_FileAnnotation.php 4 Oct 2004 11:50:31 -0000 1.5 --- func_FileAnnotation.php 5 Oct 2004 17:45:36 -0000 1.6 *************** *** 12,18 **** **/ ! function DisplayFileAnnotation($File, $Revision = "") { ! global $ModPath, $CVSROOT, $PServer, $UserName, $Password, $ScriptName, ! $HTMLTitle, $HTMLHeading, $HTMLTblHdBg, $HTMLTblCell1, $HTMLTblCell2; // Calculate the path from the $ScriptName variable. --- 12,18 ---- **/ ! function DisplayFileAnnotation($File, $Revision = "") ! { ! global $config; // Calculate the path from the $ScriptName variable. *************** *** 21,34 **** $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(); --- 21,34 ---- $ScriptPath = "/"; } ! // Create our CVS connection object and set the required properties. ! $CVSServer = new CVS_PServer($config['cvsroot'], $config['pserver'], $config['username'], $config['password']); ! // Start the output process. ! echo GetPageHeader($config['html_title'], $config['html_header']); ! // Connect to the CVS server. if ($CVSServer->Connect() === true) { ! // Authenticate against the server. $Response = $CVSServer->Authenticate(); *************** *** 36,40 **** return; } ! // Annotate the file. $Response = $CVSServer->Annotate($File, $Revision); --- 36,40 ---- return; } ! // Annotate the file. $Response = $CVSServer->Annotate($File, $Revision); *************** *** 42,46 **** return; } ! // Start the output for the table. echo "<hr />\n"; --- 42,46 ---- return; } ! // Start the output for the table. echo "<hr />\n"; *************** *** 48,63 **** $RowClass = "row1"; ! $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; } --- 48,60 ---- $RowClass = "row1"; ! $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; } *************** *** 66,77 **** if ($RowClass == "row1") { $RowClass = "row2"; ! } ! else ! { $RowClass = "row1"; } ! } ! else ! { echo "\n".str_replace($search, $replace, $Annotation["Line"]); } --- 63,70 ---- if ($RowClass == "row1") { $RowClass = "row2"; ! } else { $RowClass = "row1"; } ! } else{ echo "\n".str_replace($search, $replace, $Annotation["Line"]); } *************** *** 79,88 **** } echo "</table><hr />\n"; ! // Close the connection. $CVSServer->Disconnect(); ! } ! else ! { echo "ERROR: Could not connect to the PServer.<br />\n"; } --- 72,79 ---- } echo "</table><hr />\n"; ! // Close the connection. $CVSServer->Disconnect(); ! } else{ echo "ERROR: Could not connect to the PServer.<br />\n"; } *************** *** 90,93 **** } ! ! ?> \ No newline at end of file --- 81,83 ---- } ! ?> Index: func_DirListing.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_DirListing.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** func_DirListing.php 4 Oct 2004 11:51:32 -0000 1.5 --- func_DirListing.php 5 Oct 2004 17:45:36 -0000 1.6 *************** *** 12,28 **** **/ ! 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); ! // Start the output process. ! echo GetPageHeader($HTMLTitle, $HTMLHeading); ! // Connect to the CVS server. if ($CVSServer->Connect() === true) { ! // Authenticate against the server. $Response = $CVSServer->Authenticate(); --- 12,28 ---- **/ ! function DisplayDirListing() ! { ! global $config; // Create our CVS connection object and set the required properties. ! $CVSServer = new CVS_PServer($config['cvsroot'], $config['pserver'], $config['username'], $config['password']); ! // Start the output process. ! echo GetPageHeader($config['html_title'], $config['html_header']); ! // Connect to the CVS server. if ($CVSServer->Connect() === true) { ! // Authenticate against the server. $Response = $CVSServer->Authenticate(); *************** *** 30,65 **** return; } ! ! // Get a RLOG of the module path specified in $ModPath. ! $CVSServer->RLog($ModPath); ! // 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."; ! } // End of if ($Response !== true) echo GetPageFooter(); ! } // End of function DisplayDirListing() ! ! ! ?> \ No newline at end of file --- 30,63 ---- return; } ! ! // Get a RLOG of the module path specified in $config['mod_path']. ! $CVSServer->RLog($config['mod_path']); ! // Add the quick link navigation bar. ! echo GetQuickLinkBar($config['mod_path']); ! // Start the output for the table. startDirList(); ! // Do we need the "Back" operation. ! if (strlen($config['mod_path']) > 1) { ! addParentDirectory($ScriptName, $ScriptPath, $config['mod_path']); } // Display the folders within the table. ! addFolders($config['mod_path'], $CVSServer->FOLDERS); // Display the files within the table. ! addFiles($config['mod_path'], $CVSServer->FILES); ! // Close off our HTML table. endDirList(); $CVSServer->Disconnect(); ! } else { echo "Connection Failed."; ! } echo GetPageFooter(); ! } ! ?> Index: func_FileHistory.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileHistory.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** func_FileHistory.php 4 Oct 2004 11:48:12 -0000 1.4 --- func_FileHistory.php 5 Oct 2004 17:45:36 -0000 1.5 *************** *** 14,20 **** function DisplayFileHistory() { ! 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, "/")); --- 14,19 ---- function DisplayFileHistory() { ! global $config; ! // Calculate the path from the $ScriptName variable. $ScriptPath = substr($ScriptName, 0, strrpos($ScriptName, "/")); *************** *** 22,35 **** $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(); --- 21,34 ---- $ScriptPath = "/"; } ! // Create our CVS connection object and set the required properties. ! $CVSServer = new CVS_PServer($config['cvsroot'], $config['pserver'], $config['username'], $config['password']); ! // Start the output process. ! echo GetPageHeader($config['html_title'], $config['html_header']); ! // Connect to the CVS server. if ($CVSServer->Connect() === true) { ! // Authenticate against the server. $Response = $CVSServer->Authenticate(); *************** *** 37,52 **** return; } ! ! // Get a RLOG of the module path specified in $ModPath. ! $CVSServer->RLog($ModPath); $Files = $CVSServer->FILES; ! // Add the quick link navigation bar. ! echo GetQuickLinkBar($ModPath, "Revision History for: ", false, true, ""); ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) ! { ! $HREF = str_replace("//", "/", "$ScriptName?mp=$ModPath"); $DateTime = strtotime($Revision["date"]); echo "<hr /><p><a id=\"rd$DateTime\" />\n"; --- 36,50 ---- return; } ! ! // Get a RLOG of the module path specified in $config['mod_path']. ! $CVSServer->RLog($config['mod_path']); $Files = $CVSServer->FILES; ! // Add the quick link navigation bar. ! echo GetQuickLinkBar($config['mod_path'], "Revision History for: ", false, true, ""); ! foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $HREF = str_replace("//", "/", "$ScriptName?mp=".$config['mod_path']); $DateTime = strtotime($Revision["date"]); echo "<hr /><p><a id=\"rd$DateTime\" />\n"; *************** *** 68,82 **** echo "<b>Log Message:</b></p><pre>".$Revision["LogMessage"]."</pre>\n"; } ! echo "<hr />\n"; ! $CVSServer->Disconnect(); ! } else { // Else of if ($CVSServer->Connect() === true) echo "Connection Failed."; ! } // End of if ($CVSServer->Connect() === true) echo GetPageFooter(); } ! ! ! ?> \ No newline at end of file --- 66,78 ---- echo "<b>Log Message:</b></p><pre>".$Revision["LogMessage"]."</pre>\n"; } ! echo "<hr />\n"; ! $CVSServer->Disconnect(); ! } else { echo "Connection Failed."; ! } echo GetPageFooter(); } ! ?> |