42 lines
1015 B
PHP
42 lines
1015 B
PHP
<?php
|
|
/**
|
|
* @brief Legacy Referrals Controller
|
|
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
|
|
* @copyright (c) Invision Power Services, Inc.
|
|
* @license https://www.invisioncommunity.com/legal/standards/
|
|
* @package Invision Community
|
|
* @subpackage Commerce
|
|
* @since 10 Sep 2020
|
|
*/
|
|
|
|
namespace IPS\nexus\modules\front\clients;
|
|
|
|
/* To prevent PHP errors (extending class does not exist) revealing path */
|
|
|
|
use IPS\Dispatcher\Controller;
|
|
use IPS\Http\Url;
|
|
use IPS\Output;
|
|
use function defined;
|
|
|
|
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
|
{
|
|
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
|
|
exit;
|
|
}
|
|
|
|
/**
|
|
* Legacy Referrals Controller
|
|
*/
|
|
class referrals extends Controller
|
|
{
|
|
/**
|
|
* Manage
|
|
*
|
|
* @return void
|
|
*/
|
|
protected function manage() : void
|
|
{
|
|
/* Referrals have moved to the core. */
|
|
Output::i()->redirect( Url::internal( "app=core&module=system&controller=settings&area=referrals", 'front', 'settings_referrals' ) );
|
|
}
|
|
} |