require("include/top.php");
if ($SESSION_LEVEL=='administrator' || $SESSION_LEVEL=='moderator' || $SESSION_LEVEL=='gloperator'):
if ($_GET["derivative"] && $_GET["original"])
{
$query = "select * FROM affiliatedprods WHERE derivative=".$_GET["derivative"]." and original=".$_GET["original"];
$o = mysql_fetch_object(mysql_query($query));
if ($o->type) {
$query = "DELETE FROM affiliatedprods WHERE derivative=".$_GET["derivative"]." and original=".$_GET["original"];
mysql_query($query);
$query = "INSERT INTO affiliatedprods SET ";
$query.= "derivative='".$_GET["original"]."', ";
$query.= "original='".$_GET["derivative"]."', ";
$query.= "type='".$o->type."'";
mysql_query($query);
}
print("
prodaffil swapped
hope you didn't fuck up!
");
}
?>
dude, that's a dangerous page...
endif; ?>