Project

General

Profile

Bug #15672 ยป random-mirror-em.diff

Administrator Admin, 2006-02-19 14:37

View differences:

typo3/mod/tools/em/index.php 19 Feb 2006 13:37:52 -0000
if($this->MOD_SETTINGS['selectedMirror']=='') {
srand((float) microtime() * 10000000); // not needed after PHP 4.2.0...
$rand = array_rand($mirrors);
$url = 'http://'.$mirrors[$rand[0]]['host'].$mirrors[$rand[0]]['path'];
$url = 'http://'.$mirrors[$rand]['host'].$mirrors[$rand]['path'];
}
else {
$url = 'http://'.$mirrors[$this->MOD_SETTINGS['selectedMirror']]['host'].$mirrors[$this->MOD_SETTINGS['selectedMirror']]['path'];
    (1-1/1)