cvs: phpweb / index.php

From: Date: Tue, 13 Aug 2002 10:17:11 +0000
Subject: cvs: phpweb / index.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-11888@lists.php.net to get a copy of this message
goba Tue Aug 13 06:17:11 2002 EDT Modified files: /phpweb index.php Log: Making this banner code more rational, adding support for png and jpg. Also do not print out hdelim but include in sidebar (which was the intention as far as I can see). Index: phpweb/index.php diff -u phpweb/index.php:1.274 phpweb/index.php:1.275 --- phpweb/index.php:1.274 Tue Aug 13 05:39:40 2002 +++ phpweb/index.php Tue Aug 13 06:17:11 2002 @@ -84,17 +84,23 @@ </p> '; -// do the mirror logo segment of the RSIDEBAR. -if(file_exists("backend/mirror.gif")) { - $RSIDEBAR_DATA .= "<center><h3>This mirror sponsored by:</h3>\n - <a href='" . $MIRRORS[$MYSITE]['3'] . "'>"; - if($MIRRORS[$MYSITE]['4'] === 2) { - $RSIDEBAR_DATA .= "<img src='backend/mirror.gif' width='125' height='125' alt='mirror sponsor' border='0' /></a></center><br />"; - } else { - $RSIDEBAR_DATA .= "<img src='backend/mirror.gif' width='120' height='60' alt='mirror sponsor' border='0' /></a></center><br />"; - } - echo hdelim(); -} +// Find the type of logo provided and start the right +// sidebar with it if a mirror banner is available +while (list(,$ext) = each(array("gif", "jpg", "png"))) { + if (file_exists("backend/mirror." . $ext)) { + $RSIDEBAR_DATA .= "<center><h3>This mirror sponsored by:</h3>\n + <a href='" . $MIRRORS[$MYSITE]['3'] . "'><img src='backend/mirror.$ext' "; + if ($MIRRORS[$MYSITE]['4'] === 2) { + $RSIDEBAR_DATA .= "width='125' height='125'"; + } else { + $RSIDEBAR_DATA .= "width='120' height='60'"; + } + $RSIDEBAR_DATA .= + " alt='" . $MIRRORS[$MYSITE]['2'] . + "' border='0' /></a></center><br />" . hdelim(); + break; + } +} // Open events CSV file, and print out event title $fp = @fopen("backend/events.csv", "r");

« previous php.mirrors (#11888) next »