Date:
08.07.2012 - 00:24:36
Author:
Rewrite:
Type here:
$load_id = 0; $show_types = array('normal', 'text', 'download'); $show_type = 'normal'; $params = explode('/', trim(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), '/')); if(isset($params[0])) { $load_id = (int) $params[0]; if(isset($params[1])) { if(in_array($params[1], $show_types)) { $show_type = $params[1]; } else { header('Location: http://paste.ots.me/' . $load_id); } } }