yf_test_403 user module

Fileplugins/test/modules/yf_test_403.class.php
Usemodule('test_403'), URL ?object=test_403

Public properties

PropertyDefaultDescription
None declared in this class.

Public methods 1

show

public function show()
    public function show()
    {
        no_graphics(true);
        header('X-Robots-Tag: noindex,nofollow,noarchive,nosnippet');
        header(($_SERVER['SERVER_PROTOCOL'] ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.1') . ' 403 Forbidden');
        echo 'Сайт недоступний у вашій країні<br />' . PHP_EOL . 'This website is not available in your country';
        exit;
    }