mirror of
https://github.com/openvk/openvk
synced 2024-11-16 03:59:19 +03:00
14 lines
333 B
PHP
14 lines
333 B
PHP
|
<?php declare(strict_types=1);
|
||
|
namespace openvk\Web\Presenters;
|
||
|
|
||
|
final class AwayPresenter extends OpenVKPresenter
|
||
|
{
|
||
|
function renderAway(): void
|
||
|
{
|
||
|
header("HTTP/1.0 302 Found");
|
||
|
header("X-Robots-Tag: noindex, nofollow, noarchive");
|
||
|
header("Location: " . $this->queryParam("to"));
|
||
|
exit;
|
||
|
}
|
||
|
}
|