<head><title>Processing Function - Please Wait</title>
<?php
$db = mysql_connect("localhost","**","***");
mysql_select_db("rpggate_uk_db",$db);
include('header.php');
?>
</head>
<body bgcolor="#000000">
<?php
$user = $GET['user'];
$date = date('m/d/y');
$news = $GET['news'];
if ($user == "nuclearfusion") {
$email = "nuclearfusion2000@yahoo.com";
} elseif ($user == "fithlinex") {
$email = "fithlinex@yahoo.com";
}
if ($_GET['pass'] == "*******") {
mysql_query("update rpg_news set news_id='4' where news_id=3");
mysql_query("update rpg_news set news_id='3' where news_id=2");
mysql_query("update rpg_news set news_id='2' where news_id=1");
mysql_query("update rpg_news set news_id='1' where news_id=4");
mysql_query("update rpg_news set user='$user' where news_id=1");
mysql_query("update rpg_news set email='$email' where news_id=1");
mysql_query("update rpg_news set time='$date' where news_id=1");
mysql_query("update rpg_news set news='$news' where news_id=1");
mysql_close();
print('Message sent:');
print('<br>user:');
print($user);
print('<br>email:');
print($email);
print('<br>date:');
print($date);
print('<br>news:');
print($news);
print('<p><a href="index.php">Go back</a>
} else {
print('Posting with out authorization? Bad. IP and time logged.');
$time = date("H/:i");
$ip = $REMOTE_ADDR
?>Time: <?php echo $time ?>
<br>IP: <?php echo $ip ?>
<?php
mysql_query("insert into violators (time, ip) values ($time, $ip);
}
?>
</body>
I get a parse error. Funny thing is, it's on the second to last line there, the ?> tag. Strange. Can anyone help?