Hi All,
As I said I'd take a look at it... I have been doing so. And in
classic form, I cannot for the life of me reproduce the issue that
people seem to be having with the SM 1.2 branch not displaying
preferences until you relogin. As a side point, this might actually
be applicable to SM 1.4 as well... line numbers might be slightly
different however.
So I took a look at the code, and I think the problem is fairly
simple, but I need some testers. Hopefully you guys can help here.
Those using file based preferences:
- Open functions/file_prefs.php
- Jump to line 133, should look like this:
@unlink($filename . '.tmp');
chmod($filename, 0600);
}
- Add the following code:
sqsession_register('prefs_cache' , $prefs_cache);
The code should now look like:
@unlink($filename . '.tmp');
chmod($filename, 0600);
sqsession_register('prefs_cache' , $prefs_cache);
}
- Save and play about :)
Those using db based preferences need to do a little more work:
- Open functions/db_prefs.php
- Jump to line 293, the code should look like this:
$db->deleteKey($username, $string);
return;
Change to this:
$db->deleteKey($username, $string);
sqsession_register('prefs_cache' , $prefs_cache);
return;
- Then jump to line 319, should look like this:
assert ('$set_to == $prefs_cache[$string]');
return;
Change to this:
assert ('$set_to == $prefs_cache[$string]');
sqsession_register('prefs_cache' , $prefs_cache);
return;
- Save and play about :)
I'm hoping those are the only changes that are required. If you have
any issues deploying this code, please email me, and I'll try
guiding you through it.
I'd be very grateful for those able to test to provide feedback as
soon as possible.
Thanks to all.
--
Jonathan Angliss
([EMAIL PROTECTED])
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users