diff --git a/index.php b/index.php index 80b066915..2a92f974c 100644 --- a/index.php +++ b/index.php @@ -165,57 +165,12 @@ if (is_array($CONF_TEASER)) { $announcements = ''; } -$MIRROR_IMAGE = ''; - -// Try to find a sponsor image in case this is an official mirror -if (is_official_mirror()) { - - // Iterate through possible mirror provider logo types in priority order - $types = array("gif", "jpg", "png"); - while (list(,$ext) = each($types)) { - - // Check if file exists for this type - if (file_exists("backend/mirror." . $ext)) { - - // Add text to rigth sidebar - $MIRROR_IMAGE = "
" - . '' - . "This mirror sponsored by
\n"; - - // Create image HTML code - $img = make_image( - 'mirror.' . $ext, - htmlspecialchars(mirror_provider()), - FALSE, - FALSE, - 'backend', - 0 - ); - - // Add size information depending on mirror type - if (is_primary_site() || is_backup_primary()) { - $img = resize_image($img, 125, 125); - } else { - $img = resize_image($img, 120, 60); - } - - // End mirror specific part - $MIRROR_IMAGE .= '
\n"; - - // We have found an image - break; - } - } -} - $SIDEBAR = <<< SIDEBAR_DATA

Upgrading to PHP 5.5

$announcements

User Group Events

Special Thanks

-$MIRROR_IMAGE

diff --git a/mirror.php b/mirror.php index 9c77962d9..a6b1b6634 100644 --- a/mirror.php +++ b/mirror.php @@ -16,6 +16,41 @@ $SIDEBAR_DATA = ' mirroring page.

'; + +$MIRROR_IMAGE = ''; + +// Try to find a sponsor image in case this is an official mirror +if (is_official_mirror()) { + + // Iterate through possible mirror provider logo types in priority order + $types = array("gif", "jpg", "png"); + while (list(,$ext) = each($types)) { + + // Check if file exists for this type + if (file_exists("backend/mirror." . $ext)) { + + // Create image HTML code + $MIRROR_IMAGE = make_image( + 'mirror.' . $ext, + htmlspecialchars(mirror_provider()), + FALSE, + FALSE, + 'backend', + 0 + ); + + // Add size information depending on mirror type + if (is_primary_site() || is_backup_primary()) { + $MIRROR_IMAGE = resize_image($MIRROR_IMAGE, 125, 125); + } else { + $MIRROR_IMAGE = resize_image($MIRROR_IMAGE, 120, 60); + } + + // We have found an image + break; + } + } +} site_header("Information About This PHP Mirror Site", array("current" => "community")); ?> @@ -35,11 +70,20 @@ site_header("Information About This PHP Mirror Site", array("current" => "commun + +

Mirror Provider

+ + +

Mirror Services