Seditio Source
Root |
./othercms/dotclear-2.22/plugins/userPref/_admin.php
<?php
/**
 * @brief userPref, a plugin for Dotclear 2
 *
 * @package Dotclear
 * @subpackage Plugins
 *
 * @copyright Olivier Meunier & Association Dotclear
 * @copyright GPL-2.0-only
 */
if (!defined('DC_CONTEXT_ADMIN')) {
    return;
}

$_menu['System']->addItem(
   
'user:preferences',
   
$core->adminurl->get('admin.plugin.userPref'),
   
dcPage::getPF('userPref/icon.svg'),
   
preg_match('/' . preg_quote($core->adminurl->get('admin.plugin.userPref')) . '(&.*)?$/', $_SERVER['REQUEST_URI']),
   
$core->auth->isSuperAdmin()
);