"; echo ""; echo "Testing 123"; echo ""; echo ""; echo "

Nothing to see here

"; echo "

This page is purely for testing purposes
"; echo "
Have a nice day :)

"; echo ""; echo ""; } $tests = array ( "cookie" => test_cookie, "rename" => test_rename, "gzip" => test_gzip_decoding, "redirect" => test_redirect ); if (isset($_SERVER["HTTP_USER_AGENT"]) && strpos($_SERVER["HTTP_USER_AGENT"], "Deluge") !== false) { if (isset($_REQUEST["test"])) { $test = $_REQUEST["test"]; if (isset($tests[$test])) { $tests[$test](); } else { header("Content-Type: text/plain"); echo "Unknown test: ".$test; } } else { header("Content-Type: text/plain"); echo "Hello ".$_SERVER["HTTP_USER_AGENT"]; } } else { print_message(); } ?>