Re: limit number messages listed per page

Tomas Kuliavas <[email protected]> Mon, 21 Jun 2010 11:05:10 -0700 (PDT)
Newsgroups gmane.mail.squirrelmail.devel
Message-ID <[email protected]>

Rajesh M-3 wrote:
> 
> hi
> 
> i wish to limit the number of messages listed per page to 100 or lesser
> 
> i wish to edit the squirrelmail source for the same and would like to use
> java script popup kind of limiting
> 
> could you pl guide me as to which page would need to be edited for this
> 
> i checked out and found part of the information
> /include/options/display.php
> 
> what i need to know is where to edit the text input box
> 

You should not use restrictions that are controlled by client. Your
(ab)users just disable javascript and set any value that they want.

Such feature can be implemented by adding additional checks (in php) to
SquirrelMail option widgets or you can use plugins. If plugins can force
interface options selected by admin, they can also set min/max limits of
integer settings or acceptable string values.

-- 
Tomas
-- 
View this message in context: http://old.nabble.com/limit-number-messages-listed-per-page-tp28951107p28951670.html
Sent from the squirrelmail-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel