mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
Add option to control whether boards and pages are indexed by search engines, using the X-Robots-Tag header
This commit is contained in:
parent
fde3609f70
commit
2197b0a982
7 changed files with 37 additions and 9 deletions
|
|
@ -125,6 +125,12 @@ class DisplayHandler extends Handler
|
|||
header('X-Content-Type-Options: ' . $header_value);
|
||||
}
|
||||
|
||||
// Print robot headers.
|
||||
if (isset($oModule->module_info->robots_tag) && $oModule->module_info->robots_tag === 'noindex')
|
||||
{
|
||||
header('X-Robots-Tag: noindex');
|
||||
}
|
||||
|
||||
// flush output buffer
|
||||
while (ob_get_level())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue