Invision Power Services, Inc. * @copyright (c) Invision Power Services, Inc. * @license https://www.invisioncommunity.com/legal/standards/ * @package Invision Community * @since 23 Sep 2021 */ namespace IPS\core\modules\admin\activitystats; /* To prevent PHP errors (extending class does not exist) revealing path */ use IPS\core\Statistics\Chart; use IPS\Dispatcher; use IPS\Dispatcher\Controller; use IPS\Http\Url; use IPS\Member; use IPS\Output; use function defined; if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * deletedcontent */ class deletedcontent extends Controller { /** * @brief Has been CSRF-protected */ public static bool $csrfProtected = TRUE; /** * Execute * * @return void */ public function execute() : void { Dispatcher::i()->checkAcpPermission( 'deletedcontent_manage' ); parent::execute(); } /** * Manage * * @return void */ protected function manage() : void { $chart = Chart::loadFromExtension( 'core', 'DeletedContent' )->getChart( Url::internal( "app=core&module=activitystats&controller=deletedcontent" ) ); Output::i()->title = Member::loggedIn()->language()->addToStack('menu__core_activitystats_deletedcontent'); Output::i()->output = (string) $chart; } }