[phpcvsview-cvs-updates] phpcvsview/Themes/Default theme.php,1.12,1.13
Status: Pre-Alpha
Brought to you by:
bcheesem
From: Brian C. <bch...@us...> - 2005-02-04 04:22:02
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22893/Themes/Default Modified Files: theme.php Log Message: Added package download capability for folders within the CVS repository. Need to look at ways to improve the performance, as it takes a while to export the source and then generate the .tar.gz file. I can see issues with php runtime timeouts. Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** theme.php 3 Feb 2005 23:47:29 -0000 1.12 --- theme.php 4 Feb 2005 04:21:51 -0000 1.13 *************** *** 16,19 **** --- 16,20 ---- $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="") { *************** *** 143,147 **** 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"; } --- 144,148 ---- 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"; } *************** *** 158,161 **** --- 159,163 ---- $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>"; *************** *** 170,177 **** 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>"; --- 172,184 ---- 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>"; *************** *** 196,199 **** --- 203,207 ---- $HREF = str_replace("//", "/", $env['script_name']."?mp=$ModPath/".$Val."/"); echo "<tr class=\"$RowClass\">"; + 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>"; *************** *** 219,222 **** --- 227,231 ---- $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>"; |