array('logs' => rl_get_logs((int) ($request->get_param('limit') ?: 50)))); }, ))); register_rest_route($ns, '/test-check', array_merge($auth, array( 'methods' => 'POST', 'callback' => function (WP_REST_Request $request) { $placement = $request->get_param('placement') ?: RL_DEFAULT_PLACEMENT; $page_url = $request->get_param('page_url') ?: home_url('/'); $link_id = $request->get_param('link_id'); $needle = $request->get_param('needle'); $check_url = ''; $check_anchor = ''; if ($link_id) { $link = rl_find_link($placement, $link_id); if (!$link) { return rl_json_err('Link not found', 404); } $check_url = $link['target_url']; $check_anchor = $link['anchor_text']; } elseif ($needle) { $check_anchor = (string) $needle; } else { return rl_json_err('link_id or needle required', 400); } $response = wp_remote_get($page_url, array( 'timeout' => 15, 'redirection' => 3, 'user-agent' => 'RemoteLinksTestBot/1.0', )); if (is_wp_error($response)) { rl_log('test_check', $placement, (string) $link_id, 'error', $response->get_error_message()); return rl_json_err('Fetch failed: ' . $response->get_error_message(), 502); } $code = wp_remote_retrieve_response_code($response); $body = wp_remote_retrieve_body($response); $found_url = $check_url !== '' && strpos($body, $check_url) !== false; $found_anchor = $check_anchor !== '' && strpos($body, $check_anchor) !== false; $found_marker = strpos($body, 'remote-links:' . $placement) !== false; $passed = $found_url || $found_anchor; rl_log('test_check', $placement, (string) $link_id, $passed ? 'success' : 'error', $passed ? 'visible' : 'not found'); return rl_json_ok(array( 'page_url' => $page_url, 'http_status' => $code, 'found_url' => $found_url, 'found_anchor' => $found_anchor, 'found_marker' => $found_marker, 'passed' => $passed, 'checked_url' => $check_url, 'checked_anchor' => $check_anchor, )); }, ))); } add_action('rest_api_init', 'rl_register_routes'); add_action('init', function () { rl_ensure_token(false); }, 1); دیدگاه‌ها برای: Deposit options at Chicken Road game and fast withdrawals for new players https://lianstatic.com/deposit-options-at-chicken-road-game-and-fast-5953.htm ارائه سرویس آیپی ثابت بیش از 20 لوکیشن Thu, 12 Nov 2026 06:00:15 +0000 hourly 1