phpcvsview-cvs-updates Mailing List for PHP CVS Repository Viewer (Page 4)
Status: Pre-Alpha
Brought to you by:
bcheesem
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
(1) |
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(7) |
Oct
(43) |
Nov
|
Dec
(19) |
2005 |
Jan
(28) |
Feb
(85) |
Mar
|
Apr
(16) |
May
(2) |
Jun
|
Jul
|
Aug
(3) |
Sep
(14) |
Oct
|
Nov
(16) |
Dec
|
2006 |
Jan
(9) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Sijis A. <si...@us...> - 2005-02-05 22:58:41
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22508 Modified Files: func_DiffFile.php Log Message: - fixed error in pserver connection string. Index: func_DiffFile.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_DiffFile.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** func_DiffFile.php 4 Feb 2005 09:40:18 -0000 1.4 --- func_DiffFile.php 5 Feb 2005 22:58:31 -0000 1.5 *************** *** 49,53 **** $CVSServer->Disconnect(); ! $CVSServer = new CVS_PServer($config['cvsroot'], $config['pserver'], $config['username'], $config['password']); $CVSServer->Connect(); $CVSServer->Authenticate(); --- 49,53 ---- $CVSServer->Disconnect(); ! $CVSServer = new CVS_PServer($env['CVSSettings']['cvsroot'], $env['CVSSettings']['server'], $env['CVSSettings']['username'], $env['CVSSettings']['password']); $CVSServer->Connect(); $CVSServer->Authenticate(); |
From: Brian C. <bch...@us...> - 2005-02-04 23:14:33
|
Update of /cvsroot/phpcvsview/phpcvsview/languages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20690/languages Added Files: pt_br.php Log Message: Added language file for Portuguese Brazilian as translated by Giuliano Camarini de Oliveira --- NEW FILE: pt_br.php --- <?php /** * This source code is distributed under the terms as layed out in the * GNU General Public License. * * Purpose: Portuguese Brazilian translation file. * * @author Sijis Aviles <si...@us...> * @version $Id: pt_br.php,v 1.1 2005/02/04 23:14:24 bcheesem Exp $ * @copyright 2003-2005 Brian A Cheeseman * * Translation completed Giuliano Camarini de Oliveira <gco...@ro...> * Translation copyright 2005 Karlos Giuliano Camarini de Oliveira **/ $lang['encoding'] = 'iso-8859-1'; // listing options $lang['file'] = 'Arquivo'; $lang['rev'] = 'Rev.'; $lang['age'] = 'Idade'; $lang['author'] = 'Autor'; $lang['last_log'] = 'Ãltima Entrada Perdida'; // customization options $lang['language'] = 'Português'; $lang['theme'] = 'Trocar Tema: '; // quick link bar listing $lang['change_theme'] = 'Trocar Tema: '; $lang['change_lang'] = 'LÃngua: '; $lang['change_cvsroot'] = 'Repositório CVS: '; $lang['up_folder'] = 'Subir um diretório'; $lang['rev_history'] = 'Histórico de revisões para: '; $lang['rev_diff'] = 'Diferença de revisões para: '; $lang['code_view'] = 'Visualização do código para: '; $lang['navigate_to'] = 'Navegar para: '; $lang['file_ext'] = 'Extensão do arquivo: '; $lang['annotate_history'] = 'Histórico de notas para: '; $lang['mime_type'] = 'Mime Type é: '; // time and date related $lang['year'] = 'Ano'; $lang['years'] = 'Anos'; $lang['week'] = 'Semana'; $lang['weeks'] = 'Semanas'; $lang['day'] = 'Dia'; $lang['days'] = 'Dias'; $lang['hour'] = 'Hora'; $lang['hours'] = 'Horas'; $lang['minute'] = 'Minuto'; $lang['minutes'] = 'Minutos'; $lang['second'] = 'Segundo'; $lang['seconds'] = 'Segundos'; $lang['ago'] = 'atrás'; // navigation path $lang['root'] = 'Raiz'; // top message $lang['message'] = '<p>Bem-vindo ao sistema de visualização de repositório CVS para o projeto phpCVSView hospedado no SourceForge.net</p><p>O objetivo deste projeto é simplesmente construir uma aplicação/classe PHP para prover acesso a um repositório de controle de fontes baseado em CVS usando vários mecanismos de conectividade disponÃveis para CVS em geral. Existem também algumas extensões para este objetivo que estão planejadas para versões futuras, como um cliente CVS totalmente baseado em web utilizando o núcleo deste projeto.</p><p>Portanto, por favor sinta-se livre para olhar nosso código, sugerir novas caracterÃsticas, testar o código no seu próprio ambiente, enviar bugs, e acima de tudo, apoiar o comprometimento dos desenvolvedores em código aberto utilizando os maravilhosos produtos disponÃveis.</p><p>Atenciosamente,<br />Brian Cheeseman. <br />LÃder do Projeto phpCVSView.</p>'; // bottom messages $lang['generated'] = 'Esta página foi gerada por <a href="http://phpcvsview.sourceforge.net/">phpCVSView</a> em '; $lang['created_by'] = 'phpCVSView criado por <a href="mailto:bch...@us...">Brian Cheeseman</a> e <a href="mailto:si...@us...">Sijis Aviles</a>.'; // file options $lang['view'] = 'ver'; $lang['download'] = 'download'; $lang['diff'] = 'diferenças em relação ao anterior'; $lang['annotate'] = 'notas'; // file details $lang['revision'] = 'Revisão'; $lang['last_checkin'] = 'Ãltimo Checkin:'; $lang['notice'] = 'Observação:'; $lang['branch'] = 'Seção:'; $lang['date'] = 'Data:'; $lang['time'] = 'Hora:'; $lang['state'] = 'Estado:'; $lang['changes'] = 'Mudanças desde '; $lang['log_message'] = 'Mensagem do Log:'; // error messages $lang['err_connect'] = '<h2>ERRO: Falha ao conectar ao PServer.</h2>'."\n"; $lang['err_get_rev'] = '<h3>ERRO: Solicitando Revisão para o arquivo:</h3>'; ?> |
From: Brian C. <bch...@us...> - 2005-02-04 23:13:07
|
Update of /cvsroot/phpcvsview/phpcvsview/languages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20361/languages Added Files: es.php Log Message: Added language file for Spanish as translated by Karlos Olmedo --- NEW FILE: es.php --- <?php /** * This source code is distributed under the terms as layed out in the * GNU General Public License. * * Purpose: Spanish translation file. * * @author Sijis Aviles <si...@us...> * @version $Id: es.php,v 1.1 2005/02/04 23:12:58 bcheesem Exp $ * @copyright 2003-2005 Brian A Cheeseman * * Translation completed Karlos Olmedo <Ha...@du...> * Translation copyright 2005 Karlos Olmedo **/ $lang['encoding'] = 'iso-8859-1'; // listing options $lang['file'] = 'Archivo'; $lang['rev'] = 'Rev.'; $lang['age'] = 'Edad'; $lang['author'] = 'Autor'; $lang['last_log'] = 'Última entrada perdida'; // customization options $lang['language'] = 'Español'; $lang['theme'] = 'Cambiar estilo: '; // quick link bar listing $lang['change_theme'] = 'Cambiar estilo: '; $lang['change_lang'] = 'Idioma: '; $lang['change_cvsroot'] = 'Repositorio CVS: '; $lang['up_folder'] = 'Subir una carpeta'; $lang['rev_history'] = 'Historial de la Revisión: '; $lang['rev_diff'] = 'Diferencias de Revisión: '; $lang['code_view'] = 'Vista de Código: '; $lang['navigate_to'] = 'Navegar a: '; $lang['file_ext'] = 'Extensión del archivo: '; $lang['annotate_history'] = 'Anotación del historial: '; $lang['mime_type'] = 'Tipo MIME: '; // time and date related $lang['year'] = 'Año'; $lang['years'] = 'Años'; $lang['week'] = 'Semana'; $lang['weeks'] = 'Semanas'; $lang['day'] = 'Día'; $lang['days'] = 'Días'; $lang['hour'] = 'Hora'; $lang['hours'] = 'Horas'; $lang['minute'] = 'Minuto'; $lang['minutes'] = 'Minutos'; $lang['second'] = 'Segundo'; $lang['seconds'] = 'Segundos'; $lang['ago'] = 'hace'; // navigation path $lang['root'] = 'Root'; // top message $lang['message'] = '<p>Bienvenido/a al sistema de visualización CVS Repository para el proyecto phpCVSView hospedado en SourceForge.net</p><p>El objetivo de este proyecto es simplemente construir una aplicación/clase para dar acceso a un repositorio de control de codigo CVS sobre los variados mecanismos de conexión disponibles para CVS en general. Hay además objetivos añadidos planeados para futuros lanzamientos, como un completo cliente via web utilizando el nucleo de este proyecto.</p><p>Asi que por favor sientase libre de mirar nuestro código, sugerir nuevas características, testear el código en su propio entorno, comunicar bugs, y de darle soporte al compromiso de los desarrolladores del software libre usando los muchos y maravillosos productos disponibles.</p><p>Kindest Regards,<br />Brian Cheeseman. <br />Jefe del proyecto phpCVSView.</p>'; // bottom messages $lang['generated'] = 'Esta página ha sido generada por <a href="http://phpcvsview.sourceforge.net/">phpCVSView</a> en '; $lang['created_by'] = 'phpCVSView creado por <a href="mailto:bch...@us...">Brian Cheeseman</a> y <a href="mailto:si...@us...">Sijis Aviles</a>.'; // file options $lang['view'] = 'ver'; $lang['download'] = 'descargar'; $lang['diff'] = 'al anterior'; $lang['annotate'] = 'anotar'; // file details $lang['revision'] = 'Revisión'; $lang['last_checkin'] = 'Ultima comprobación:'; $lang['notice'] = 'Aviso:'; $lang['branch'] = 'Rama:'; $lang['date'] = 'Fecha:'; $lang['time'] = 'Hora:'; $lang['state'] = 'Estado:'; $lang['changes'] = 'Cambios desde '; $lang['log_message'] = 'Mensaje de Log:'; // error messages $lang['err_connect'] = '<h2>ERROR: No se puede conectar con el PServer.</h2>'."\n"; $lang['err_get_rev'] = '<h3>ERROR: Obteniendo revisión para el archivo:</h3>'; ?> |
From: Brian C. <bch...@us...> - 2005-02-04 11:03:25
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25348 Modified Files: utils.php Log Message: Fixed PHP Notice under IIS where $_ENVIRON['LANGUAGE'] is not available. Index: utils.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/utils.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** utils.php 4 Feb 2005 09:47:54 -0000 1.8 --- utils.php 4 Feb 2005 11:03:13 -0000 1.9 *************** *** 148,156 **** global $env, $config, $_ENVIRON; // en_AU:en_GB:en ! $PreferredLangs = explode(":", $_ENVIRON['LANGUAGE']); ! foreach ($PreferredLangs as $Lang) { ! $FileToCheck = $env['language_path']."$Lang.php"; ! if (file_exists($FileToCheck)) { ! return $Lang; } } --- 148,158 ---- global $env, $config, $_ENVIRON; // en_AU:en_GB:en ! if (isset($_ENVIRON['LANGUAGE'])) { ! $PreferredLangs = explode(":", $_ENVIRON['LANGUAGE']); ! foreach ($PreferredLangs as $Lang) { ! $FileToCheck = $env['language_path']."$Lang.php"; ! if (file_exists($FileToCheck)) { ! return $Lang; ! } } } |
From: Brian C. <bch...@us...> - 2005-02-04 10:57:34
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Green In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24100/Themes/Green Modified Files: theme.css theme.php Log Message: Updated secondary themes to bring them inline with the Default theme. Updates include - Multiple CVS Repository Capability. - DIFF display functionality. - Package Download Capability. Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Green/theme.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** theme.php 2 Feb 2005 11:56:16 -0000 1.3 --- theme.php 4 Feb 2005 10:56:39 -0000 1.4 *************** *** 11,38 **** * @copyright 2003-2005 Brian A Cheeseman **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; $FileIcon = "Themes/".$config['theme']."/Images/file.png"; $ParentIcon = "Themes/".$config['theme']."/Images/parent.png"; $ModuleIcon = "Themes/".$config['theme']."/Images/module.png"; function GetPageHeader($Title="", $Heading="") { global $StartTime, $config, $env, $lang; $StartTime = microtime(); ! $PageHead = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">"; ! $PageHead .= "<html><head>"; if ($Title != "") { ! $PageHead .= "<title>$Title</title>"; } ! $PageHead .= "<link href=\"Themes/".$config['theme']."/theme.css\" rel=\"stylesheet\" type=\"text/css\" />"; // Add JavaScript to postback the change in theme selection. ! $PageHead .= "<script src=\"./phpcvsview.js\"></script>"; ! $PageHead .= "</head>"; ! $PageHead .= "<body>"; if ($Heading != "") { ! $PageHead .= "<div class=\"title\">$Heading</div>"; } $PageHead .= $lang['message']; ! $PageHead .= "<form class=\"themechanger\">"; $PageHead .= $lang['change_theme'].' <select name="ThemeSelect" class="themechanger" onchange="postBackThemeChange(this.form)">'; foreach (GetThemeList() as $key=>$value) --- 11,49 ---- * @copyright 2003-2005 Brian A Cheeseman **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; $FileIcon = "Themes/".$config['theme']."/Images/file.png"; $ParentIcon = "Themes/".$config['theme']."/Images/parent.png"; $ModuleIcon = "Themes/".$config['theme']."/Images/module.png"; + $DownloadIcon = "Themes/".$config['theme']."/Images/download.png"; function GetPageHeader($Title="", $Heading="") { global $StartTime, $config, $env, $lang; $StartTime = microtime(); ! $PageHead = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'; ! $PageHead .= '<html><head>'; if ($Title != "") { ! $PageHead .= '<title>'.$Title.'</title>'; } ! $PageHead .= '<link href="Themes/'.$config['theme'].'/theme.css" rel="stylesheet" type="text/css" />'; // Add JavaScript to postback the change in theme selection. ! $PageHead .= '<script src="./phpcvsview.js"></script>'; ! $PageHead .= '</head>'; ! $PageHead .= '<body>'; if ($Heading != "") { ! $PageHead .= '<div class="title">'.$Heading.'</div>'; } $PageHead .= $lang['message']; ! $PageHead .= '<form class="themechanger">'; ! $PageHead .= ' '.$lang['change_cvsroot'].' <select name="reposSelect" class="reposchanger" onchange="postBackReposChange(this.form)">'; ! foreach($config['cvs'] as $key => $value){ ! $PageHead .= '<option value="'.$key.'"'; ! if ($key == $env['CVSROOT']) { ! $PageHead .= ' selected="selected"'; ! } ! $PageHead .= '>'.$value['description'].'</option>'; ! } ! $PageHead .= '</select><br />'; ! $PageHead .= $lang['change_theme'].' <select name="ThemeSelect" class="themechanger" onchange="postBackThemeChange(this.form)">'; foreach (GetThemeList() as $key=>$value) *************** *** 78,97 **** global $StartTime, $lang; $EndTime = microtime(); ! $PageFoot = "<div class=\"footer\">".$lang['generated']." ".number_format(microtime_diff($StartTime, $EndTime), 3)." ".$lang['seconds']."<br />"; $PageFoot .= $lang['created_by']; ! $PageFoot .= "<p><a href=\"http://validator.w3.org/check?uri=referer\"><img src=\"http://www.w3.org/Icons/valid-xhtml11\" alt=\"Valid XHTML 1.1!\" height=\"31\" width=\"88\" /></a> "; ! $PageFoot .= "<a href=\"http://jigsaw.w3.org/css-validator/check/referer\"><img style=\"border:0;width:88px;height:31px\" src=\"http://www.w3c.org/Icons/valid-css\" alt=\"Valid CSS!\" /></a></p>"; ! $PageFoot .= "</div>"; ! $PageFoot .= "</body></html>"; return $PageFoot; } ! function GetQuickLinkBar($ModPath = "/", $Prefix = "", $LinkLast = false, $LastIsFile = false, $Revision = "") { global $env, $lang; // Add the quick link navigation bar. ! $Dirs = explode("/", $ModPath); ! $QLOut = "<div class=\"quicknav\">".$lang['navigate_to']."<a href=\"".$env['script_name']."\">".$lang['root']."</a> "; $intCount = 1; $OffSet = 2; --- 89,109 ---- global $StartTime, $lang; $EndTime = microtime(); ! $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1!" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="Valid CSS!" /></a></p>'; ! $PageFoot .= '</div>'; ! $PageFoot .= '</body></html>'; return $PageFoot; } ! function GetQuickLinkBar($Prefix = "", $LinkLast = false, $LastIsFile = false, $Revision = "") { global $env, $lang; + if(empty($Prefix)){ $Prefix = $lang['navigate_to'];} // Add the quick link navigation bar. ! $Dirs = explode("/", $env['mod_path']); ! $QLOut = '<div class="quicknav">'.$Prefix.'<a href="'.$env['script_name'].'">'.$lang['root'].'</a> '; $intCount = 1; $OffSet = 2; *************** *** 102,119 **** 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 .= "/"; } } --- 114,131 ---- 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 .= '/'; } } *************** *** 121,127 **** $QLOut .= $Dirs[$intCount]; if ($LinkLast) { ! $QLOut .= "</a>"; } ! $QLOut .= "</div>"; return $QLOut; } --- 133,139 ---- $QLOut .= $Dirs[$intCount]; if ($LinkLast) { ! $QLOut .= '</a>'; } ! $QLOut .= '</div>'; return $QLOut; } *************** *** 130,136 **** { global $RowClass, $lang; ! echo "<hr />"; ! echo "<table>"; ! echo "<tr class=\"head\"><th> </th><th>".$lang['file']."</th><th>".$lang['rev']."</th><th>".$lang['age']."</th><th>".$lang['author']."</th><th>".$lang['last_log']."</th></tr>"; $RowClass = "row1"; } --- 142,148 ---- { global $RowClass, $lang; ! echo '<hr />'; ! echo '<table>'; ! echo '<tr class="head"><th> </th><th> </th><th>'.$lang['file'].'</th><th>'.$lang['rev'].'</th><th>'.$lang['age'].'</th><th>'.$lang['author'].'</th><th>'.$lang['last_log'].'</th></tr>'; $RowClass = "row1"; } *************** *** 138,173 **** function endDirList() { ! echo "</table>"; ! echo "<hr />"; } ! function addParentDirectory($ModPath) { global $RowClass, $ParentIcon, $env, $lang; ! $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\">".$lang['up_folder']."</a></td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "</tr>"; $RowClass = "row2"; } ! function addFolders($ModPath, $Folders) { ! global $RowClass, $FolderIcon, $env; foreach ($Folders as $Folder) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$Folder["Name"]."/"); ! echo "<tr class=\"$RowClass\">"; ! echo "<td class=\"min\"><a href=\"$HREF\"><img alt=\"DIR\" src=\"".$env['script_path']."/$FolderIcon\" /></a></td>"; ! echo "<td class=\"min\"><a href=\"$HREF\">".$Folder["Name"]."</a></td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "</tr>"; if ($RowClass == "row1") { $RowClass = "row2"; --- 150,192 ---- function endDirList() { ! echo '</table>'; ! echo '<hr />'; } ! function addParentDirectory() { global $RowClass, $ParentIcon, $env, $lang; ! ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".substr($env['mod_path'], 0, strrpos(substr($env['mod_path'], 0, -1), "/"))."/"); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="parent" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; $RowClass = "row2"; } ! function addFolders($Folders) { ! global $RowClass, $DownloadIcon, $FolderIcon, $env; foreach ($Folders as $Folder) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); ! echo '<tr class="'.$RowClass.'">'; ! if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; ! } else { ! echo '<td class="min"> </td>'; ! } ! 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"; *************** *** 178,195 **** } ! function addModules($ModPath, $Modules) { ! global $RowClass, $ModuleIcon, $env; foreach ($Modules as $Key => $Val) { // Add the row data here. ! $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$Val."/"); ! echo "<tr class=\"$RowClass\">"; ! echo "<td class=\"min\"><a href=\"$HREF\"><img alt=\"MOD\" src=\"".$env['script_path']."/$ModuleIcon\" /></a></td>"; ! echo "<td class=\"min\"><a href=\"$HREF\">".$Key."</a></td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "</tr>"; if ($RowClass == "row1") { $RowClass = "row2"; --- 197,220 ---- } ! function addModules($Modules) { ! global $RowClass, $DownloadIcon, $ModuleIcon, $env; ! foreach ($Modules as $Key => $Val) { // Add the row data here. ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$Val."/"); ! echo '<tr class="'.$RowClass.'">'; ! if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; ! } else { ! echo '<td class="min"> </td>'; ! } ! 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"; *************** *** 200,218 **** } ! function addFiles($ModPath, $Files) { global $RowClass, $FileIcon, $env, $lang; foreach ($Files as $File) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$File["Name"]); $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo "<tr class=\"$RowClass\">"; ! echo "<td align=\"center\"><a href=\"$HREF&fh\"><img alt=\"FILE\" src=\"".$env['script_path']."/$FileIcon\" /></a></td>"; ! echo "<td><a href=\"$HREF&fh\">".$File["Name"]."</a></td>"; ! echo "<td align=\"center\"><a href=\"$HREF&fv&dt=$DateTime\">".$File["Head"]."</a></td>"; ! echo "<td align=\"center\">".str_replace(" ", " ", $AGE)." ".$lang['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"; --- 225,245 ---- } ! function addFiles($Files) { global $RowClass, $FileIcon, $env, $lang; + foreach ($Files as $File) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$File["Name"]); $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! 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).' '.$lang['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"; *************** *** 226,245 **** { global $CVSServer, $env; $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! $DiffForm = "<form class=\"diffform\">"; ! $DiffForm .= "Diff between: <select name=\"DiffRev1\" class=\"diffform\">"; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= "<option value=\"".$Revision["Revision"]."\">".$Revision["Revision"]."</option>"; } ! $DiffForm .= "</select> and <select name=\"DiffRev2\" class=\"diffform\">"; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= "<option value=\"".$Revision["Revision"]."\">".$Revision["Revision"]."</option>"; } ! $DiffForm .= "</select><input type=\"hidden\" name=\"URLDiffReq\" value=\"".$HREF."\">"; ! $DiffForm .= "<input type=\"button\" value=\"Get Diff\" onclick=\"postBackDiffRequest(this.form)\">"; ! $DiffForm .= "</form>"; return $DiffForm; --- 253,273 ---- { global $CVSServer, $env; + $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! $DiffForm = '<form class="diffform">'; ! $DiffForm .= 'Diff between: <select name="DiffRev1" class="diffform">'; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select> and <select name="DiffRev2" class="diffform">'; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select><input type="hidden" name="URLDiffReq" value="'.$HREF.'">'; ! $DiffForm .= '<input type="button" value="Get Diff" onclick="postBackDiffRequest(this.form);">'; ! $DiffForm .= '</form>'; return $DiffForm; Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Green/theme.css,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** theme.css 3 Feb 2005 08:21:56 -0000 1.3 --- theme.css 4 Feb 2005 10:56:38 -0000 1.4 *************** *** 25,28 **** --- 25,32 ---- text-decoration: underline; } + input + { + font-size: 8pt; + } .head { *************** *** 62,65 **** --- 66,83 ---- margin: 0px; } + .reposchanger + { + font-size: 8pt; + text-align: left; + padding: 0px; + margin: 0px; + } + .diffform + { + font-size: 8pt; + text-align: left; + padding: 0px; + margin: 0px; + } .title { *************** *** 102,106 **** font-weight: normal; } - div.normal { --- 120,123 ---- |
From: Brian C. <bch...@us...> - 2005-02-04 10:57:34
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Red In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24100/Themes/Red Modified Files: theme.css theme.php Log Message: Updated secondary themes to bring them inline with the Default theme. Updates include - Multiple CVS Repository Capability. - DIFF display functionality. - Package Download Capability. Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Red/theme.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** theme.php 2 Feb 2005 11:56:16 -0000 1.3 --- theme.php 4 Feb 2005 10:56:39 -0000 1.4 *************** *** 11,38 **** * @copyright 2003-2005 Brian A Cheeseman **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; $FileIcon = "Themes/".$config['theme']."/Images/file.png"; $ParentIcon = "Themes/".$config['theme']."/Images/parent.png"; $ModuleIcon = "Themes/".$config['theme']."/Images/module.png"; function GetPageHeader($Title="", $Heading="") { global $StartTime, $config, $env, $lang; $StartTime = microtime(); ! $PageHead = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">"; ! $PageHead .= "<html><head>"; if ($Title != "") { ! $PageHead .= "<title>$Title</title>"; } ! $PageHead .= "<link href=\"Themes/".$config['theme']."/theme.css\" rel=\"stylesheet\" type=\"text/css\" />"; // Add JavaScript to postback the change in theme selection. ! $PageHead .= "<script src=\"./phpcvsview.js\"></script>"; ! $PageHead .= "</head>"; ! $PageHead .= "<body>"; if ($Heading != "") { ! $PageHead .= "<div class=\"title\">$Heading</div>"; } $PageHead .= $lang['message']; ! $PageHead .= "<form class=\"themechanger\">"; $PageHead .= $lang['change_theme'].' <select name="ThemeSelect" class="themechanger" onchange="postBackThemeChange(this.form)">'; foreach (GetThemeList() as $key=>$value) --- 11,49 ---- * @copyright 2003-2005 Brian A Cheeseman **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; $FileIcon = "Themes/".$config['theme']."/Images/file.png"; $ParentIcon = "Themes/".$config['theme']."/Images/parent.png"; $ModuleIcon = "Themes/".$config['theme']."/Images/module.png"; + $DownloadIcon = "Themes/".$config['theme']."/Images/download.png"; function GetPageHeader($Title="", $Heading="") { global $StartTime, $config, $env, $lang; $StartTime = microtime(); ! $PageHead = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'; ! $PageHead .= '<html><head>'; if ($Title != "") { ! $PageHead .= '<title>'.$Title.'</title>'; } ! $PageHead .= '<link href="Themes/'.$config['theme'].'/theme.css" rel="stylesheet" type="text/css" />'; // Add JavaScript to postback the change in theme selection. ! $PageHead .= '<script src="./phpcvsview.js"></script>'; ! $PageHead .= '</head>'; ! $PageHead .= '<body>'; if ($Heading != "") { ! $PageHead .= '<div class="title">'.$Heading.'</div>'; } $PageHead .= $lang['message']; ! $PageHead .= '<form class="themechanger">'; ! $PageHead .= ' '.$lang['change_cvsroot'].' <select name="reposSelect" class="reposchanger" onchange="postBackReposChange(this.form)">'; ! foreach($config['cvs'] as $key => $value){ ! $PageHead .= '<option value="'.$key.'"'; ! if ($key == $env['CVSROOT']) { ! $PageHead .= ' selected="selected"'; ! } ! $PageHead .= '>'.$value['description'].'</option>'; ! } ! $PageHead .= '</select><br />'; ! $PageHead .= $lang['change_theme'].' <select name="ThemeSelect" class="themechanger" onchange="postBackThemeChange(this.form)">'; foreach (GetThemeList() as $key=>$value) *************** *** 78,97 **** global $StartTime, $lang; $EndTime = microtime(); ! $PageFoot = "<div class=\"footer\">".$lang['generated']." ".number_format(microtime_diff($StartTime, $EndTime), 3)." ".$lang['seconds']."<br />"; $PageFoot .= $lang['created_by']; ! $PageFoot .= "<p><a href=\"http://validator.w3.org/check?uri=referer\"><img src=\"http://www.w3.org/Icons/valid-xhtml11\" alt=\"Valid XHTML 1.1!\" height=\"31\" width=\"88\" /></a> "; ! $PageFoot .= "<a href=\"http://jigsaw.w3.org/css-validator/check/referer\"><img style=\"border:0;width:88px;height:31px\" src=\"http://www.w3c.org/Icons/valid-css\" alt=\"Valid CSS!\" /></a></p>"; ! $PageFoot .= "</div>"; ! $PageFoot .= "</body></html>"; return $PageFoot; } ! function GetQuickLinkBar($ModPath = "/", $Prefix = "", $LinkLast = false, $LastIsFile = false, $Revision = "") { global $env, $lang; // Add the quick link navigation bar. ! $Dirs = explode("/", $ModPath); ! $QLOut = "<div class=\"quicknav\">".$lang['navigate_to']."<a href=\"".$env['script_name']."\">".$lang['root']."</a> "; $intCount = 1; $OffSet = 2; --- 89,109 ---- global $StartTime, $lang; $EndTime = microtime(); ! $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1!" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="Valid CSS!" /></a></p>'; ! $PageFoot .= '</div>'; ! $PageFoot .= '</body></html>'; return $PageFoot; } ! function GetQuickLinkBar($Prefix = "", $LinkLast = false, $LastIsFile = false, $Revision = "") { global $env, $lang; + if(empty($Prefix)){ $Prefix = $lang['navigate_to'];} // Add the quick link navigation bar. ! $Dirs = explode("/", $env['mod_path']); ! $QLOut = '<div class="quicknav">'.$Prefix.'<a href="'.$env['script_name'].'">'.$lang['root'].'</a> '; $intCount = 1; $OffSet = 2; *************** *** 102,119 **** 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 .= "/"; } } --- 114,131 ---- 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 .= '/'; } } *************** *** 121,127 **** $QLOut .= $Dirs[$intCount]; if ($LinkLast) { ! $QLOut .= "</a>"; } ! $QLOut .= "</div>"; return $QLOut; } --- 133,139 ---- $QLOut .= $Dirs[$intCount]; if ($LinkLast) { ! $QLOut .= '</a>'; } ! $QLOut .= '</div>'; return $QLOut; } *************** *** 130,136 **** { global $RowClass, $lang; ! echo "<hr />"; ! echo "<table>"; ! echo "<tr class=\"head\"><th> </th><th>".$lang['file']."</th><th>".$lang['rev']."</th><th>".$lang['age']."</th><th>".$lang['author']."</th><th>".$lang['last_log']."</th></tr>"; $RowClass = "row1"; } --- 142,148 ---- { global $RowClass, $lang; ! echo '<hr />'; ! echo '<table>'; ! echo '<tr class="head"><th> </th><th> </th><th>'.$lang['file'].'</th><th>'.$lang['rev'].'</th><th>'.$lang['age'].'</th><th>'.$lang['author'].'</th><th>'.$lang['last_log'].'</th></tr>'; $RowClass = "row1"; } *************** *** 138,173 **** function endDirList() { ! echo "</table>"; ! echo "<hr />"; } ! function addParentDirectory($ModPath) { global $RowClass, $ParentIcon, $env, $lang; ! $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\">".$lang['up_folder']."</a></td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "</tr>"; $RowClass = "row2"; } ! function addFolders($ModPath, $Folders) { ! global $RowClass, $FolderIcon, $env; foreach ($Folders as $Folder) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$Folder["Name"]."/"); ! echo "<tr class=\"$RowClass\">"; ! echo "<td class=\"min\"><a href=\"$HREF\"><img alt=\"DIR\" src=\"".$env['script_path']."/$FolderIcon\" /></a></td>"; ! echo "<td class=\"min\"><a href=\"$HREF\">".$Folder["Name"]."</a></td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "</tr>"; if ($RowClass == "row1") { $RowClass = "row2"; --- 150,192 ---- function endDirList() { ! echo '</table>'; ! echo '<hr />'; } ! function addParentDirectory() { global $RowClass, $ParentIcon, $env, $lang; ! ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".substr($env['mod_path'], 0, strrpos(substr($env['mod_path'], 0, -1), "/"))."/"); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="parent" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; $RowClass = "row2"; } ! function addFolders($Folders) { ! global $RowClass, $DownloadIcon, $FolderIcon, $env; foreach ($Folders as $Folder) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); ! echo '<tr class="'.$RowClass.'">'; ! if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; ! } else { ! echo '<td class="min"> </td>'; ! } ! 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"; *************** *** 178,195 **** } ! function addModules($ModPath, $Modules) { ! global $RowClass, $ModuleIcon, $env; foreach ($Modules as $Key => $Val) { // Add the row data here. ! $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$Val."/"); ! echo "<tr class=\"$RowClass\">"; ! echo "<td class=\"min\"><a href=\"$HREF\"><img alt=\"MOD\" src=\"".$env['script_path']."/$ModuleIcon\" /></a></td>"; ! echo "<td class=\"min\"><a href=\"$HREF\">".$Key."</a></td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "</tr>"; if ($RowClass == "row1") { $RowClass = "row2"; --- 197,220 ---- } ! function addModules($Modules) { ! global $RowClass, $DownloadIcon, $ModuleIcon, $env; ! foreach ($Modules as $Key => $Val) { // Add the row data here. ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$Val."/"); ! echo '<tr class="'.$RowClass.'">'; ! if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; ! } else { ! echo '<td class="min"> </td>'; ! } ! 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"; *************** *** 200,218 **** } ! function addFiles($ModPath, $Files) { global $RowClass, $FileIcon, $env, $lang; foreach ($Files as $File) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$File["Name"]); $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo "<tr class=\"$RowClass\">"; ! echo "<td align=\"center\"><a href=\"$HREF&fh\"><img alt=\"FILE\" src=\"".$env['script_path']."/$FileIcon\" /></a></td>"; ! echo "<td><a href=\"$HREF&fh\">".$File["Name"]."</a></td>"; ! echo "<td align=\"center\"><a href=\"$HREF&fv&dt=$DateTime\">".$File["Head"]."</a></td>"; ! echo "<td align=\"center\">".str_replace(" ", " ", $AGE)." ".$lang['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"; --- 225,245 ---- } ! function addFiles($Files) { global $RowClass, $FileIcon, $env, $lang; + foreach ($Files as $File) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$File["Name"]); $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! 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).' '.$lang['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"; *************** *** 226,247 **** { global $CVSServer, $env; $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! $DiffForm = "<form class=\"diffform\">"; ! $DiffForm .= "Diff between: <select name=\"DiffRev1\" class=\"diffform\">"; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= "<option value=\"".$Revision["Revision"]."\">".$Revision["Revision"]."</option>"; } ! $DiffForm .= "</select> and <select name=\"DiffRev2\" class=\"diffform\">"; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= "<option value=\"".$Revision["Revision"]."\">".$Revision["Revision"]."</option>"; } ! $DiffForm .= "</select><input type=\"hidden\" name=\"URLDiffReq\" value=\"".$HREF."\">"; ! $DiffForm .= "<input type=\"button\" value=\"Get Diff\" onclick=\"postBackDiffRequest(this.form)\">"; ! $DiffForm .= "</form>"; return $DiffForm; } ?> --- 253,276 ---- { global $CVSServer, $env; + $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! $DiffForm = '<form class="diffform">'; ! $DiffForm .= 'Diff between: <select name="DiffRev1" class="diffform">'; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select> and <select name="DiffRev2" class="diffform">'; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select><input type="hidden" name="URLDiffReq" value="'.$HREF.'">'; ! $DiffForm .= '<input type="button" value="Get Diff" onclick="postBackDiffRequest(this.form);">'; ! $DiffForm .= '</form>'; return $DiffForm; } + ?> Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Red/theme.css,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** theme.css 3 Feb 2005 08:21:57 -0000 1.3 --- theme.css 4 Feb 2005 10:56:39 -0000 1.4 *************** *** 25,28 **** --- 25,32 ---- text-decoration: underline; } + input + { + font-size: 8pt; + } .head { *************** *** 62,65 **** --- 66,83 ---- margin: 0px; } + .reposchanger + { + font-size: 8pt; + text-align: left; + padding: 0px; + margin: 0px; + } + .diffform + { + font-size: 8pt; + text-align: left; + padding: 0px; + margin: 0px; + } .title { *************** *** 102,106 **** font-weight: normal; } - div.normal { --- 120,123 ---- |
From: Brian C. <bch...@us...> - 2005-02-04 10:57:33
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Yellow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24100/Themes/Yellow Modified Files: theme.css theme.php Log Message: Updated secondary themes to bring them inline with the Default theme. Updates include - Multiple CVS Repository Capability. - DIFF display functionality. - Package Download Capability. Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Yellow/theme.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** theme.php 2 Feb 2005 11:56:17 -0000 1.3 --- theme.php 4 Feb 2005 10:56:40 -0000 1.4 *************** *** 11,38 **** * @copyright 2003-2005 Brian A Cheeseman **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; $FileIcon = "Themes/".$config['theme']."/Images/file.png"; $ParentIcon = "Themes/".$config['theme']."/Images/parent.png"; $ModuleIcon = "Themes/".$config['theme']."/Images/module.png"; function GetPageHeader($Title="", $Heading="") { global $StartTime, $config, $env, $lang; $StartTime = microtime(); ! $PageHead = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">"; ! $PageHead .= "<html><head>"; if ($Title != "") { ! $PageHead .= "<title>$Title</title>"; } ! $PageHead .= "<link href=\"Themes/".$config['theme']."/theme.css\" rel=\"stylesheet\" type=\"text/css\" />"; // Add JavaScript to postback the change in theme selection. ! $PageHead .= "<script src=\"./phpcvsview.js\"></script>"; ! $PageHead .= "</head>"; ! $PageHead .= "<body>"; if ($Heading != "") { ! $PageHead .= "<div class=\"title\">$Heading</div>"; } $PageHead .= $lang['message']; ! $PageHead .= "<form class=\"themechanger\">"; $PageHead .= $lang['change_theme'].' <select name="ThemeSelect" class="themechanger" onchange="postBackThemeChange(this.form)">'; foreach (GetThemeList() as $key=>$value) --- 11,49 ---- * @copyright 2003-2005 Brian A Cheeseman **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; $FileIcon = "Themes/".$config['theme']."/Images/file.png"; $ParentIcon = "Themes/".$config['theme']."/Images/parent.png"; $ModuleIcon = "Themes/".$config['theme']."/Images/module.png"; + $DownloadIcon = "Themes/".$config['theme']."/Images/download.png"; function GetPageHeader($Title="", $Heading="") { global $StartTime, $config, $env, $lang; $StartTime = microtime(); ! $PageHead = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'; ! $PageHead .= '<html><head>'; if ($Title != "") { ! $PageHead .= '<title>'.$Title.'</title>'; } ! $PageHead .= '<link href="Themes/'.$config['theme'].'/theme.css" rel="stylesheet" type="text/css" />'; // Add JavaScript to postback the change in theme selection. ! $PageHead .= '<script src="./phpcvsview.js"></script>'; ! $PageHead .= '</head>'; ! $PageHead .= '<body>'; if ($Heading != "") { ! $PageHead .= '<div class="title">'.$Heading.'</div>'; } $PageHead .= $lang['message']; ! $PageHead .= '<form class="themechanger">'; ! $PageHead .= ' '.$lang['change_cvsroot'].' <select name="reposSelect" class="reposchanger" onchange="postBackReposChange(this.form)">'; ! foreach($config['cvs'] as $key => $value){ ! $PageHead .= '<option value="'.$key.'"'; ! if ($key == $env['CVSROOT']) { ! $PageHead .= ' selected="selected"'; ! } ! $PageHead .= '>'.$value['description'].'</option>'; ! } ! $PageHead .= '</select><br />'; ! $PageHead .= $lang['change_theme'].' <select name="ThemeSelect" class="themechanger" onchange="postBackThemeChange(this.form)">'; foreach (GetThemeList() as $key=>$value) *************** *** 78,97 **** global $StartTime, $lang; $EndTime = microtime(); ! $PageFoot = "<div class=\"footer\">".$lang['generated']." ".number_format(microtime_diff($StartTime, $EndTime), 3)." ".$lang['seconds']."<br />"; $PageFoot .= $lang['created_by']; ! $PageFoot .= "<p><a href=\"http://validator.w3.org/check?uri=referer\"><img src=\"http://www.w3.org/Icons/valid-xhtml11\" alt=\"Valid XHTML 1.1!\" height=\"31\" width=\"88\" /></a> "; ! $PageFoot .= "<a href=\"http://jigsaw.w3.org/css-validator/check/referer\"><img style=\"border:0;width:88px;height:31px\" src=\"http://www.w3c.org/Icons/valid-css\" alt=\"Valid CSS!\" /></a></p>"; ! $PageFoot .= "</div>"; ! $PageFoot .= "</body></html>"; return $PageFoot; } ! function GetQuickLinkBar($ModPath = "/", $Prefix = "", $LinkLast = false, $LastIsFile = false, $Revision = "") { global $env, $lang; // Add the quick link navigation bar. ! $Dirs = explode("/", $ModPath); ! $QLOut = "<div class=\"quicknav\">".$lang['navigate_to']."<a href=\"".$env['script_name']."\">".$lang['root']."</a> "; $intCount = 1; $OffSet = 2; --- 89,109 ---- global $StartTime, $lang; $EndTime = microtime(); ! $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1!" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="Valid CSS!" /></a></p>'; ! $PageFoot .= '</div>'; ! $PageFoot .= '</body></html>'; return $PageFoot; } ! function GetQuickLinkBar($Prefix = "", $LinkLast = false, $LastIsFile = false, $Revision = "") { global $env, $lang; + if(empty($Prefix)){ $Prefix = $lang['navigate_to'];} // Add the quick link navigation bar. ! $Dirs = explode("/", $env['mod_path']); ! $QLOut = '<div class="quicknav">'.$Prefix.'<a href="'.$env['script_name'].'">'.$lang['root'].'</a> '; $intCount = 1; $OffSet = 2; *************** *** 102,119 **** 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 .= "/"; } } --- 114,131 ---- 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 .= '/'; } } *************** *** 121,127 **** $QLOut .= $Dirs[$intCount]; if ($LinkLast) { ! $QLOut .= "</a>"; } ! $QLOut .= "</div>"; return $QLOut; } --- 133,139 ---- $QLOut .= $Dirs[$intCount]; if ($LinkLast) { ! $QLOut .= '</a>'; } ! $QLOut .= '</div>'; return $QLOut; } *************** *** 130,136 **** { global $RowClass, $lang; ! echo "<hr />"; ! echo "<table>"; ! echo "<tr class=\"head\"><th> </th><th>".$lang['file']."</th><th>".$lang['rev']."</th><th>".$lang['age']."</th><th>".$lang['author']."</th><th>".$lang['last_log']."</th></tr>"; $RowClass = "row1"; } --- 142,148 ---- { global $RowClass, $lang; ! echo '<hr />'; ! echo '<table>'; ! echo '<tr class="head"><th> </th><th> </th><th>'.$lang['file'].'</th><th>'.$lang['rev'].'</th><th>'.$lang['age'].'</th><th>'.$lang['author'].'</th><th>'.$lang['last_log'].'</th></tr>'; $RowClass = "row1"; } *************** *** 138,173 **** function endDirList() { ! echo "</table>"; ! echo "<hr />"; } ! function addParentDirectory($ModPath) { global $RowClass, $ParentIcon, $env, $lang; ! $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\">".$lang['up_folder']."</a></td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "</tr>"; $RowClass = "row2"; } ! function addFolders($ModPath, $Folders) { ! global $RowClass, $FolderIcon, $env; foreach ($Folders as $Folder) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$Folder["Name"]."/"); ! echo "<tr class=\"$RowClass\">"; ! echo "<td class=\"min\"><a href=\"$HREF\"><img alt=\"DIR\" src=\"".$env['script_path']."/$FolderIcon\" /></a></td>"; ! echo "<td class=\"min\"><a href=\"$HREF\">".$Folder["Name"]."</a></td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "</tr>"; if ($RowClass == "row1") { $RowClass = "row2"; --- 150,192 ---- function endDirList() { ! echo '</table>'; ! echo '<hr />'; } ! function addParentDirectory() { global $RowClass, $ParentIcon, $env, $lang; ! ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".substr($env['mod_path'], 0, strrpos(substr($env['mod_path'], 0, -1), "/"))."/"); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="parent" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; $RowClass = "row2"; } ! function addFolders($Folders) { ! global $RowClass, $DownloadIcon, $FolderIcon, $env; foreach ($Folders as $Folder) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); ! echo '<tr class="'.$RowClass.'">'; ! if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; ! } else { ! echo '<td class="min"> </td>'; ! } ! 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"; *************** *** 178,195 **** } ! function addModules($ModPath, $Modules) { ! global $RowClass, $ModuleIcon, $env; foreach ($Modules as $Key => $Val) { // Add the row data here. ! $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$Val."/"); ! echo "<tr class=\"$RowClass\">"; ! echo "<td class=\"min\"><a href=\"$HREF\"><img alt=\"MOD\" src=\"".$env['script_path']."/$ModuleIcon\" /></a></td>"; ! echo "<td class=\"min\"><a href=\"$HREF\">".$Key."</a></td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "</tr>"; if ($RowClass == "row1") { $RowClass = "row2"; --- 197,220 ---- } ! function addModules($Modules) { ! global $RowClass, $DownloadIcon, $ModuleIcon, $env; ! foreach ($Modules as $Key => $Val) { // Add the row data here. ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$Val."/"); ! echo '<tr class="'.$RowClass.'">'; ! if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; ! } else { ! echo '<td class="min"> </td>'; ! } ! 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"; *************** *** 200,218 **** } ! function addFiles($ModPath, $Files) { global $RowClass, $FileIcon, $env, $lang; foreach ($Files as $File) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$File["Name"]); $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo "<tr class=\"$RowClass\">"; ! echo "<td align=\"center\"><a href=\"$HREF&fh\"><img alt=\"FILE\" src=\"".$env['script_path']."/$FileIcon\" /></a></td>"; ! echo "<td><a href=\"$HREF&fh\">".$File["Name"]."</a></td>"; ! echo "<td align=\"center\"><a href=\"$HREF&fv&dt=$DateTime\">".$File["Head"]."</a></td>"; ! echo "<td align=\"center\">".str_replace(" ", " ", $AGE)." ".$lang['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"; --- 225,245 ---- } ! function addFiles($Files) { global $RowClass, $FileIcon, $env, $lang; + foreach ($Files as $File) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$File["Name"]); $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! 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).' '.$lang['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"; *************** *** 226,247 **** { global $CVSServer, $env; $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! $DiffForm = "<form class=\"diffform\">"; ! $DiffForm .= "Diff between: <select name=\"DiffRev1\" class=\"diffform\">"; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= "<option value=\"".$Revision["Revision"]."\">".$Revision["Revision"]."</option>"; } ! $DiffForm .= "</select> and <select name=\"DiffRev2\" class=\"diffform\">"; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= "<option value=\"".$Revision["Revision"]."\">".$Revision["Revision"]."</option>"; } ! $DiffForm .= "</select><input type=\"hidden\" name=\"URLDiffReq\" value=\"".$HREF."\">"; ! $DiffForm .= "<input type=\"button\" value=\"Get Diff\" onclick=\"postBackDiffRequest(this.form)\">"; ! $DiffForm .= "</form>"; return $DiffForm; } ?> --- 253,276 ---- { global $CVSServer, $env; + $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! $DiffForm = '<form class="diffform">'; ! $DiffForm .= 'Diff between: <select name="DiffRev1" class="diffform">'; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select> and <select name="DiffRev2" class="diffform">'; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select><input type="hidden" name="URLDiffReq" value="'.$HREF.'">'; ! $DiffForm .= '<input type="button" value="Get Diff" onclick="postBackDiffRequest(this.form);">'; ! $DiffForm .= '</form>'; return $DiffForm; } + ?> Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Yellow/theme.css,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** theme.css 3 Feb 2005 08:21:57 -0000 1.3 --- theme.css 4 Feb 2005 10:56:40 -0000 1.4 *************** *** 25,28 **** --- 25,32 ---- text-decoration: underline; } + input + { + font-size: 8pt; + } .head { *************** *** 62,65 **** --- 66,83 ---- margin: 0px; } + .reposchanger + { + font-size: 8pt; + text-align: left; + padding: 0px; + margin: 0px; + } + .diffform + { + font-size: 8pt; + text-align: left; + padding: 0px; + margin: 0px; + } .title { *************** *** 102,106 **** font-weight: normal; } - div.normal { --- 120,123 ---- |
From: Brian C. <bch...@us...> - 2005-02-04 10:57:17
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Blue In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24100/Themes/Blue Modified Files: theme.css theme.php Log Message: Updated secondary themes to bring them inline with the Default theme. Updates include - Multiple CVS Repository Capability. - DIFF display functionality. - Package Download Capability. Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Blue/theme.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** theme.php 2 Feb 2005 11:56:15 -0000 1.3 --- theme.php 4 Feb 2005 10:56:37 -0000 1.4 *************** *** 11,38 **** * @copyright 2003-2005 Brian A Cheeseman **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; $FileIcon = "Themes/".$config['theme']."/Images/file.png"; $ParentIcon = "Themes/".$config['theme']."/Images/parent.png"; $ModuleIcon = "Themes/".$config['theme']."/Images/module.png"; function GetPageHeader($Title="", $Heading="") { global $StartTime, $config, $env, $lang; $StartTime = microtime(); ! $PageHead = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">"; ! $PageHead .= "<html><head>"; if ($Title != "") { ! $PageHead .= "<title>$Title</title>"; } ! $PageHead .= "<link href=\"Themes/".$config['theme']."/theme.css\" rel=\"stylesheet\" type=\"text/css\" />"; // Add JavaScript to postback the change in theme selection. ! $PageHead .= "<script src=\"./phpcvsview.js\"></script>"; ! $PageHead .= "</head>"; ! $PageHead .= "<body>"; if ($Heading != "") { ! $PageHead .= "<div class=\"title\">$Heading</div>"; } $PageHead .= $lang['message']; ! $PageHead .= "<form class=\"themechanger\">"; $PageHead .= $lang['change_theme'].' <select name="ThemeSelect" class="themechanger" onchange="postBackThemeChange(this.form)">'; foreach (GetThemeList() as $key=>$value) --- 11,49 ---- * @copyright 2003-2005 Brian A Cheeseman **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; $FileIcon = "Themes/".$config['theme']."/Images/file.png"; $ParentIcon = "Themes/".$config['theme']."/Images/parent.png"; $ModuleIcon = "Themes/".$config['theme']."/Images/module.png"; + $DownloadIcon = "Themes/".$config['theme']."/Images/download.png"; function GetPageHeader($Title="", $Heading="") { global $StartTime, $config, $env, $lang; $StartTime = microtime(); ! $PageHead = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'; ! $PageHead .= '<html><head>'; if ($Title != "") { ! $PageHead .= '<title>'.$Title.'</title>'; } ! $PageHead .= '<link href="Themes/'.$config['theme'].'/theme.css" rel="stylesheet" type="text/css" />'; // Add JavaScript to postback the change in theme selection. ! $PageHead .= '<script src="./phpcvsview.js"></script>'; ! $PageHead .= '</head>'; ! $PageHead .= '<body>'; if ($Heading != "") { ! $PageHead .= '<div class="title">'.$Heading.'</div>'; } $PageHead .= $lang['message']; ! $PageHead .= '<form class="themechanger">'; ! $PageHead .= ' '.$lang['change_cvsroot'].' <select name="reposSelect" class="reposchanger" onchange="postBackReposChange(this.form)">'; ! foreach($config['cvs'] as $key => $value){ ! $PageHead .= '<option value="'.$key.'"'; ! if ($key == $env['CVSROOT']) { ! $PageHead .= ' selected="selected"'; ! } ! $PageHead .= '>'.$value['description'].'</option>'; ! } ! $PageHead .= '</select><br />'; ! $PageHead .= $lang['change_theme'].' <select name="ThemeSelect" class="themechanger" onchange="postBackThemeChange(this.form)">'; foreach (GetThemeList() as $key=>$value) *************** *** 78,97 **** global $StartTime, $lang; $EndTime = microtime(); ! $PageFoot = "<div class=\"footer\">".$lang['generated']." ".number_format(microtime_diff($StartTime, $EndTime), 3)." ".$lang['seconds']."<br />"; $PageFoot .= $lang['created_by']; ! $PageFoot .= "<p><a href=\"http://validator.w3.org/check?uri=referer\"><img src=\"http://www.w3.org/Icons/valid-xhtml11\" alt=\"Valid XHTML 1.1!\" height=\"31\" width=\"88\" /></a> "; ! $PageFoot .= "<a href=\"http://jigsaw.w3.org/css-validator/check/referer\"><img style=\"border:0;width:88px;height:31px\" src=\"http://www.w3c.org/Icons/valid-css\" alt=\"Valid CSS!\" /></a></p>"; ! $PageFoot .= "</div>"; ! $PageFoot .= "</body></html>"; return $PageFoot; } ! function GetQuickLinkBar($ModPath = "/", $Prefix = "", $LinkLast = false, $LastIsFile = false, $Revision = "") { global $env, $lang; // Add the quick link navigation bar. ! $Dirs = explode("/", $ModPath); ! $QLOut = "<div class=\"quicknav\">".$lang['navigate_to']."<a href=\"".$env['script_name']."\">".$lang['root']."</a> "; $intCount = 1; $OffSet = 2; --- 89,109 ---- global $StartTime, $lang; $EndTime = microtime(); ! $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1!" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="Valid CSS!" /></a></p>'; ! $PageFoot .= '</div>'; ! $PageFoot .= '</body></html>'; return $PageFoot; } ! function GetQuickLinkBar($Prefix = "", $LinkLast = false, $LastIsFile = false, $Revision = "") { global $env, $lang; + if(empty($Prefix)){ $Prefix = $lang['navigate_to'];} // Add the quick link navigation bar. ! $Dirs = explode("/", $env['mod_path']); ! $QLOut = '<div class="quicknav">'.$Prefix.'<a href="'.$env['script_name'].'">'.$lang['root'].'</a> '; $intCount = 1; $OffSet = 2; *************** *** 102,119 **** 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 .= "/"; } } --- 114,131 ---- 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 .= '/'; } } *************** *** 121,127 **** $QLOut .= $Dirs[$intCount]; if ($LinkLast) { ! $QLOut .= "</a>"; } ! $QLOut .= "</div>"; return $QLOut; } --- 133,139 ---- $QLOut .= $Dirs[$intCount]; if ($LinkLast) { ! $QLOut .= '</a>'; } ! $QLOut .= '</div>'; return $QLOut; } *************** *** 130,136 **** { global $RowClass, $lang; ! echo "<hr />"; ! echo "<table>"; ! echo "<tr class=\"head\"><th> </th><th>".$lang['file']."</th><th>".$lang['rev']."</th><th>".$lang['age']."</th><th>".$lang['author']."</th><th>".$lang['last_log']."</th></tr>"; $RowClass = "row1"; } --- 142,148 ---- { global $RowClass, $lang; ! echo '<hr />'; ! echo '<table>'; ! echo '<tr class="head"><th> </th><th> </th><th>'.$lang['file'].'</th><th>'.$lang['rev'].'</th><th>'.$lang['age'].'</th><th>'.$lang['author'].'</th><th>'.$lang['last_log'].'</th></tr>'; $RowClass = "row1"; } *************** *** 138,173 **** function endDirList() { ! echo "</table>"; ! echo "<hr />"; } ! function addParentDirectory($ModPath) { global $RowClass, $ParentIcon, $env, $lang; ! $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\">".$lang['up_folder']."</a></td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "</tr>"; $RowClass = "row2"; } ! function addFolders($ModPath, $Folders) { ! global $RowClass, $FolderIcon, $env; foreach ($Folders as $Folder) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$Folder["Name"]."/"); ! echo "<tr class=\"$RowClass\">"; ! echo "<td class=\"min\"><a href=\"$HREF\"><img alt=\"DIR\" src=\"".$env['script_path']."/$FolderIcon\" /></a></td>"; ! echo "<td class=\"min\"><a href=\"$HREF\">".$Folder["Name"]."</a></td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "</tr>"; if ($RowClass == "row1") { $RowClass = "row2"; --- 150,192 ---- function endDirList() { ! echo '</table>'; ! echo '<hr />'; } ! function addParentDirectory() { global $RowClass, $ParentIcon, $env, $lang; ! ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".substr($env['mod_path'], 0, strrpos(substr($env['mod_path'], 0, -1), "/"))."/"); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="parent" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; $RowClass = "row2"; } ! function addFolders($Folders) { ! global $RowClass, $DownloadIcon, $FolderIcon, $env; foreach ($Folders as $Folder) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); ! echo '<tr class="'.$RowClass.'">'; ! if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; ! } else { ! echo '<td class="min"> </td>'; ! } ! 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"; *************** *** 178,195 **** } ! function addModules($ModPath, $Modules) { ! global $RowClass, $ModuleIcon, $env; foreach ($Modules as $Key => $Val) { // Add the row data here. ! $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$Val."/"); ! echo "<tr class=\"$RowClass\">"; ! echo "<td class=\"min\"><a href=\"$HREF\"><img alt=\"MOD\" src=\"".$env['script_path']."/$ModuleIcon\" /></a></td>"; ! echo "<td class=\"min\"><a href=\"$HREF\">".$Key."</a></td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "</tr>"; if ($RowClass == "row1") { $RowClass = "row2"; --- 197,220 ---- } ! function addModules($Modules) { ! global $RowClass, $DownloadIcon, $ModuleIcon, $env; ! foreach ($Modules as $Key => $Val) { // Add the row data here. ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$Val."/"); ! echo '<tr class="'.$RowClass.'">'; ! if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; ! } else { ! echo '<td class="min"> </td>'; ! } ! 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"; *************** *** 200,218 **** } ! function addFiles($ModPath, $Files) { global $RowClass, $FileIcon, $env, $lang; foreach ($Files as $File) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$File["Name"]); $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo "<tr class=\"$RowClass\">"; ! echo "<td align=\"center\"><a href=\"$HREF&fh\"><img alt=\"FILE\" src=\"".$env['script_path']."/$FileIcon\" /></a></td>"; ! echo "<td><a href=\"$HREF&fh\">".$File["Name"]."</a></td>"; ! echo "<td align=\"center\"><a href=\"$HREF&fv&dt=$DateTime\">".$File["Head"]."</a></td>"; ! echo "<td align=\"center\">".str_replace(" ", " ", $AGE)." ".$lang['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"; --- 225,245 ---- } ! function addFiles($Files) { global $RowClass, $FileIcon, $env, $lang; + foreach ($Files as $File) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$File["Name"]); $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! 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).' '.$lang['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"; *************** *** 226,245 **** { global $CVSServer, $env; $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! $DiffForm = "<form class=\"diffform\">"; ! $DiffForm .= "Diff between: <select name=\"DiffRev1\" class=\"diffform\">"; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= "<option value=\"".$Revision["Revision"]."\">".$Revision["Revision"]."</option>"; } ! $DiffForm .= "</select> and <select name=\"DiffRev2\" class=\"diffform\">"; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= "<option value=\"".$Revision["Revision"]."\">".$Revision["Revision"]."</option>"; } ! $DiffForm .= "</select><input type=\"hidden\" name=\"URLDiffReq\" value=\"".$HREF."\">"; ! $DiffForm .= "<input type=\"button\" value=\"Get Diff\" onclick=\"postBackDiffRequest(this.form)\">"; ! $DiffForm .= "</form>"; return $DiffForm; --- 253,273 ---- { global $CVSServer, $env; + $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! $DiffForm = '<form class="diffform">'; ! $DiffForm .= 'Diff between: <select name="DiffRev1" class="diffform">'; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select> and <select name="DiffRev2" class="diffform">'; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select><input type="hidden" name="URLDiffReq" value="'.$HREF.'">'; ! $DiffForm .= '<input type="button" value="Get Diff" onclick="postBackDiffRequest(this.form);">'; ! $DiffForm .= '</form>'; return $DiffForm; Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Blue/theme.css,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** theme.css 3 Feb 2005 08:21:56 -0000 1.3 --- theme.css 4 Feb 2005 10:56:37 -0000 1.4 *************** *** 25,28 **** --- 25,32 ---- text-decoration: underline; } + input + { + font-size: 8pt; + } .head { *************** *** 62,65 **** --- 66,83 ---- margin: 0px; } + .reposchanger + { + font-size: 8pt; + text-align: left; + padding: 0px; + margin: 0px; + } + .diffform + { + font-size: 8pt; + text-align: left; + padding: 0px; + margin: 0px; + } .title { *************** *** 102,106 **** font-weight: normal; } - div.normal { --- 120,123 ---- |
From: Brian C. <bch...@us...> - 2005-02-04 10:57:17
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24100/Themes/Default Modified Files: theme.css Log Message: Updated secondary themes to bring them inline with the Default theme. Updates include - Multiple CVS Repository Capability. - DIFF display functionality. - Package Download Capability. Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.css,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** theme.css 4 Feb 2005 09:55:19 -0000 1.13 --- theme.css 4 Feb 2005 10:56:38 -0000 1.14 *************** *** 120,124 **** font-weight: normal; } - div.normal { --- 120,123 ---- |
From: Brian C. <bch...@us...> - 2005-02-04 10:56:58
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Yellow/Images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24100/Themes/Yellow/Images Added Files: download.png Log Message: Updated secondary themes to bring them inline with the Default theme. Updates include - Multiple CVS Repository Capability. - DIFF display functionality. - Package Download Capability. --- NEW FILE: download.png --- (This appears to be a binary file; contents omitted.) |
From: Brian C. <bch...@us...> - 2005-02-04 10:56:56
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Blue/Images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24100/Themes/Blue/Images Added Files: download.png Log Message: Updated secondary themes to bring them inline with the Default theme. Updates include - Multiple CVS Repository Capability. - DIFF display functionality. - Package Download Capability. --- NEW FILE: download.png --- (This appears to be a binary file; contents omitted.) |
From: Brian C. <bch...@us...> - 2005-02-04 10:56:56
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Red/Images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24100/Themes/Red/Images Added Files: download.png Log Message: Updated secondary themes to bring them inline with the Default theme. Updates include - Multiple CVS Repository Capability. - DIFF display functionality. - Package Download Capability. --- NEW FILE: download.png --- (This appears to be a binary file; contents omitted.) |
From: Brian C. <bch...@us...> - 2005-02-04 10:56:56
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Green/Images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24100/Themes/Green/Images Added Files: download.png Log Message: Updated secondary themes to bring them inline with the Default theme. Updates include - Multiple CVS Repository Capability. - DIFF display functionality. - Package Download Capability. --- NEW FILE: download.png --- (This appears to be a binary file; contents omitted.) |
From: Brian C. <bch...@us...> - 2005-02-04 10:40:47
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default/Images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21317/Themes/Default/Images Added Files: download.png Log Message: Added image for Default Theme to display for the package download option --- NEW FILE: download.png --- (This appears to be a binary file; contents omitted.) |
From: Sijis A. <si...@us...> - 2005-02-04 09:57:23
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12902/Themes/Default Modified Files: theme.php Log Message: - removed reference to $env['mod_path'] in function calls - minor cosmetic fixes Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** theme.php 4 Feb 2005 04:51:09 -0000 1.14 --- theme.php 4 Feb 2005 09:57:12 -0000 1.15 *************** *** 11,15 **** * @copyright 2003-2005 Brian A Cheeseman **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; $FileIcon = "Themes/".$config['theme']."/Images/file.png"; --- 11,15 ---- * @copyright 2003-2005 Brian A Cheeseman **/ ! $FolderIcon = "Themes/".$config['theme']."/Images/folder.png"; $FileIcon = "Themes/".$config['theme']."/Images/file.png"; *************** *** 21,40 **** global $StartTime, $config, $env, $lang; $StartTime = microtime(); ! $PageHead = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">"; ! $PageHead .= "<html><head>"; if ($Title != "") { ! $PageHead .= "<title>$Title</title>"; } ! $PageHead .= "<link href=\"Themes/".$config['theme']."/theme.css\" rel=\"stylesheet\" type=\"text/css\" />"; // Add JavaScript to postback the change in theme selection. ! $PageHead .= "<script src=\"./phpcvsview.js\"></script>"; ! $PageHead .= "</head>"; ! $PageHead .= "<body>"; if ($Heading != "") { ! $PageHead .= "<div class=\"title\">$Heading</div>"; } $PageHead .= $lang['message']; ! $PageHead .= "<form class=\"themechanger\">"; ! $PageHead .= ' '.$lang['change_cvsroot'].' <select name="reposSelect" class="reposchanger" onchange="postBackReposChange(this.form)">'; foreach($config['cvs'] as $key => $value){ --- 21,39 ---- global $StartTime, $config, $env, $lang; $StartTime = microtime(); ! $PageHead = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'; ! $PageHead .= '<html><head>'; if ($Title != "") { ! $PageHead .= '<title>'.$Title.'</title>'; } ! $PageHead .= '<link href="Themes/'.$config['theme'].'/theme.css" rel="stylesheet" type="text/css" />'; // Add JavaScript to postback the change in theme selection. ! $PageHead .= '<script src="./phpcvsview.js"></script>'; ! $PageHead .= '</head>'; ! $PageHead .= '<body>'; if ($Heading != "") { ! $PageHead .= '<div class="title">'.$Heading.'</div>'; } $PageHead .= $lang['message']; ! $PageHead .= '<form class="themechanger">'; $PageHead .= ' '.$lang['change_cvsroot'].' <select name="reposSelect" class="reposchanger" onchange="postBackReposChange(this.form)">'; foreach($config['cvs'] as $key => $value){ *************** *** 90,109 **** global $StartTime, $lang; $EndTime = microtime(); ! $PageFoot = "<div class=\"footer\">".$lang['generated']." ".number_format(microtime_diff($StartTime, $EndTime), 3)." ".$lang['seconds']."<br />"; $PageFoot .= $lang['created_by']; ! $PageFoot .= "<p><a href=\"http://validator.w3.org/check?uri=referer\"><img src=\"http://www.w3.org/Icons/valid-xhtml11\" alt=\"Valid XHTML 1.1!\" height=\"31\" width=\"88\" /></a> "; ! $PageFoot .= "<a href=\"http://jigsaw.w3.org/css-validator/check/referer\"><img style=\"border:0;width:88px;height:31px\" src=\"http://www.w3c.org/Icons/valid-css\" alt=\"Valid CSS!\" /></a></p>"; ! $PageFoot .= "</div>"; ! $PageFoot .= "</body></html>"; return $PageFoot; } ! function GetQuickLinkBar($ModPath = "/", $Prefix = "", $LinkLast = false, $LastIsFile = false, $Revision = "") { global $env, $lang; // Add the quick link navigation bar. ! $Dirs = explode("/", $ModPath); ! $QLOut = "<div class=\"quicknav\">".$lang['navigate_to']."<a href=\"".$env['script_name']."\">".$lang['root']."</a> "; $intCount = 1; $OffSet = 2; --- 89,109 ---- global $StartTime, $lang; $EndTime = microtime(); ! $PageFoot = '<div class="footer">'.$lang['generated'].' '.number_format(microtime_diff($StartTime, $EndTime), 3).' '.$lang['seconds'].'<br />'; $PageFoot .= $lang['created_by']; ! $PageFoot .= '<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1!" height="31" width="88" /></a> '; ! $PageFoot .= '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3c.org/Icons/valid-css" alt="Valid CSS!" /></a></p>'; ! $PageFoot .= '</div>'; ! $PageFoot .= '</body></html>'; return $PageFoot; } ! function GetQuickLinkBar($Prefix = "", $LinkLast = false, $LastIsFile = false, $Revision = "") { global $env, $lang; + if(empty($Prefix)){ $Prefix = $lang['navigate_to'];} // Add the quick link navigation bar. ! $Dirs = explode("/", $env['mod_path']); ! $QLOut = '<div class="quicknav">'.$Prefix.'<a href="'.$env['script_name'].'">'.$lang['root'].'</a> '; $intCount = 1; $OffSet = 2; *************** *** 114,131 **** 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 .= "/"; } } --- 114,131 ---- 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 .= '/'; } } *************** *** 133,139 **** $QLOut .= $Dirs[$intCount]; if ($LinkLast) { ! $QLOut .= "</a>"; } ! $QLOut .= "</div>"; return $QLOut; } --- 133,139 ---- $QLOut .= $Dirs[$intCount]; if ($LinkLast) { ! $QLOut .= '</a>'; } ! $QLOut .= '</div>'; return $QLOut; } *************** *** 142,148 **** { global $RowClass, $lang; ! echo "<hr />"; ! echo "<table>"; ! echo "<tr class=\"head\"><th> </th><th> </th><th>".$lang['file']."</th><th>".$lang['rev']."</th><th>".$lang['age']."</th><th>".$lang['author']."</th><th>".$lang['last_log']."</th></tr>"; $RowClass = "row1"; } --- 142,148 ---- { global $RowClass, $lang; ! echo '<hr />'; ! echo '<table>'; ! echo '<tr class="head"><th> </th><th> </th><th>'.$lang['file'].'</th><th>'.$lang['rev'].'</th><th>'.$lang['age'].'</th><th>'.$lang['author'].'</th><th>'.$lang['last_log'].'</th></tr>'; $RowClass = "row1"; } *************** *** 150,191 **** function endDirList() { ! echo "</table>"; ! echo "<hr />"; } ! function addParentDirectory($ModPath) { global $RowClass, $ParentIcon, $env, $lang; ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".substr($ModPath, 0, strrpos(substr($ModPath, 0, -1), "/"))."/"); ! echo "<tr class=\"$RowClass\">"; ! echo "<td class=\"min\"> </td>"; ! echo "<td class=\"min\"><a href=\"$HREF\"><img alt=\"parent\" src=\"".$env['script_path']."/$ParentIcon\" /></a></td>"; ! echo "<td class=\"min\"><a href=\"$HREF\">".$lang['up_folder']."</a></td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "<td> </td>"; ! echo "</tr>"; $RowClass = "row2"; } ! function addFolders($ModPath, $Folders) { global $RowClass, $DownloadIcon, $FolderIcon, $env; foreach ($Folders as $Folder) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$Folder["Name"]."/"); ! echo "<tr class=\"$RowClass\">"; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo "<td class=\"min\"><a href=\"$HREF&dp\"><img alt=\"D/L\" src=\"".$env['script_path']."/$DownloadIcon\" /></a></td>"; } else { ! echo "<td class=\"min\"> </td>"; } ! 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"; --- 150,192 ---- function endDirList() { ! echo '</table>'; ! echo '<hr />'; } ! function addParentDirectory() { global $RowClass, $ParentIcon, $env, $lang; ! ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".substr($env['mod_path'], 0, strrpos(substr($env['mod_path'], 0, -1), "/"))."/"); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! echo '<td class="min"><a href="'.$HREF.'"><img alt="parent" src="'.$env['script_path'].'/'.$ParentIcon.'" /></a></td>'; ! echo '<td class="min"><a href="'.$HREF.'">'.$lang['up_folder'].'</a></td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '<td> </td>'; ! echo '</tr>'; $RowClass = "row2"; } ! function addFolders($Folders) { global $RowClass, $DownloadIcon, $FolderIcon, $env; foreach ($Folders as $Folder) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']."/".$Folder["Name"]."/"); ! echo '<tr class="'.$RowClass.'">'; if ($Folder["Name"] != "CVSROOT" && $Folder["Name"] != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { ! echo '<td class="min"> </td>'; } ! 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"; *************** *** 196,218 **** } ! function addModules($ModPath, $Modules) { global $RowClass, $DownloadIcon, $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\">"; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo "<td class=\"min\"><a href=\"$HREF&dp\"><img alt=\"D/L\" src=\"".$env['script_path']."/$DownloadIcon\" /></a></td>"; } else { ! echo "<td class=\"min\"> </td>"; } ! 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"; --- 197,220 ---- } ! function addModules($Modules) { global $RowClass, $DownloadIcon, $ModuleIcon, $env; + foreach ($Modules as $Key => $Val) { // Add the row data here. ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$Val."/"); ! echo '<tr class="'.$RowClass.'">'; if ($Val != "CVSROOT" && $Val != "Attic") { ! echo '<td class="min"><a href="'.$HREF.'&dp"><img alt="D/L" src="'.$env['script_path'].'/'.$DownloadIcon.'" /></a></td>'; } else { ! echo '<td class="min"> </td>'; } ! 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"; *************** *** 223,242 **** } ! function addFiles($ModPath, $Files) { global $RowClass, $FileIcon, $env, $lang; foreach ($Files as $File) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$File["Name"]); $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo "<tr class=\"$RowClass\">"; ! echo "<td class=\"min\"> </td>"; ! 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)." ".$lang['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"; --- 225,245 ---- } ! function addFiles($Files) { global $RowClass, $FileIcon, $env, $lang; + foreach ($Files as $File) { ! $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path'].$File["Name"]); $DateTime = strtotime($File["Revisions"][$File["Head"]]["date"]); $AGE = CalculateDateDiff($DateTime, strtotime(gmdate("M d Y H:i:s"))); ! echo '<tr class="'.$RowClass.'">'; ! echo '<td class="min"> </td>'; ! 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).' '.$lang['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"; *************** *** 250,269 **** { global $CVSServer, $env; $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! $DiffForm = "<form class=\"diffform\">"; ! $DiffForm .= "Diff between: <select name=\"DiffRev1\" class=\"diffform\">"; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= "<option value=\"".$Revision["Revision"]."\">".$Revision["Revision"]."</option>"; } ! $DiffForm .= "</select> and <select name=\"DiffRev2\" class=\"diffform\">"; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= "<option value=\"".$Revision["Revision"]."\">".$Revision["Revision"]."</option>"; } ! $DiffForm .= "</select><input type=\"hidden\" name=\"URLDiffReq\" value=\"".$HREF."\">"; ! $DiffForm .= "<input type=\"button\" value=\"Get Diff\" onclick=\"postBackDiffRequest(this.form)\">"; ! $DiffForm .= "</form>"; return $DiffForm; --- 253,273 ---- { global $CVSServer, $env; + $HREF = str_replace("//", "/", $env['script_name']."?mp=".$env['mod_path']); ! $DiffForm = '<form class="diffform">'; ! $DiffForm .= 'Diff between: <select name="DiffRev1" class="diffform">'; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select> and <select name="DiffRev2" class="diffform">'; foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { ! $DiffForm .= '<option value="'.$Revision["Revision"].'">'.$Revision["Revision"].'</option>'; } ! $DiffForm .= '</select><input type="hidden" name="URLDiffReq" value="'.$HREF.'">'; ! $DiffForm .= '<input type="button" value="Get Diff" onclick="postBackDiffRequest(this.form);">'; ! $DiffForm .= '</form>'; return $DiffForm; |
From: Sijis A. <si...@us...> - 2005-02-04 09:55:31
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12580/Themes/Default Modified Files: theme.css Log Message: - added class for diff form styling Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.css,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** theme.css 3 Feb 2005 23:47:29 -0000 1.12 --- theme.css 4 Feb 2005 09:55:19 -0000 1.13 *************** *** 25,28 **** --- 25,32 ---- text-decoration: underline; } + input + { + font-size: 8pt; + } .head { *************** *** 69,72 **** --- 73,83 ---- margin: 0px; } + .diffform + { + font-size: 8pt; + text-align: left; + padding: 0px; + margin: 0px; + } .title { *************** *** 145,147 **** background-color: #ffdddd; } - --- 156,157 ---- |
From: Sijis A. <si...@us...> - 2005-02-04 09:53:05
|
Update of /cvsroot/phpcvsview/phpcvsview/languages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12113/languages Modified Files: en.php Log Message: - added more translatable text to $lang array Index: en.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/languages/en.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** en.php 3 Feb 2005 23:49:20 -0000 1.2 --- en.php 4 Feb 2005 09:52:55 -0000 1.3 *************** *** 31,37 **** --- 31,39 ---- $lang['up_folder'] = 'Up one folder'; $lang['rev_history'] = 'Revision history for: '; + $lang['rev_diff'] = 'Revision Diff for: '; $lang['code_view'] = 'Code view for: '; $lang['navigate_to'] = 'Navigate to: '; $lang['file_ext'] = 'File Extension: '; + $lang['annotate_history'] = 'Annotation history for: '; $lang['mime_type'] = 'Mime Type is: '; *************** *** 80,83 **** --- 82,86 ---- // error messages $lang['err_connect'] = '<h2>ERROR: Could not connect to the PServer.</h2>'."\n"; + $lang['err_get_rev'] = '<h3>ERROR: Getting Revision for file:</h3>'; ?> |
From: Sijis A. <si...@us...> - 2005-02-04 09:48:03
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11042 Modified Files: utils.php Log Message: - modified function to fix warning given in php5 about using references Index: utils.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/utils.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** utils.php 3 Feb 2005 23:48:34 -0000 1.7 --- utils.php 4 Feb 2005 09:47:54 -0000 1.8 *************** *** 158,167 **** } ! function InsertIntoArray(&$Array, $Value, $Position) { ! if (!is_array($Array)) return false; $Last = array_splice($Array, $Position); $Array[] = $Value; $Array = array_merge($Array, $Last); } --- 158,168 ---- } ! function InsertIntoArray($Array, $Value, $Position) { ! if (!is_array($Array)) {return $Array;} $Last = array_splice($Array, $Position); $Array[] = $Value; $Array = array_merge($Array, $Last); + return $Array; } |
From: Sijis A. <si...@us...> - 2005-02-04 09:45:34
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10600 Modified Files: func_FileView.php Log Message: - removed unecessary $env['script_path'] recalculation - removed reference to $env['mod_path'] in function calls Index: func_FileView.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileView.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** func_FileView.php 3 Feb 2005 23:50:36 -0000 1.14 --- func_FileView.php 4 Feb 2005 09:45:24 -0000 1.15 *************** *** 20,27 **** global $config, $env, $lang; - // Calculate the path from the $env['script_name'] variable. - $env['script_path'] = substr($env['script_name'], 0, strrpos($env['script_name'], '/')); - $env['script_path'] = (empty($env['script_path']))? '/' : $env['script_path']; - // Create our CVS connection object and set the required properties. $CVSServer = new CVS_PServer($env['CVSSettings']['cvsroot'], $env['CVSSettings']['server'], $env['CVSSettings']['username'], $env['CVSSettings']['password']); --- 20,23 ---- *************** *** 49,53 **** // Add the quick link navigation bar. ! echo GetQuickLinkBar($env['mod_path'], $lang['code_view'], true, true, $Revision); echo "<hr />\n"; --- 45,49 ---- // Add the quick link navigation bar. ! echo GetQuickLinkBar($lang['code_view'], true, true, $Revision); echo "<hr />\n"; |
From: Sijis A. <si...@us...> - 2005-02-04 09:44:46
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10482 Modified Files: func_FileHistory.php Log Message: - removed unecessary $env['script_path'] recalculation - removed reference to $env['mod_path'] in function calls Index: func_FileHistory.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileHistory.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** func_FileHistory.php 3 Feb 2005 23:50:36 -0000 1.11 --- func_FileHistory.php 4 Feb 2005 09:44:36 -0000 1.12 *************** *** 16,23 **** global $config, $env, $lang, $CVSServer; - // Calculate the path from the $env['script_name'] variable. - $env['script_path'] = substr($env['script_name'], 0, strrpos($env['script_name'], '/')); - $env['script_path'] = (empty($env['script_path']))? '/' : $env['script_path']; - // Create our CVS connection object and set the required properties. $CVSServer = new CVS_PServer($env['CVSSettings']['cvsroot'], $env['CVSSettings']['server'], $env['CVSSettings']['username'], $env['CVSSettings']['password']); --- 16,19 ---- *************** *** 41,45 **** // Add the quick link navigation bar. ! echo GetQuickLinkBar($env['mod_path'], $lang['rev_history'], false, true, ""); foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { --- 37,41 ---- // Add the quick link navigation bar. ! echo GetQuickLinkBar($lang['rev_history'], false, true, ""); foreach ($CVSServer->FILES[0]["Revisions"] as $Revision) { |
From: Sijis A. <si...@us...> - 2005-02-04 09:43:57
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10345 Modified Files: func_FileDownload.php Log Message: - fixed special id cvs string tag - removed unecessary $env['script_path'] recalculation Index: func_FileDownload.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileDownload.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** func_FileDownload.php 3 Feb 2005 23:50:36 -0000 1.3 --- func_FileDownload.php 4 Feb 2005 09:43:48 -0000 1.4 *************** *** 8,12 **** * * @author Brian A Cheeseman <bch...@us...> ! * @version $Id * @copyright 2003-2005 Brian A Cheeseman **/ --- 8,12 ---- * * @author Brian A Cheeseman <bch...@us...> ! * @version $Id$ * @copyright 2003-2005 Brian A Cheeseman **/ *************** *** 16,23 **** global $config, $env, $lang, $MIME_TYPES; - // Calculate the path from the $env['script_name'] variable. - $env['script_path'] = substr($env['script_name'], 0, strrpos($env['script_name'], '/')); - $env['script_path'] = (empty($env['script_path']))? '/' : $env['script_path']; - // Create our CVS connection object and set the required properties. $CVSServer = new CVS_PServer($env['CVSSettings']['cvsroot'], $env['CVSSettings']['server'], $env['CVSSettings']['username'], $env['CVSSettings']['password']); --- 16,19 ---- |
From: Sijis A. <si...@us...> - 2005-02-04 09:42:31
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10048 Modified Files: func_FileAnnotation.php Log Message: - removed unecessary $env['script_path'] recalculation - removed reference to $env['mod_path'] in function calls Index: func_FileAnnotation.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileAnnotation.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** func_FileAnnotation.php 3 Feb 2005 23:50:36 -0000 1.9 --- func_FileAnnotation.php 4 Feb 2005 09:42:22 -0000 1.10 *************** *** 16,23 **** global $config, $env, $lang; - // Calculate the path from the $env['script_name'] variable. - $env['script_path'] = substr($env['script_name'], 0, strrpos($env['script_name'], '/')); - $env['script_path'] = (empty($env['script_path']))? '/' : $env['script_path']; - // Create our CVS connection object and set the required properties. $CVSServer = new CVS_PServer($env['CVSSettings']['cvsroot'], $env['CVSSettings']['server'], $env['CVSSettings']['username'], $env['CVSSettings']['password']); --- 16,19 ---- *************** *** 41,44 **** --- 37,42 ---- } + echo GetQuickLinkBar($lang['annotate_history'], false, true); + // Start the output for the table. echo '<hr />'."\n"; |
From: Sijis A. <si...@us...> - 2005-02-04 09:41:43
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9873 Modified Files: func_DirListing.php Log Message: - removed reference to $env['mod_path'] in function calls Index: func_DirListing.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_DirListing.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** func_DirListing.php 3 Feb 2005 23:50:36 -0000 1.10 --- func_DirListing.php 4 Feb 2005 09:41:35 -0000 1.11 *************** *** 44,48 **** // Add the quick link navigation bar. ! echo GetQuickLinkBar($env['mod_path']); // Start the output for the table. --- 44,48 ---- // Add the quick link navigation bar. ! echo GetQuickLinkBar(); // Start the output for the table. *************** *** 51,67 **** // 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. ! addFiles($env['mod_path'], $CVSServer->FILES); // Close off our HTML table. --- 51,67 ---- // Do we need the "Back" operation. if (strlen($env['mod_path']) > 2) { ! addParentDirectory(); } // Display the folders within the table. ! addFolders($CVSServer->FOLDERS); // Display the Modules if we have them. if ($Modules !== false) { ! addModules($Modules); } // Display the files within the table. ! addFiles($CVSServer->FILES); // Close off our HTML table. |
From: Sijis A. <si...@us...> - 2005-02-04 09:40:27
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9530 Modified Files: func_DiffFile.php Log Message: - fixed warning given in php5 about using references - added error text to i18n support - removed unecessary $env['script_path'] recalculation - removed reference to $env['mod_path'] in function calls Index: func_DiffFile.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_DiffFile.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** func_DiffFile.php 3 Feb 2005 23:50:36 -0000 1.3 --- func_DiffFile.php 4 Feb 2005 09:40:18 -0000 1.4 *************** *** 14,24 **** function DisplayFileDiff($Rev1, $Rev2) { ! 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'] = "/"; ! } // Create our CVS connection object and set the required properties. --- 14,18 ---- function DisplayFileDiff($Rev1, $Rev2) { ! global $config, $env, $lang; // Create our CVS connection object and set the required properties. *************** *** 38,42 **** // Add the quick link navigation bar. ! echo GetQuickLinkBar($env['mod_path'], "Revision Diff for: ", true, true, ""); echo "<hr />"; --- 32,36 ---- // Add the quick link navigation bar. ! echo GetQuickLinkBar($lang['rev_diff'], true, true, ""); echo "<hr />"; *************** *** 65,69 **** $FileContents = $CVSServer->FILECONTENTS; if ($FileContents === false) { ! echo "<pre>ERROR Getting Revision $Rev1 of file</pre>"; } $Lines = explode("\n", $FileContents); --- 59,63 ---- $FileContents = $CVSServer->FILECONTENTS; if ($FileContents === false) { ! echo $lang['err_get_rev'].'<h3>'. $Rev1 .'</h3>'; } $Lines = explode("\n", $FileContents); *************** *** 94,98 **** { $TempLine = array('mode' => "+", 'text' => substr($DiffLines[++$linenumber], 2)); ! InsertIntoArray(&$FilePatching, $TempLine, $InsertLocation[0]+$LineCounter+1); $LineOffset++; } --- 88,92 ---- { $TempLine = array('mode' => "+", 'text' => substr($DiffLines[++$linenumber], 2)); ! $FilePatching = InsertIntoArray($FilePatching, $TempLine, $InsertLocation[0]+$LineCounter+1); $LineOffset++; } *************** *** 112,116 **** $linenumber++; $TempLine = array('mode' => "+", 'text' => substr($DiffLines[$linenumber], 2)); ! InsertIntoArray(&$FilePatching, $TempLine, $InsertLocation[0]+$LineCounter+$LineOffset); $LineOffset++; } --- 106,110 ---- $linenumber++; $TempLine = array('mode' => "+", 'text' => substr($DiffLines[$linenumber], 2)); ! $FilePatching = InsertIntoArray($FilePatching, $TempLine, $InsertLocation[0]+$LineCounter+$LineOffset); $LineOffset++; } *************** *** 121,125 **** $linenumber++; $TempLine = array('mode' => "+", 'text' => substr($DiffLines[$linenumber], 2)); ! InsertIntoArray(&$FilePatching, $TempLine, $InsertLocation[0]+$LineCounter+$LineOffset); } } --- 115,119 ---- $linenumber++; $TempLine = array('mode' => "+", 'text' => substr($DiffLines[$linenumber], 2)); ! $FilePatching = InsertIntoArray($FilePatching, $TempLine, $InsertLocation[0]+$LineCounter+$LineOffset); } } *************** *** 163,167 **** $CVSServer->Disconnect(); } else { ! echo "Connection Failed."; } echo GetPageFooter(); --- 157,161 ---- $CVSServer->Disconnect(); } else { ! echo $lang['err_connect']; } echo GetPageFooter(); |
From: Sijis A. <si...@us...> - 2005-02-04 09:35:48
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8653 Modified Files: func_ArchiveDownload.php Log Message: - correct reference to cvsroot path Index: func_ArchiveDownload.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_ArchiveDownload.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** func_ArchiveDownload.php 4 Feb 2005 04:44:47 -0000 1.2 --- func_ArchiveDownload.php 4 Feb 2005 09:35:31 -0000 1.3 *************** *** 93,97 **** $jobpath = $config['TempFileLocation']."/".md5(uniqid(rand(), true)); mkdir($jobpath, 0700); ! $buildpath = $jobpath."/".$config['CVSROOT']; mkdir($buildpath, 0700); $ReposFolders = explode("/", $env['mod_path']); --- 93,97 ---- $jobpath = $config['TempFileLocation']."/".md5(uniqid(rand(), true)); mkdir($jobpath, 0700); ! $buildpath = $jobpath."/".$env['CVSROOT']; mkdir($buildpath, 0700); $ReposFolders = explode("/", $env['mod_path']); *************** *** 104,117 **** // Create the tar file. ! $FileName = $jobpath."/".$config['CVSROOT'].".tar.gz"; $tar = new Archive_Tar($FileName, "gz"); $cwd = getcwd(); chdir($jobpath); ! $tar->create($config['CVSROOT']); chdir($cwd); header('Content-Type: application/x-tar'); ! header("Content-Disposition: attachment; filename=\"".$config['CVSROOT'].".tar.gz\""); ! header("Content-Length: " . filesize($FileName)); $tarfile = fopen($FileName, "rb"); --- 104,117 ---- // Create the tar file. ! $FileName = $jobpath."/".$env['CVSROOT'].".tar.gz"; $tar = new Archive_Tar($FileName, "gz"); $cwd = getcwd(); chdir($jobpath); ! $tar->create($env['CVSROOT']); chdir($cwd); header('Content-Type: application/x-tar'); ! header('Content-Disposition: attachment; filename="'.$env['CVSROOT'].'.tar.gz"'); ! header('Content-Length: ' . filesize($FileName)); $tarfile = fopen($FileName, "rb"); |