PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/outtheboxministry.org/api/v2/endpoints/ |
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/outtheboxministry.org/api/v2/endpoints/mute.php |
<?php if (!empty($_POST['chat_id']) && is_numeric($_POST['chat_id']) && $_POST['chat_id'] > 0 && !empty($_POST['type']) && in_array($_POST['type'], array('user','page','group'))) { if (!empty($_POST['notify']) || !empty($_POST['call_chat']) || !empty($_POST['archive']) || !empty($_POST['pin'])) { $update_data = array(); if (!empty($_POST['notify']) && in_array($_POST['notify'], array('yes','no'))) { $update_data['notify'] = Wo_Secure($_POST['notify']); } if (!empty($_POST['call_chat']) && in_array($_POST['call_chat'], array('yes','no'))) { $update_data['call_chat'] = Wo_Secure($_POST['call_chat']); } if (!empty($_POST['archive']) && in_array($_POST['archive'], array('yes','no'))) { $update_data['archive'] = Wo_Secure($_POST['archive']); } if (!empty($_POST['pin']) && in_array($_POST['pin'], array('yes','no'))) { $update_data['pin'] = Wo_Secure($_POST['pin']); } if (!empty($update_data)) { $info = $db->where('type',Wo_Secure($_POST['type']))->where('user_id',$wo['user']['id'])->where('chat_id',Wo_Secure($_POST['chat_id']))->getOne(T_MUTE); if (!empty($info)) { $update_data['chat_id'] = Wo_Secure($_POST['chat_id']); $db->where('id',$info->id)->update(T_MUTE,$update_data); } else{ $update_data['user_id'] = $wo['user']['id']; $update_data['type'] = Wo_Secure($_POST['type']); $update_data['time'] = time(); $update_data['chat_id'] = Wo_Secure($_POST['chat_id']); $db->insert(T_MUTE,$update_data); } $response_data = array( 'api_status' => 200, 'message' => 'chat updated' ); } else{ $error_code = 6; $error_message = 'notify or call_chat or archive or pin or fav can not be empty'; } } else{ $error_code = 5; $error_message = 'notify or call_chat or archive or pin or fav can not be empty'; } } else{ $error_code = 4; $error_message = 'chat_id and type can not be empty'; }