GIF89a;
Direktori : /home/serb/www/ |
Current File : /home/serb/www/delete_video.php |
<? session_start(); include("lib/globals.php"); include("lib/common.php"); include("lib/functions.php"); $sel = "SELECT vid_you2 FROM escort_details where id='".$_GET['id']."' and user_id='".$_SESSION['userid']."'"; $res = execute_query($sel); $row = mysql_fetch_array($res); if($row['vid_you2'] != "" && file_exists('avtar/'.$row['vid_you2'])) { unlink('avtar/'.$row['vid_you2']); } $del="UPDATE escort_details set vid_you_title='',vid_you='',vid_you2='' where id='".$_GET['id']."' and user_id='".$_SESSION['userid']."'"; execute_query($del); ?> <script language="javascript"> location.href="add-myvideos.php"; </script>