openvk/Web/Presenters/AwayPresenter.php

14 lines
333 B
PHP
Raw Normal View History

2020-06-07 19:04:43 +03:00
<?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;
}
}