mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
55 lines
1.2 KiB
PHP
55 lines
1.2 KiB
PHP
<?php
|
|
require_once 'prepend.inc';
|
|
|
|
if (isset($FROM) && isset($country)) {
|
|
header("Location: $country$FROM");
|
|
exit;
|
|
}
|
|
|
|
commonHeader("Mirror Sites");
|
|
?>
|
|
|
|
<h1>Mirror Sites</h1>
|
|
|
|
<p>
|
|
Here you can find more information about the mirrors of php.net.
|
|
</p>
|
|
<p>
|
|
Pick a mirror site close to you (the current mirror is highlighted), or visit
|
|
the provider's homepage. If you are interested in hosting a mirror of this site,
|
|
<?php print_link("/mirroring.php", "here's how"); ?>.
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
<table border="0" cellpadding="2" cellspacing="1" width="100%">
|
|
<tr bgcolor="#cccccc">
|
|
<th>Country</th>
|
|
<th>Mirror Address</th>
|
|
<th>Provider</th>
|
|
<th>Default Language</th>
|
|
</tr>
|
|
<?php
|
|
$mprevious = 'aa';
|
|
foreach ($MIRRORS as $murl => $mdata) {
|
|
if ($mdata[4] != 1) {
|
|
continue;
|
|
}
|
|
echo '<tr bgcolor="' . ($MYSITE==$murl ? '#ffffcc' : '#e0e0e0') . '"><td>';
|
|
if ($mprevious != $mdata[0]) {
|
|
echo $COUNTRIES[$mdata[0]];
|
|
} else {
|
|
echo " ";
|
|
}
|
|
echo '</td><td>' . make_link($murl, $murl) .
|
|
'</td><td>' . make_link($mdata[3], $mdata[1]) .
|
|
'</td><td>' . $LANGUAGES[$mdata[6]] . '</td></tr>';
|
|
$mprevious = $mdata[0];
|
|
}
|
|
?>
|
|
</table>
|
|
</p>
|
|
|
|
<?php commonFooter(); ?>
|