mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-02-03 20:40:15 -05:00
29 lines
671 B
PHP
29 lines
671 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
/* Icinga DB Web | (c) 2025 Icinga GmbH | GPLv2 */
|
||
|
|
|
||
|
|
namespace Icinga\Module\Icingadb\Controllers;
|
||
|
|
|
||
|
|
use Icinga\Module\Icingadb\Web\Controller;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @deprecated Will be removed with 1.3, use ContactController instead
|
||
|
|
*/
|
||
|
|
class UserController extends Controller
|
||
|
|
{
|
||
|
|
public function preDispatch()
|
||
|
|
{
|
||
|
|
$url = $this->getRequest()->getUrl();
|
||
|
|
$url->setPath(preg_replace(
|
||
|
|
'~^icingadb/user(?=/|$)~',
|
||
|
|
'icingadb/contact',
|
||
|
|
$url->getPath()
|
||
|
|
));
|
||
|
|
|
||
|
|
$this->getResponse()
|
||
|
|
->setHttpResponseCode(301)
|
||
|
|
->setHeader('Location', $url->getAbsoluteUrl())
|
||
|
|
->sendResponse();
|
||
|
|
}
|
||
|
|
}
|