PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/productjuly1video/fashioncrowndom.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/fashioncrowndom.click/ajax/report.php |
<?php if (IS_LOGGED == false) { $data = array( 'status' => 400, 'error' => 'Not logged in' ); echo json_encode($data); exit(); } if (!empty($_POST['id']) && is_numeric($_POST['id'])) { $video_id = PT_Secure($_POST['id']); $video_data = $db->where('id',$video_id)->getOne(T_VIDEOS); $user_id = $user->id; if (!empty($video_data)) { $db->where('video_id',$video_id); $db->where('user_id',$user_id); $reports = $db->getValue(T_REPORTS,'count(*)'); if(!empty($_POST['text']) && empty($reports)){ $text = PT_Secure($_POST['text']); $re_data = array( 'user_id' => $user_id, 'video_id' => $video_id, 'type' => 'video', 'time' => time(), 'text' => $text, ); if ($db->insert(T_REPORTS,$re_data)) { $data['status'] = 200; } } else if (!empty($reports)) { $db->where('video_id',$video_id); $db->where('user_id',$user_id); $db->delete(T_REPORTS); $data['status'] = 304; } } }