yf_test_404 user module

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

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'] ?? null) ? ($_SERVER['SERVER_PROTOCOL'] ?? null) : 'HTTP/1.1') . ' 404 Not Found');
        echo 'Page not found';
        exit;
    }