> Hello the list,
>
>
> I would like to deny access to the "options" for the users ....
> Or just Allow for "personnal" information not for display, folder,
> compose etc ...., I use a default_user file .... Anyone know a easy way to
> do that ?

forced_prefs 1.1
 if enforced settings use standard squirrelmail widgets, they are not
visible to end user. You can also disable plugin's hook, that is used to
add plugin's code to option pages.

forced_prefs 1.2cvs
 there is an option, that can hide entire option blocks. Including default
ones. cvs is available in sm-plugins sourceforge project.

> Well, I have install administrator plugin so if I can allow access for
> the administrators, it will be the best!!

sample forced_prefs config file

<?php
/*
 * define sm_path (path is set for plugins/forced_prefs/config.php)
 * config directory needs only one ../
 * This is only safety measure. In most cases SM_PATH test is positive.
if (!defined('SM_PATH')) define('SM_PATH','../../');

// include user check function
include_once(SM_PATH . plugins/administrator/auth.php);

// check user
if (! adm_check_user()) {
   // add forced_prefs config here
}
?>

-- 
Tomas


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
--
squirrelmail-users mailing list
Posting Guidelines: 
http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: [email protected]
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to