[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

sf redirector



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

Seems like garr is down, and filippo already tried to fix it 
by pointing the redirector to kent. But as one can see, it still doesn't work.

Can anyone please replace:

header("Location: http://kent.dl.sourceforge.net/sourceforge/$project";);

with:

$uri = null;
// spread the load to not to overload the mirrors and get them down
switch (mt_rand(0, 1)) {
    case 0:
        // this is kent
        $uri = 'http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/'
        . substr($project, 0, 1) . '/' . substr($project, 0, 2) . "/$project";
        break;
    case 1:
        $uri = "http://heanet.dl.sourceforge.net/sourceforge/$project";;
        break;
}
header('Location: ' . $uri);


(hey, yes! heanet is back! :)


Sincerely,
- -- 
Atomo64 - Raphael

Please avoid sending me Word, PowerPoint or Excel attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIUHR5Yy49rUbZzloRAuW6AJ0aLWMkYVdBCSCjaAyE5cHp03c2vgCeJuQs
uLCCAzyPMBcDYitmlmu6z4w=
=j01j
-----END PGP SIGNATURE-----


Reply to: