yf_test_404 user module| File | plugins/test/modules/yf_test_404.class.php |
|---|---|
| Use | module('test_404'), URL ?object=test_404 |
| Property | Default | Description |
|---|---|---|
| None declared in this class. | ||
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;
}