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/pin_message.php |
<?php if (!empty($_POST['message_id']) && is_numeric($_POST['message_id']) && $_POST['message_id'] > 0 && !empty($_POST['chat_id']) && is_numeric($_POST['chat_id']) && $_POST['chat_id'] > 0 && !empty($_POST['pin']) && in_array($_POST['pin'], array('yes','no')) && !empty($_POST['type']) && in_array($_POST['type'], array('user','page','group'))) { $info = $db->where('user_id',$wo['user']['id'])->where('message_id',Wo_Secure($_POST['message_id']))->getOne(T_MUTE); if (!empty($info)) { $db->where('id',$info->id)->update(T_MUTE,array('pin' => Wo_Secure($_POST['pin']))); } else{ $update_data['user_id'] = $wo['user']['id']; $update_data['type'] = Wo_Secure($_POST['type']); $update_data['time'] = time(); $update_data['pin'] = Wo_Secure($_POST['pin']); $update_data['message_id'] = Wo_Secure($_POST['message_id']); $update_data['chat_id'] = Wo_Secure($_POST['chat_id']); $db->insert(T_MUTE,$update_data); } $response_data = array( 'api_status' => 200, 'message' => 'message updated' ); } else{ $error_code = 4; $error_message = 'message_id and chat_id and pin and type can not be empty'; }