/*
+------------------------------------------------------------+
| |
| Arcadwy Arcade Script |
| ======================================== |
| |
| by Arcadwy |
| (c) 2009 Arcadwy Web Development |
| http://www.arcadwy.com |
| Email : support@arcadwy.com |
| Completed on jan , 2009 |
| |
| ======================================== |
| |
+------------------------------------------------------------+
*/
include "./init.php";
$header_ad = top_ad();
$left_ad = left_ad();
$right_ad = right_ad();
$links = get_links(10);
$title = "Links";
$sscript = "";
$error = "";
$head_message = "
$header_ad";
if($member) {
if($member['user_id'] == 1) $admin_link = "» Admin Panel
";
else
$admin_link = "";
$temp = template("left_logged");
eval("\$user_info = \"$temp\";");
} else {
$temp = template("left_login");
eval("\$user_info = \"$temp\";");
}
if(!isset($_GET['action'])) {
$temp = template("add_link");
eval("\$templateVar = \"$temp\";");
}
else {
if($_GET['action'] == 1) {
check_magic_quotes();
$_POST['link_text'] = addslashes(trim($_POST['link_text']));
$_POST['link_url'] = addslashes(trim($_POST['link_url']));
if(isset($_POST['link_reci_url'])) {
$reci = addslashes(trim($_POST['link_reci_url']));
} else $reci = "";
// lets add to database
mysql_query("INSERT INTO {$prefix}links (link_text, link_url, link_reci_url) VALUES ('$_POST[link_text]','$_POST[link_url]','$reci')") or report();
$templateVar = "Thank You !
We have received your link submission. It will be visible once it is approved by the admin.";
}
}
$center = $templateVar;
$temp = template("header");
eval("\$header = \"$temp\";");
$cats = get_cats();
$stats = get_stats();
$temp = template("left");
eval("\$left = \"$temp\";");
$temp = template("footer");
eval("\$footer = \"$temp\";");
include "./header.php";
mysql_close();
?>