- $optpage_blocks[] = array(
- 'name' => _("Administration"),
- 'url' => '../plugins/administrator/options.php',
- 'desc' => _("This module allows administrators to run SquirrelMail configuration remotely."),
- 'js' => false
- );
+ if ( adm_check_user() ) {
+ global $optpage_blocks;
+
+ $optpage_blocks[] = array(
+ 'name' => _("Administration"),
+ 'url' => SM_PATH . 'plugins/administrator/options.php',
+ 'desc' => _("This module allows administrators to manage SquirrelMail main configuration remotely."),
+ 'js' => false
+ );
+ }