>> One way of doing this is to use the Show User and IP plugin >> <http://www.squirrelmail.org/plugin_view.php?id=123>, since it writes a >> timestamp in the end users preferences on every login. All you have to >> do is to grep/select that preference key (it's "my_last_date" in the >> version I'm using) and convert the UNIX timestamp to something readable. >> >> If you use file system base preferences it's even easier. All you have to >> do is a "ls -l *pref", and you will get the time when the pref-file was >> last modified. This will work if you're sure that it will be modified >> every time the user logs in. > > > Thanks! I have been using the Show User and IUP plugin for a couple of > months. I have made a script to ls the pref files, but you say this will > work if I'm sure the pref file is modified every time the user logs in. > What do you excactly mean? Do this depend on if the user has turned on > the Show User... feature? How can I be sure the pref file is modified > each time a user logs in?
You can test this yourself, but it looks like the plugin saves the IP, host and date, regardless of if the end user chooses to display them or not. This means that it doesn't matter how the end user configures the plugin settings, since the data is stored anyway, i.e. the pref-file is always modified when the user logs in. This should be true if you're using v3.3, and in that version the preference key is called "sui_last_date". Sincerely, Fredrik. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 -- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/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
