Page 1 of 1

Redirection to NYT?

Posted: Sun Aug 06, 2006 2:31 pm
by LiveFree
Hello All,

With this code:

Code: Select all

if (!defined('IN_TW')) die ('You Cannot Access this File Directly!');
	$name = stripslashes($_GET['name']);
	
		if (isset($name)){
	if ($config['lock_modules']){
		if ($name != TW_MODULE_DIR."Profile" && !$userdata['session_logged']) redirect(TW_TOP_DIR.'/index.php', $config['server_protocall'], 0);   
	}
	
	if (!is_dir($name)) redirect(TW_TOP_DIR.'/index.php', $config['server_protocall'], 0);
	
	if (file_exists($name . 'case.php')) require(TW_MODULE_DIR.$name.'/case.php');
	   else
	die('Case File does not Exist');

		}else{
		require(TW_MODULE_DIR.'News/case.php') OR DIE('Could Not Include News Case File!');
}
When I go to my site, I get redirected to the NEW YORK TIMES website.

Has my computer been infected with a virus already? Is there a Linux equiv. of a hosts file?

Posted: Sun Aug 06, 2006 6:45 pm
by Ambush Commander
This is obviously not the entire piece of code, although it probably is a file. Are you accessing the file or the index of the actual website? What software are you using?

Posted: Sun Aug 06, 2006 7:33 pm
by RobertGonzalez
Is this the part...

Code: Select all

redirect(TW_TOP_DIR.'/index.php', $config['server_protocall'], 0);
That is redirecting you?