hjkhhrterwefdgdfgdfgdfgdgdfgdfgdsvstertrt
bnmbertsdfsdfgdfgdfgfffdgdfgdfgrtdfg
/
home
/
u652258970
/
domains
/
drgreal.in
/
public_html
/
Upload FileeE
HOME
<?php session_start(); include_once 'config.php'; if (isset($_SESSION['login_username'])) { echo("<script language='javascript'>window.location.href='propertyadd.php'</script>"); exit;}?> <body> <?php include "header.php"; ?><div class="banner about"> <div class="container"> <div class="col-md-6"> <h3>Register</h3> </div> </div> </div> <div class="producs about_bg reg"> <div class="container"> <div class="col-md-12 col-sm-12"> <div class="contact_form"> <h2></h2> <?php if(isset($_POST['btn-signup'])) { $name = mysql_real_escape_string($_POST['name']); $email = mysql_real_escape_string($_POST['email']); $password = md5(mysql_real_escape_string($_POST['password'])); $pass = $_POST['password']; $query = "select * from register where email='$email'"; $regemail = mysql_query($query); $reg_email = mysql_fetch_array($regemail); if(!empty($reg_email['email'])) { if($email ==$reg_email['email']) { $message= "Already exist this email id"; } } else { if(mysql_query("INSERT INTO register(name,email,password) VALUES('$name','$email','$password')")) { $message1 = "Successfully Registered..."; $params = array(); $params['User'] =USER; $params['passwd'] = PASSWORD; $params['sid'] = SID; $params['mtype'] = MTYPE; $params['mobilenumber'] = MOBILE; $params['message'] = 'Dear Admin, User "'.$name.'" has been registered '; //echo "<pre>"; //print_r($params);die(); $res = get('http://login.chennaismsgateway.com/WebServiceSMS.aspx', $params); require 'PHPMailer-master/PHPMailerAutoload.php'; $from=$result['set_email'];//echo $from;die; //Create a new PHPMailer instance $mail = new PHPMailer; //Set who the message is to be sent from $mail->setFrom($from, 'Dr G RealEstates'); //Set an alternative reply-to address $mail->addReplyTo($from, 'Dr G RealEstates'); //Set who the message is to be sent to $mail->addAddress( $email, $name); // to address //Set the subject line $mail->Subject = 'Dr G RealEstates'; //Read an HTML message body from an external file, convert referenced images to embedded, //convert HTML into a basic plain-text alternative body $url = SITE_URL.'/activate.php?email='.$email.'&password='.$password; //echo $url;die(); $body = "<h2>Welcome to Dr G RealEstates</h2>"; $body .= "<h3>Name:' $name'</h3>"; $body .= "<h3>Password:' $pass'</h3>"; $body .= "Your account activation link is <a href=".$url.">".$url."</a>"; $body .= "<p>You have successfully register.Thank You </p>"; $mail->Body = $body; $mail->IsHTML(true); //send the message, check for errors if ($mail->send()) { $mail = "Message sent!"; } } } } ?> <center> <div style="color:red;"><?php echo $message;?></div> <div style="color:#22b14c;"><?php echo $message1;?></div> <div style="color:#22b14c;"><?php echo $mail;?></div> <h3 style="font-size:20px; color:#0b622f; font-weight:bold;">Member Register </h3> <form method="post" action=""> <table align="center" width="30%" border="0"> <tr> <td><input type="text" name="name" placeholder="Name" required /></td> </tr> <tr> <td><input type="email" name="email" placeholder="Your Email" required /></td> </tr> <tr> <td><input type="password" name="password" placeholder="Your Password" required /></td> </tr> <tr> <td><button type="submit" name="btn-signup">Register</button></td> </tr> <tr> <td class="sign">Already have an account?<a href="login.php"> <strong>Sign in</strong></a></td> </tr> </table> </form> </center> </div> </div> </div> </div> <?php include "footer.php"; ?> <script src="js/jquery.min.js" type="text/javascript"></script> <script src="js/formjs.js" type="text/javascript"></script> <script src="js/jquery.validate.js" type="text/javascript"></script> <style> td.sign { padding: 14px 0 0 0; } </style> </body> </html>