Forum is spitting out PHP code

Status
Not open for further replies.

RampantAndroid

Diamond Member
Jun 27, 2004
6,591
3
81
http://forums.anandtech.com/messageview.aspx

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");

?>
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,836
4,815
75
It probably should emit HTTP status code:

410-gone-600x480.jpg


But I guess you have bigger things to work on.
 

Dude111

Golden Member
Jan 19, 2010
1,497
7
81
Its amazing that fusetalk bit IS STILL THERE!! (When the site was changed to VBB,all of it should have been deleted (You would think))
 
Status
Not open for further replies.