- Jun 27, 2004
- 6,591
- 3
- 81
http://forums.anandtech.com/messageview.aspx
When loading that, I get:
When loading that, I get:
PHP:
<?php
require("config.redirect.php");
if (!array_key_exists('threadid',$_REQUEST)) {
@header("Location:index.php");
exit();
}
$id = $_REQUEST['threadid'];
if (is_numeric($id) && $id > 0) {
$db = mysql_connect($dbserver,$dbuser,$dbpw);
if ($db) {
if (mysql_select_db($dbname)) {
$result = mysql_fetch_array(mysql_query("SELECT threadid FROM vb_thread WHERE importthreadid = '$id'"));
if ($result) {
$pagequery = "";
if (array_key_exists('STARTPAGE',$_REQUEST)) {
$page = $_REQUEST['STARTPAGE'];
$pagequery = "";
if (is_numeric($page) && $page > 0) {
$pagequery = "&page=".$page;
}
}
@header("Location:showthread.php?t=" . $result["threadid"] . $pagequery);
exit();
}
}
}
}
@header("Location:index.php");
?>
