GIF89a;
Direktori : /home/serb/www/ |
Current File : /home/serb/www/active222.php |
<? session_start(); include("lib/globals.php"); include("lib/commonapprove.php"); include("lib/functions.php"); ?> <? include "includes/header_top.php";?> <script type="text/javascript"> <!-- if (screen.width <= 800) { window.location = "http://m.escortservice.org/active.php?id=<?=$_GET['id']?>"; } //--> </script> <script language="javascript"> function validate() { if((document.f2.acctype[0].checked == false) &&(document.f2.acctype[1].checked == false) && (document.f2.acctype[2].checked == false) && (document.f2.acctype[3].checked == false) && (document.f2.acctype[4].checked == false)) { alert("Select Your Account Type"); return false; } } </script> <body> <? include "includes/header.php";?> <div class="main_bg"> <div style="height:32px;"></div> <div style="width:1000px; margin:0 auto;"> <div class="statedetails"> <div class="stdtls_header"> Congratulations... </div> <div class="stdtls_midder"> <div style="height:10px;"></div> <div style=" width:950px; margin:0 auto; font-family:'Open Sans',sans-serif; font-size:14px; color:#000;"> <? if($_GET['id']) { $sql="SELECT * FROM user_info WHERE userid='".$_GET['id']."'"; $res=execute_query($sql); $num=mysql_num_rows($res); $row=mysql_fetch_array($res); if($num>0) { if($row['status']=='u') { $upd="UPDATE user_info SET status='a' WHERE userid='".$_GET['id']."'"; execute_query($upd); $sql_postid="SELECT * FROM escort_details where user_id='".$_GET['id']."'"; $res_postid=execute_query($sql_postid); $row_postid=mysql_fetch_array($res_postid); $desp=$row_postid['description']; $pid=$row_postid['id']; $sql_approveemail="SELECT * FROM approval_email"; $res_approveemail=execute_query($sql_approveemail); $row_approveemail=mysql_fetch_array($res_approveemail); //$to = $row_approveemail['emailid']; $to = "subhrajyoti.mca11@gmail.com"; $subject="New Account Approval"; /*$body="There is a new post on escortservice, awaiting approval.\r\n Account details:\r\n\r\nUsername:".$row_postid['nickname']."\r\nUserId:".$pid."\r\n\r\n".$desp."\r\n\r\n click the link below:http://escortservice.org/approve-post.php?id=".$pid; $headers = 'From: escortservice<support@escortservice.org>' . "\r\n" . 'Reply-To: support@escortservice.org' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $body, $headers);*/ $body="<html> <head> <title>New Account Approval needed for Escortservice</title> </head> <body> <table style='padding:10px; color:#000;'> <tr><th>There is a new post on escortservice, awaiting approval.</th></tr> <tr><td><br/></td></tr> <tr> <td>Your account has been successfully created.</td> </tr> <tr> <td>Below You will find your account details</td> </tr> <tr> <td>Username:".$row_postid['nickname']."</td> </tr> <tr> <td>UserId:".$row_postid['id']."</td> </tr> <tr> <td>Description:".$desp."</td> </tr> <tr> <td>click the link below:<a href='http://escortservice.org/approve-post.php?id=$pid' style='color:#AD0066;'>Click Here</a></td> </tr> </table> </body> </html>"; // To send HTML mail, the Content-type header must be set // $headers = 'MIME-Version: 1.0' . "\r\n"; // $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // // Additional headers // $headers .= 'From: escortservice <support@escortservice.org>' . "\r\n"; sendEmail($to, $subject, $body); // mail($to, $subject, $body, $headers); $_SESSION['userlogin']="true"; $_SESSION['userid']=$row['userid']; $_SESSION['user']=$row['username']; $_SESSION['countryname']=$row['user_country'] ?> <p style="margin-left:15px; color:#AD0066; text-align:center; font-family: 'Roboto Condensed', sans-serif; font-size:15px; font-weight:bold;">Your account has been activated successfully.</p> <? } else { $_SESSION['countryname']='US'; ?> <p style="margin-left:15px; color:#AD0066; text-align:center; font-size:14px; font-weight:bold;">Your account is already activated. Please LOGIN with your username and password.</p> <? } } else { ?> <p style="margin-left:15px; color:#AD0066; text-align:center; font-size:14px; font-weight:bold;">Invalid activation key.</p> <? } } else { ?> <script language="javascript"> location.href="index.php"; </script> <? } ?> <br/><br/> </div> </div> <div class="stdtls_footer"></div> </div> <br class="spacer" /> </div> </div> <? include "includes/footer.php";?>