session_start();
$errormsg='';
if($_POST["submit"])
{
$lValidateSign=$_POST["captcha_text"];
if($_SESSION["validate_sign_session"] <> $lValidateSign)
{
$errormsg="
Please Enter Verification Code
";
}
}
?>
Submit Site, Free Website Submission, Surfindia Site Submission
include("./includes/si-header-finance.html");
require("admin/inc.php");
if($_REQUEST['submit'])
{
$action = $_REQUEST['action'];
$Name=$_REQUEST['title'];
$Url=$_REQUEST['url'];
$Suggestion=$_REQUEST['suggestion'];
$Desc=$_REQUEST['desc'];
$Email=$_REQUEST['email'];
//$IP_Address=$_SERVER["REMOTE_ADDR"];
$IP_Address=getRemoteIp();
$sql=q("select list_url from $ads_tbl where list_url='$Url'");
$sqlval=mysql_num_rows($sql);
if($sqlval < 1)
{
q("INSERT INTO $ads_tbl (list_name, list_description, list_suggestion, list_url, list_email_id, list_display_flag ,list_ip_address,list_posted) VALUES ('$Name','$Desc','$Suggestion','$Url','$Email',0,'$IP_Address','".time()."') ");
// for sending the mail..
$IP_Address=$_SERVER["REMOTE_ADDR"];
$date1 = date("Y-m-d H:i:s");
$head=$_POST['heading'];
$body.="A new list is added on surfindia.com.\n The list information is given below...\n";
$body.="\nTitle : ".$_POST['title'];
$body.="\nUrl : ".$_POST['url'];
$body.="\nEmail Id : ".$_POST['email'];
$body.="\nDescription : ";
$desc=$_POST['desc'];
$desc=str_replace("\\","",$desc);
$body.=$desc;
$comments=str_replace("\\","",$_POST['suggestion']);
$body.="\nSuggestion : ".$comments;
$body.="\nIP Address : ".$IP_Address."\n";
$from = "From:".$email;
$subject="A New Suggest a site mail";
$body.="\n\nRegards,\nSurfindia Team";
mail('info@surfindia.com', ''.$subject. '', $body, 'Content-Type: text/plain; charset="iso-8859-15"' . "\n" . 'Content-Transfer-Encoding: 8bit' . "\n" . 'From: ' . 'info@surfindia.com');
$msg = "Thank You For Submission!
Your website will be be visible in a week after due validation.";
}
else
{
$msg = " URL All Ready Exists !!!";
}
}
$txt='';
?>
Suggest a website
echo $msg;?>
echo $txt;?>
include_once("footer1.html");
?>