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 |
Dir : /home/trave494/productjuly1video/clapupclapback.click/ajax/playlist_subscribe.php |
<?php if (IS_LOGGED == false) { $data = array( 'status' => 400, 'error' => 'Not logged in' ); echo json_encode($data); exit(); } $data['status'] = 400; if (!empty($_POST['playlist']) && $pt->config->playlist_subscribe == 'on') { $list_id = PT_Secure($_POST['playlist']); $list_data = $db->where("list_id", $list_id)->getOne(T_LISTS); if (!empty($list_data)) { $is_subscribed = $db->where('list_id', $list_id)->where('subscriber_id', $user->id)->getValue(T_PLAYLIST_SUB, "count(*)"); if ($is_subscribed > 0) { $delete_sub = $db->where('list_id', $list_id)->where('subscriber_id', $user->id)->delete(T_PLAYLIST_SUB); if ($delete_sub) { $data = array( 'status' => 304 ); } $notif_data = array( 'notifier_id' => $pt->user->id, 'recipient_id' => $list_data->user_id, 'type' => 'unsubscribed_u_playlist', 'url' => ('@' . $pt->user->username), 'time' => time() ); pt_notify($notif_data); } else { $insert_data = array( 'list_id' => $list_id, 'subscriber_id' => $user->id, 'time' => time(), 'active' => 1 ); $create_subscription = $db->insert(T_PLAYLIST_SUB, $insert_data); if ($create_subscription) { $data = array( 'status' => 200 ); $notif_data = array( 'notifier_id' => $pt->user->id, 'recipient_id' => $list_data->user_id, 'type' => 'subscribed_u_playlist', 'url' => ('@' . $pt->user->username), 'time' => time() ); pt_notify($notif_data); } } } }