From 81596179bcfc00b7428e238ab619875e7accb52a Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Wed, 6 Mar 2013 01:45:59 -0800 Subject: Chat Pretty Redirect --- index.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index f909306..49793a0 100644 --- a/index.php +++ b/index.php @@ -99,8 +99,15 @@ switch ($request) { break; case "redirect": - $to = $_GET['to']; - DoRedirect("THIS URL COULD BE UNSAFE! Please confirm!
", $to, $duration = "8"); + //Whitelist things? + if (true) { + require('redirect.php'); + } else { + //Redirect instantly: + $to = $_GET['to']; + DoRedirect(NULL, $to, $duration = "0"); + } + exit; break; case "hometutorial": -- cgit v1.2.3