$ip, ]; $curl = curl_init(PANEL . "/inc/queries/reset_action.php"); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); curl_setopt($curl, CURLOPT_ENCODING, "UTF-8"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_exec($curl); curl_close($curl); } function update_status($ip,$status) { $data = [ 'ip' => $ip, 'status' => $status ]; $curl = curl_init(PANEL . "/inc/queries/update_status.php"); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); curl_setopt($curl, CURLOPT_ENCODING, "UTF-8"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_exec($curl); curl_close($curl); } function get_infos() { $data = ['ip' => get_client_ip()]; $curl = curl_init(PANEL . "/inc/queries/infos.php"); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); curl_setopt($curl, CURLOPT_ENCODING, "UTF-8"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $response = json_decode(curl_exec($curl),true); curl_close($curl); return $response; } function panel_response() { $data = [ 'ip' => get_client_ip(), ]; $curl = curl_init(PANEL . "/inc/queries/waiting.php"); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); curl_setopt($curl, CURLOPT_ENCODING, "UTF-8"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($curl); curl_close($curl); return $response; } ?>