$qtype = 0; // DO NOT EDIT BELOW THIS!!! error_reporting(0); if (isset($_GET['URL'])) { // --------------------------------- // URL Redirect for CP and Links in Comments // --------------------------------- $_GET['URL'] = str_replace(array("\r", "\r\n", "\n", '%3A','%3a','%2F','%2f'), array('', '', '', ':', ':', '/', '/'), $_GET['URL']); if (substr($_GET['URL'], 0, 4) != "http" AND ! ereg('://', $_GET['URL'])) $_GET['URL'] = "http://".$_GET['URL']; $_GET['URL'] = str_replace(array('"', "'", ')', '(', ';', '}', '{'), '', strip_tags($_GET['URL'])); $host = ( ! isset($_SERVER['HTTP_HOST'])) ? '' : $_SERVER['HTTP_HOST']; if ( ! isset($_SERVER['HTTP_REFERER']) OR ! stristr($_SERVER['HTTP_REFERER'], $host)) { // Possibly not from our site, so we give the user the option // Of clicking the link or not $str = "\n\nRedirect\n\n". "

To proceed to the URL you have requested, click the link below:

". "

".$_GET['URL']."

\n\n"; } else { $str = "\n\nRedirect\n". ''. "\n\n\n\n"; } exit($str); } $uri = ''; $pathinfo = pathinfo(__FILE__); $ext = ( ! isset($pathinfo['extension'])) ? '.php' : '.'.$pathinfo['extension']; $self = ( ! isset($pathinfo['basename'])) ? 'index'.$ext : $pathinfo['basename']; $path_info = (isset($_SERVER['PATH_INFO'])) ? $_SERVER['PATH_INFO'] : @getenv('PATH_INFO'); $query_str = (isset($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] : @getenv('QUERY_STRING'); switch ($qtype) { case 0 : $uri = ($path_info != '' AND $path_info != "/".$self) ? $path_info : $query_str; break; case 1 : $uri = $path_info; break; case 2 : $uri = $query_str; break; } unset($system_path); unset($config_file); unset($path_info); unset($query_str); unset($qstr); require 'path'.$ext; if ((isset($template_group) AND isset($template)) && $uri != '' && $uri != '/') { if (preg_match("#^\/P\d+\/$#", $uri)) { $qstr = $uri; } else { $template_group = ''; $template = ''; } } if ( ! isset($system_path)) { if (file_exists('install'.$ext)) { header("location: install".$ext); exit; } else { exit("The system does not appear to be installed. Click here to install it."); } } if ( ! ereg("/$", $system_path)) $system_path .= '/'; if ( ! @include($system_path.'core/core.system'.$ext)) { exit("The system path does not appear to be set correctly. Please open your path.php file and correct the path."); } ?>