s�n, 19.09.2004 kl. 14.38 skrev Tony Earnshaw:


This plugin is old and out of date, but was designed to do what you want
using a MySQL database to back it up.  It probably needs a lot of work
before putting it to use....

http://squirrelmail.org/plugins/lock_down_2.1.tar.gz

I'll have a look at that one, thanks!


It works perfectly now with MySQL 4.0.20 and PHP 4.3 and is just what I
needed. I "tidied it up", substituted "==" for "=" in "if" statements in
functions.php and corrected the English where necessary.


I'm surprised Paul didn't pick up on this, unless I missed something,
but == is a comparison operator, while = is an assignment operator.

Paul hadn't looked at the code yet. ;)

This means in this situation:

$a = 1;

if ($a ==2) {

This if statement returns false, so it runs the second pat of the
if/else statement (if one is specified that is).


$a = 1;

if ($a = 2) {

That will ALWAYS be true because you're just reassigning a variable.
You might want to double check what you did, and make sure you didn't
just miss-explain it.

I looked at Tony's corrected code, and his changes are correct.

 - paul


------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php -- 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)95 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to