PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/productjuly1video/clapupclapback.click/ajax/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/productjuly1video/clapupclapback.click/ajax/delete-video.php

<?php
if (IS_LOGGED == false) {
    $data = array('status' => 400, 'error' => 'Not logged in');
    echo json_encode($data);
    exit();
}

$id         = PT_Secure($_POST['id']);
$video      = $db->where('id', $id)->getOne(T_VIDEOS);
$can_delete = false;

if (PT_IsAdmin() == false) {
	if ($db->where('user_id', $user->id)->where('id', $id)->getValue(T_VIDEOS, 'count(*)') > 0) {
		$can_delete = true;
	}
} 

else {
	$can_delete = true;
}

if ($can_delete == true && !empty($video)) {
	
	$delete   = PT_DeleteVideo($id);
	$data     = array('status' => 200);
	if (!empty($video->size)) {
		$size = $video->size;
		$db->where('id', $user->id)->update(T_USERS,array('uploads' => ($user->uploads - $size)));
	}
	else{
		$db->where('id', $user->id)->update(T_USERS,array('imports' => ($user->imports - 1)));
	}
}