error_reporting(0); require("/home/mibbit/include/accesssearchdb.inc.php"); $PAGE_ID = "home"; $NEED_SEARCH = false; include "ads.inc.php"; include "utils.inc.php"; // Do the insert if needed... if (isset($_POST["a"]) && strcmp($_POST["a"], "add")==0) { // Do the insert here $net_name = $_POST["netname"]; $net_website = $_POST["netwebsite"]; $net_email = $_POST["netemail"]; $net_server = $_POST["netserver"]; $net_description = $_POST["netdescription"]; $net_webirc = $_POST["netwebirc"]; $net_publicmain = $_POST["netpublicmain"]; $net_public = $_POST["netpublic"]; if (!isset($net_name) || strcmp($net_name, "")==0) { $message = "You must fill out the network name! Try again."; } else { mysql_query("INSERT INTO pending_ircNetworks (netName, detail_website, email, serverConnect, detail_description, usewebirc, webircpass, ispublic_mainclient, ispublic) " ." VALUES (\"".mysql_real_escape_string($net_name)."\"" .", \"".mysql_real_escape_string($net_website)."\"" .", \"".mysql_real_escape_string($net_email)."\"" .", \"".mysql_real_escape_string($net_server)."\"" .", \"".mysql_real_escape_string($net_description)."\"" .", ".(strcmp($net_webirc, "")==0?"0":"1") .", \"".mysql_real_escape_string($net_webirc)."\"" .", ".(strcmp($net_publicmain, "1")==0?"1":"0") .", ".(strcmp($net_public, "1")==0?"1":"0") .")", $sql); $message = "Thanks for submitting your details. Please allow 24 hours for addition."; } } ?>