<?php
require("class.phpmailer.php"); // path to the PHPMailer class
$email = $_GET['email'];
$code = $_GET['code'];
$code = md5($code);
$user = $_GET['user'];
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Mailer = "smtp";
$mail->Host = "ssl://gator2011.hostgator.com";
$mail->Port = 465;
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->IsHTML(true);
$mail->Username = ""; // SMTP username
$mail->Password = "Victor8109$"; // SMTP password
$mail->AddAddress($email);
$mail->From = "";
$mail->Subject = "Silkcore.net Account Verification";
$mail->Body = "This email was automatically sent by our account verification system.<br /><br />
Thanks for singing up on <b>SilkCore</b>, please follow this link to complete your registration:</b><br />
<b>Link:</b> <a href='http://silkcore.net/?verify=".$code."&user=".$user."'>http://silkcore.net/?verify=$code&user=$user</a><br /><br />
Once you finish teh verification process you will be able to login to our <a href='http://silkcore.net/?topic=manageacc'>Account Management Panel</a> and in-game!<br /><br />
<i>Remember this is an automatic email generated by our account verification system.<br />
Do not answer this email because this inbox is not checked by our staff. You wont get any response.<br />
For contact please write us to <b>.</b></i>";
if(!$mail->Send()) {
echo 'Message was not sent.';
echo 'Mailer error: ' . $mail->ErrorInfo;
} else {
//echo 'Message has been sent.';
}
?>
where i can find register.php ? in website file`s ? can u tell me ?
Since I don't know which site you are using, you have to found that file by yourself. It's in website for sure. Just jump some directories and find it.
if(isset($_POST['register'])) {
if(@strlen($_POST['cusername']) < 3) $msg[] = "The username you set is too short";
if(@strlen($_POST['cusername']) > 16)$msg[] = "The username you set is too long";
if(@strlen($_POST['pass']) < 6) $msg[] = "The password you set is too short";
if(@strlen($_POST['pass']) > 32)$msg[] = "The password you set is too long";
if(@strlen($_POST['secretword']) > 32)$msg[] = "The secret word you set is too long";
if($_POST['pass'] != $_POST['pwd2']) $msg[] = "Both passwords needs to match each other";
if($_POST['email'] != $_POST['repemail']) $msg[] = "Both emails needs to match each other";
if($_POST['secretword'] != $_POST['secretword2']) $msg[] = "Both secret word needs to match each other";
mssql_select_db($dbName1, $dbConn) or die ("Couln't select database $dbName1");
$accountExists = mssql_num_rows(mssql_query("select StrUserID from TB_User where StrUserID='$_POST[cusername]'"));
if($accountExists > 0) $msg[] = 'An account with such UserID already exists.';
$emailExists = mssql_num_rows(mssql_query("select Email from TB_User where Email='$_POST[email]'"));
if($emailExists > 0) $msg[] = 'An account with such email already exists.';
/*echo '<div class="webshop">
<center><div class="finalmsg">
<div style="float:right; padding-top:7px;">
<img src="imgs/layer.png">
</div>
<center>
<h2>congratulations, your account has been made, check your email at</h2>
<h3>'.$_POST['email'].'</h3>
<h2>FOLLOW THE STEPS LISTED ON THE EMAIL THAT WE SENT YOU. ONCE VERIFIED, YOU WILL BE ABLE TO PLAY</h2>
<font style="color:red;font-size:14px">
Check your spam folder if you dont see it in your inbox!
</font>
<div class="itembox" style="margin-top:15px">
<div class="text" style="color:white;font-size:34px">
<i>have fun!</i>
</div>
</div>
</center>
</center></div>
</div>';
*/
echo '<div class="webshop">
<center><div class="finalmsg">
<div style="float:right; padding-top:7px;">
<img src="imgs/layer.png">
</div>
<center>
<h2>congratulations, your account has been made<br />remember you can recover your account with your email</h2>
<h3>'.$_POST['email'].'</h3>
<div class="terms">
<b>Your passwords and account security</b><br /><br />
1.1 You agree and understand that you are responsible for maintaining the confidentiality of passwords associated with any account you use to access any of our services.<br /><br />
1.2 Accordingly, you agree that you will be solely responsible to SilkCore for all activities that occur under your account.<br /><br />
1.3 You agree that you will not engage in any activity that interferes with or disrupts the services we provided.<br /><br />
1.4 You agree to not promote or use any third party material, which could change gameplay or effect the environment to other users.
This could include automated bots or scripts, in doing so, your account could be punished from accessing any services.
</div>
</div>';
}
?>
Place it under WEB_DIR/pages/createacc.php. If I helped, please press Thanks button