Re: Personal / Global Address Books

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>
> I would like to remove the ability for users to have a personal address
> book
> and only have a global address book that they cannot modify. Can somebody
> help me with the best way to do this? Thanks!

1. functions/addressbook.php
disable activation of personal address book backend

http://pastebin.ca/948549
Remove or disable these lines. Lines 53-73 in SquirrelMail 1.4.13.

2. src/addressbook.php
a) remove link to address book form (line 366)
---
//echo html_tag( 'p', '<a href="#AddAddress">' . _("Add address") .
'</a>', 'center' ) . "\n";
---
b) remove edit/delete controls
set lines 380 (if($prevbackend < 0) {) and 483 (if ($headerprinted) {) to
--
if (false) {
--
or remove all code inside if {}

c) remove address book form
lines 497-507 in SquirrelMail 1.4.13.

You could also remove code that processes user actions, but end user won't
be able to reach that code without plugins or html form hacks. Even if
they reach it, it most likely fail with write errors. Lines 174-331.

3. Don't enable plugins that link to address book form. ldapquery,
abook_take, add_address.

4. Try using modified code and patch up all issues that pop up when code
expects some writable address book.

-- 
Tomas


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux