$item) if(!is_array($_POST[$key])) $_POST[$key] = htmlentities(strip_tags($item)); if(count($_GET)) foreach($_GET as $key => $item) $_GET[$key] = htmlentities(strip_tags($item)); //if (!isset($_SERVER["SERVER_NAME"])) { // header("Location: http://".$_SERVER["SERVER_NAME"]); // exit; //} elseif ($_SERVER["SERVER_NAME"] != 'www.server-wissen.de') { // header("Location: http://".$_SERVER["SERVER_NAME"]); // exit; //} if (isset($_SERVER["REQUEST_URI"])) { $_link = explode('/', $_SERVER["REQUEST_URI"]); //echo '
'; print_r($_link); echo '
'; foreach($_link as $id => $part) if ($part == 'question') $questpos = $id; if (isset($_link[($questpos+1)])) $category = $_link[($questpos+1)]; else $category = 'main'; if (isset($_link[($questpos+2)])) $question = $_link[($questpos+2)]; else $question = ''; if (isset($_link[($questpos+3)])) $page = $_link[($questpos+3)]; else $page = 1; if (!$category) $category = 'main'; if (!$question) $question = 'none'; } $Server = 'http://www.server-wissen.de/question'; $Static = 'http://www.server-wissen.de/wp-content/themes/server-wissen/images/question'; $root = dirname(__FILE__); include $root.'/Lib/db.php'; include $root.'/Lib/exec.php'; ?>