GIF89a; Mini Shell

Mini Shell

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

<?
session_start();
//include("config.php");
include("lib/globals.php");
include("lib/common.php");
include("lib/functions.php");
$page='login';

?>

<!DOCTYPE html> 
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="height=device-height,width=device-width,initial-scale=1.0,maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>Escort Service-Escorts,Female Escorts,Models,Call Girls,GEF,Companions</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic' rel='stylesheet' type='text/css'>
  <link rel="stylesheet" href="themes/escserve.css" />
  <link rel="stylesheet" href="themes/jquery.mobile.icons.min.css" />
  <link rel="stylesheet" href="jMobile.css" /> 
  <script src="jquery.min.js"></script> 
  <script src="jqueryMobile.js"></script>
</head> 
<body> 
<div data-role="page" id="page" data-theme="d" data-transition="flip">
	<div id="headerTop"></div>    
    <? include "includes/header.php";?>
    <!--<div data-role="content" id="searchboxx">
    	<div data-role="fieldcontain" id="ser" data-iconpos="right">            
            <input type="search" name="search-2" id="search-2" value="" />
        </div>	
    </div>-->
    
	<div data-role="content">
    	<h2 id="loginheadertext">Congratulation....</h2>
         			<? 
                                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.org, 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.org</title>
													</head>
													<body>
													<table style='padding:10px; color:#000;'>
														<tr><th>there is a new post on escortservice.org, awaiting approval.</th></tr>
														<tr><td><br/></td></tr>
														
														<tr>
														  <td>Below You will find 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://m.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";
														
													
													mail($to, $subject, $body, $headers);	
											
											
											
												$_SESSION['userlogin']="true";
												$_SESSION['userid']=$row['userid'];  
												$_SESSION['user']=$row['username'];											
												$_SESSION['countryname']=$row['user_country']
									?>
										<p id="loginalertmsg">Your account has been activated successfully.</p> 
									<?
										}
										else
										{
											$_SESSION['countryname']='US';
										?>
											  <p id="loginalertmsg">Your account is already activated. Please LOGIN with your username and password.</p> 
										<?
											}
									}
									else
									{
									?>
									<p id="loginalertmsg">Invalid activation key.</p> 
									<?
									}
                            }
                            else
                            {
                            ?>
                            <script language="javascript">
                                location.href="index.php";
                            </script>
                            <? } ?> <br/><br/>
                           		
      
            <p class="mc-top-margin-1-5"><a id="ftpassword" href="begin-password-reset.html" data-transition="flip" data-prefetch>Forgot Password?</a></p>
            <div data-role="popup" id="dlg-invalid-credentials" data-dismissible="false" style="max-width:400px;">
                <div role="main" class="ui-content">
                    <h3 class="mc-text-danger">Login Failed</h3>
                    <p>Did you enter the right credentials?</p>
                    <div class="mc-text-center"><a href="#" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn-b mc-top-margin-1-5">OK</a></div>
                </div>
            </div>
        
        
        
	  	
	</div>
     <div data-role="panel" data-display="push" data-position="right" data-theme="d" id="navMenu">
       <? include "includes/right-menubar.php";?>
    </div><!-- /panel -->
	<div data-role="footer" >
    	<div  id="footerTop">
	
        	 <? include "includes/footer.php";?>
           
	</div>
		<div id="footerBottom"><p>Copyright 2015 ESCORTSERVICE.ORG | All Rights reserved.</p></div>
	</div>
</div>
</body>
</html>

./BlackJoker Mini Shell 1.0