PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/productjuly1video/famousdimensions.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 |
Dir : /home/trave494/productjuly1video/famousdimensions.click/ajax/delete-reply.php |
<?php if (IS_LOGGED == false) { $data = array( 'status' => 400, 'error' => 'Not logged in' ); echo json_encode($data); exit(); } if (empty($_POST['id'])) { $data = array('status' => 400); } else { $id = PT_Secure($_POST['id']); $reply_data = $db->where('id', $id)->getOne(T_COMM_REPLIES); $is_owner = false; if (!empty($reply_data)) { $db->where('id',$reply_data->video_id); $db->where('user_id',$user->id); $video_owner = ($db->getValue(T_VIDEOS,'count(*)') > 0); if ($video_owner === true) { $is_owner = true; } else if($reply_data->user_id == $user->id){ $is_owner = true; } } if ($is_owner === true) { $delete_reply = $db->where('id', $id)->delete(T_COMM_REPLIES); if ($delete_reply) { $delete_reply_likes = $db->where('reply_id', $id)->delete(T_COMMENTS_LIKES); $data = array('status' => 200); } } } ?>