} foreach ($_GET as $key => $value) { $_GET[$key] = strip_tags($value); } if (isset($_GET['bp'])) { $_GET['bp'] = intval($_GET['bp']); } if (isset($_GET['pagefrom'])) { $_GET['pagefrom'] = intval($_GET['pagefrom']); } if (isset($_POST['pagefrom'])) { $_POST['pagefrom'] = intval($_POST['pagefrom']); } if (BLOGS_CLOSED == true && $_GET['tr']) { require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/commune.php"; $commune_theme = commune::getCommunePostByThreadID(intval($_GET['tr'])); $http_query = ""; if (isset($_GET['openlevel'])) { $comment_id = commune::getCommuneMessageByBlogID(intval($_GET['openlevel'])); if ($comment_id) { $http_query = "#c_{$comment_id}"; } } $url_redirect = getFriendlyUrl('commune', $commune_theme); if (trim($url_redirect) == "") { $url_redirect = "/404.php"; } else { $url_redirect = $url_redirect . $http_query; } header("Location: " . $url_redirect); exit;