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 = "
\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
- This site is an official PHP.net mirror site
- The mirror site's address is
-
- - The provider of this mirror is
-
+
+Mirror Provider
+
+
+
Mirror Services
diff --git a/mirroring.php b/mirroring.php
index 63ef61f9c..bfa374255 100644
--- a/mirroring.php
+++ b/mirroring.php
@@ -369,7 +369,7 @@ site_header(
- Create a 120 x 60 pixel sized logo button.
- Copy it to your
/www/htdocs/phpweb/backend folder as mirror.gif, mirror.jpg or mirror.png.
- - Go visit your mirror URL and check if it is there.
+ - Go visit your mirror URL (e.g. http://foo.php.net/mirror.php) and check if it is there.