One Hat Cyber Team
Your IP :
18.117.111.63
Server IP :
50.28.103.30
Server :
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software :
nginx/1.24.0
PHP Version :
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
globify.live
/
chatscript
/
fns
/
remove
/
Edit File:
friend.php
<?php $result = array(); $result['success'] = false; $result['error_message'] = Registry::load('strings')->went_wrong; $result['error_key'] = 'something_went_wrong'; $current_user_id = Registry::load('current_user')->id; if (Registry::load('settings')->friend_system === 'enable') { if (isset($data['user_id'])) { $user_id = filter_var($data["user_id"], FILTER_SANITIZE_NUMBER_INT); if (!empty($user_id)) { $columns = $join = $where = null; $columns = ['friendship_id', 'from_user_id', 'to_user_id', 'relation_status']; $where["OR"]["AND #first_query"] = [ "friends.from_user_id" => $user_id, "friends.to_user_id" => $current_user_id, ]; $where["OR"]["AND #second_query"] = [ "friends.from_user_id" => $current_user_id, "friends.to_user_id" => $user_id, ]; $where["LIMIT"] = 1; $check_friend_list = DB::connect()->select('friends', $columns, $where); if (isset($check_friend_list[0])) { DB::connect()->delete("friends", ["friendship_id" => $check_friend_list[0]['friendship_id']]); $current_user_friends = DB::connect()->count("friends", ["relation_status" => 1, "OR" => ["from_user_id" => $current_user_id, "to_user_id" => $current_user_id]]); DB::connect()->update("site_users", ["total_friends" => $current_user_friends], ["user_id" => $current_user_id]); $other_user_friends = DB::connect()->count("friends", ["relation_status" => 1, "OR" => ["from_user_id" => $user_id, "to_user_id" => $user_id]]); DB::connect()->update("site_users", ["total_friends" => $other_user_friends], ["user_id" => $user_id]); } $result = array(); $result['success'] = true; $result['todo'] = 'reload'; $result['reload'] = ['site_users', 'online', 'friends', 'group_members']; if (isset($data['info_box'])) { $result['info_box']['user_id'] = $user_id; } } } }
Simpan