diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-03-06 01:45:59 -0800 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-03-06 01:45:59 -0800 |
commit | 81596179bcfc00b7428e238ab619875e7accb52a (patch) | |
tree | 0bcb7b784ff98b00f82758987955212692059c5f /index.php | |
parent | 038cfabc5dec9080befeed62d8d1d6ae58cd795b (diff) | |
download | pathery-81596179bcfc00b7428e238ab619875e7accb52a.tar.xz |
Chat Pretty Redirect
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -99,8 +99,15 @@ switch ($request) { break;
case "redirect":
- $to = $_GET['to'];
- DoRedirect("<strong>THIS URL COULD BE UNSAFE! Please confirm!</strong><br/>", $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":
|