addItem( __('Advanced cleaner'), $core->adminurl->get('admin.plugin.dcAdvancedCleaner'), dcPage::getPF('dcAdvancedCleaner/icon.png'), preg_match( '/' . preg_quote($core->adminurl->get('admin.plugin.dcAdvancedCleaner')) . '(&.*)?$/', $_SERVER['REQUEST_URI'] ), $core->auth->isSuperAdmin() ); $core->addBehavior('adminDashboardFavorites', 'dcAdvancedCleanerDashboardFavorites'); function dcAdvancedCleanerDashboardFavorites(dcCore $core, $favs) { $favs->register('dcAdvancedCleaner', [ 'title' => __('Advanced cleaner'), 'url' => $core->adminurl->get('admin.plugin.dcAdvancedCleaner'), 'small-icon' => dcPage::getPF('dcAdvancedCleaner/icon.png'), 'large-icon' => dcPage::getPF('dcAdvancedCleaner/icon-big.png'), 'permissions' => $core->auth->isSuperAdmin() ]); }