['filter' => FILTER_CALLBACK, 'options' => [self::class, 'checkIdList']], ); public function __construct(string $pageParam) { parent::__construct($pageParam); if (!Cfg::get('PROFILER_ENABLE')) $this->generate404(); } /* params id: return null */ protected function generate() : void { if (!$this->assertGET('id')) { trigger_error('ProfileDeleteResponse - profileId empty', E_USER_WARNING); return; } // only flag as deleted; only custom profiles DB::Aowow()->query( 'UPDATE ?_profiler_profiles SET `deleted` = 1 WHERE `id` IN (?a) AND `custom` = 1 {AND `user` = ?d}', $this->_get['id'], User::isInGroup(U_GROUP_ADMIN | U_GROUP_BUREAU) ? DBSIMPLE_SKIP : User::$id ); } } ?>