aboutsummaryrefslogtreecommitdiffstats
path: root/mirrors.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-10-16 16:18:33 +0000
committerRomain d'Alverny <rda@mageia.org>2012-10-16 16:18:33 +0000
commitf108e8c24c68c9d7bd440bcfb29e09b7edbf1ad7 (patch)
tree5e5471a590d7dbceccbe7e2b59cf1cf23e11ab02 /mirrors.php
parent9d42d4981030943ef763b7696e64a5c1318b88f1 (diff)
downloadwww-f108e8c24c68c9d7bd440bcfb29e09b7edbf1ad7.tar
www-f108e8c24c68c9d7bd440bcfb29e09b7edbf1ad7.tar.gz
www-f108e8c24c68c9d7bd440bcfb29e09b7edbf1ad7.tar.bz2
www-f108e8c24c68c9d7bd440bcfb29e09b7edbf1ad7.tar.xz
www-f108e8c24c68c9d7bd440bcfb29e09b7edbf1ad7.zip
obsolete file
Diffstat (limited to 'mirrors.php')
-rw-r--r--mirrors.php119
1 files changed, 0 insertions, 119 deletions
diff --git a/mirrors.php b/mirrors.php
deleted file mode 100644
index 3aaae3f8c..000000000
--- a/mirrors.php
+++ /dev/null
@@ -1,119 +0,0 @@
-<?php
-/**
-*/
-
-// update this list from mirrors.mageia.org
-/* @fixme note to self: brains! */
-$mirrors = array(
- 'China' => array(
- 'Beijing' => array(
- 'http://fundawang.lcuc.org.cn/mageia/'
- )
- ),
- 'Czech Republic' => array(
- 'Praha' => array(
- 'http://mageia.supp.name/'
- ),
- '?' => array(
- 'ftp://ftp.sh.cvut.cz/MIRRORS/mageia/',
- 'http://ftp.sh.cvut.cz/MIRRORS/mageia/'
- )
- ),
- 'Deutschland' => array(
- 'Erfurt' => array(
- 'http://ftp.mandrivauser.de/mirrors/Mageia/',
- 'ftp://ftp.mandrivauser.de/mirrors/Mageia/'
- ),
- 'Erlangen' => array(
- 'http://ftp.uni-erlangen.de/mirrors/Mageia/',
- 'ftp://ftp.uni-erlangen.de/mirrors/Mageia/'
- ),
- 'Esslingen' => array(
- 'http://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia/',
- 'ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia/'
- )
- ),
- 'France' => array(
- 'Paris' => array(
- 'http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/',
- 'ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/'
- )
- ),
- 'Ελλάδα' => array(
- 'Ηράκλειον' => array(
- 'http://ftp.cc.uoc.gr/mirrors/linux/mageia',
- 'ftp://ftp.cc.uoc.gr/mirrors/linux/mageia'
- )
- ),
- 'Schweitz' => array(
- 'Geneva' => array(
- 'http://mageia.unige.ch/mirror/'
- ),
- 'Lucern' => array(
- 'ftp://ftp.LinuxCabal.org/pub/mirrors/Mageia/'
- )
- ),
- 'Nouvelle Calédonie' => array(
- 'Nouméa' => array(
- 'http://mageia.nautile.nc/mageia/'
- )
- ),
- 'USA' => array(
- 'Durham' => array(
- 'ftp://distro.ibiblio.org/pub/linux/distributions/mageia/',
- 'http://distro.ibiblio.org/pub/linux/distributions/mageia/'
- )
- )
-);
-
-// update this list
-$headers = array(
- 'en' => array('Location', 'Protocol', 'Server'),
- 'de' => array('Ort', 'Protokoll', 'Server'),
- 'el' => array('Τοποθεσία', 'Πρωτόκολλο', 'Εξυπηρετητής'),
- 'et' => array('Asukoht', 'Protokoll', 'Server'),
- 'fr' => array('Emplacement', 'Protocole', 'Serveur'),
- 'it' => array('Posizione', 'Protocollo', 'Server'),
- 'pl' => array('Położenie', 'Protokół', 'Serwer'),
- 'pt' => array('Localização', 'Protocolo', 'Servidor'),
- 'ro' => array('Locație', 'Protocol', 'Server'),
- 'ru' => array('Расположение', 'Протокол', 'Сервер'),
- 'tr' => array('Yer', 'Protokol', 'Sunucu'),
- 'zh-tw' => array('位置', '協定', '伺服器'),
-
-);
-$hl = array_key_exists($locale, $headers) ? $locale : 'en';
-
-$s = '';
-foreach ($mirrors as $country => $cities):
- $s_cities = '';
- $rowspan = 0;
- foreach ($cities as $city => $servers):
- $s_mirrors = '';
- foreach ($servers as $url):
- $pu = parse_url($url);
- $s_mirrors .= sprintf('<td>%s</td><td><a href="%s%s">%s</a></td></tr>',
- strtoupper($pu['scheme']),
- $url, 'iso/cauldron/', $pu['host']);
- endforeach;
- $s_cities .= sprintf('<td class="city" rowspan="%d">%s</td>',
- count($servers), $city) . $s_mirrors;
-
- $rowspan += count($servers);
- endforeach;
-
- $s .= sprintf('<tr><td class="country" rowspan="%d">%s</td>',
- $rowspan, $country) . $s_cities;
-endforeach;
-
-$th = array('<thead>', '<tr>',
- sprintf('<th colspan="2">%s</th><th>%s</th><th>%s</th>',
- $headers[$hl][0],
- $headers[$hl][1],
- $headers[$hl][2]),
- '</tr>', '</thead>');
-
-echo '<br /><table id="dl-table">', implode($th), '<tbody>';
-echo $s;
-echo '</tbody></table>';
-