UT99 Multi-Redirect Checker V1.0 {OCA}INSANEroba

Originally Posted by PizzaMan;
http://www.unrealadmin.org/forums/showthread.php?p=164834#post164834

This script allows the Admin of a server to utilize multiple redirect servers for clients to download files from. If the file is not on sources[1] then it will proceed to check the next sources[x] in sequence and retrieve files from there.

To add redirect URL's to script append to ;

$sources[0] = array('http://uz.gameservers.net','H');
$sources[1] = array('http://uz.ut-files.com','H');
$sources[2] = array('http://www.snakeservers-redirect.net','H');
$sources[3] = array('http://www.redirect_Server.com','X'); 'X' denotes [L]ocal, [H]ttp or [F]tp

for [F]tp un-comment ;
// $sources[X] = array('ftp://username:password@ftp.server.com/path_to_remote_dir','F');

and make changes as neccassary.

1. Make Changes above
2. Upload MultiRedir.php to your webserver
3. You may need to make a few changes to your .htaccess file below;
4. Make Changes to Unrealtournament.ini below;

UnrealTournament.ini;
RedirectToURL=http://www.redirect_server.com/ 

^Actual Path to MultiRedir Script also ending '/' is a must

You will also need a .htaccess file:

.htaccess

#---start---
Options +FollowSymlinks All -Indexes
order deny,allow
RewriteEngine on 
RewriteRule  ^(.*)\.uz$ MultiRedir.php?$1 [PT]
#----end----

^ create a file in the new directory named .htaccess
* copy and paste the code between the "#---start---" & "#---end---"
and save to the same Directory as the MultiRedir.php file. 

as example ;

www.myhost.com/ut
	|- MultiRedir.php
	|- .htaccess

Small writeup by BFM.

Note: Does not yet have a fix for MisMatched files :\

Gtr33tz/Thanks , {OCA}INSANEroba, PizzaMan, www.unrealadmin.org





