XeonGX
April 9th, 2007, 11:39
Hello all,
I've moved my site to a new server.
Everything used to work perfectly,
But after I uploaded my files into the new hosting,
my site is not loading anymore.
Can anyone help?
http://saiyan-raise.com/index.php
Firefox says "This problem can sometimes be caused by disabling or refusing to accept cookies."
The php code in index.php is
<?php
$file_title = "$sitetitle Home";
if ( file_exists ( "".$$ident.".php" ) && isset ( $_GET[$ident] ) && !empty ( $_GET[$ident] ) ) {
include ( "".$$ident.".php" );
$delete_oldguests = mysql_query ( "DELETE FROM guests WHERE UNIX_TIMESTAMP(now()) - last_activity_time > 300" );
if ( isset ( $user_info[user_id] ) ) {
$result_writeonline = mysql_query ( "UPDATE users SET last_activity_time=$timenow, last_activity_title='$file_title', last_activity_url='$current_location', ip_address='$_SERVER[REMOTE_ADDR]' WHERE user_id='$user_info[user_id]'" );
} else {
$result_guestsonline = mysql_query ( "SELECT ip_address FROM guests WHERE ip_address='$_SERVER[REMOTE_ADDR]'" );
if ( mysql_num_rows ( $result_guestsonline ) > 0 ) {
$update_guestsonline = mysql_query ( "UPDATE guests SET ip_address='$_SERVER[REMOTE_ADDR]', last_activity_time=$timenow, last_activity_title='$file_title', last_activity_url='$current_location'" );
} else {
$insert_guestsonline = mysql_query ( "INSERT INTO guests ( ip_address, last_activity_time, last_activity_title, last_activity_url ) VALUES ( '$_SERVER[REMOTE_ADDR]', $timenow, '$file_title', '$current_location' )" );
}
}
if ( $file_availability == 2 && $user_info[type] < 1 ) {
echo "This page is limited to members only. Register or Login to view this page";
} else {
if ( !ereg ( "$script_folder/", $GLOBALS[QUERY_STRING] ) ) {
echo html_entity_decode ( $file_content, ENT_QUOTES );
}
}
} else {
header ( "Location: $site_path/news" );
exit();
}
?>
I've moved my site to a new server.
Everything used to work perfectly,
But after I uploaded my files into the new hosting,
my site is not loading anymore.
Can anyone help?
http://saiyan-raise.com/index.php
Firefox says "This problem can sometimes be caused by disabling or refusing to accept cookies."
The php code in index.php is
<?php
$file_title = "$sitetitle Home";
if ( file_exists ( "".$$ident.".php" ) && isset ( $_GET[$ident] ) && !empty ( $_GET[$ident] ) ) {
include ( "".$$ident.".php" );
$delete_oldguests = mysql_query ( "DELETE FROM guests WHERE UNIX_TIMESTAMP(now()) - last_activity_time > 300" );
if ( isset ( $user_info[user_id] ) ) {
$result_writeonline = mysql_query ( "UPDATE users SET last_activity_time=$timenow, last_activity_title='$file_title', last_activity_url='$current_location', ip_address='$_SERVER[REMOTE_ADDR]' WHERE user_id='$user_info[user_id]'" );
} else {
$result_guestsonline = mysql_query ( "SELECT ip_address FROM guests WHERE ip_address='$_SERVER[REMOTE_ADDR]'" );
if ( mysql_num_rows ( $result_guestsonline ) > 0 ) {
$update_guestsonline = mysql_query ( "UPDATE guests SET ip_address='$_SERVER[REMOTE_ADDR]', last_activity_time=$timenow, last_activity_title='$file_title', last_activity_url='$current_location'" );
} else {
$insert_guestsonline = mysql_query ( "INSERT INTO guests ( ip_address, last_activity_time, last_activity_title, last_activity_url ) VALUES ( '$_SERVER[REMOTE_ADDR]', $timenow, '$file_title', '$current_location' )" );
}
}
if ( $file_availability == 2 && $user_info[type] < 1 ) {
echo "This page is limited to members only. Register or Login to view this page";
} else {
if ( !ereg ( "$script_folder/", $GLOBALS[QUERY_STRING] ) ) {
echo html_entity_decode ( $file_content, ENT_QUOTES );
}
}
} else {
header ( "Location: $site_path/news" );
exit();
}
?>