mirror of
https://github.com/openvk/openvk
synced 2024-12-28 03:14:06 +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;
|
||
|
}
|
||
|
}
|