1 message in com.mysql.lists.eventum-develcontrib for anonymous access to eventum| From | Sent On | Attachments |
|---|---|---|
| Eric Seigne | 25 Oct 2005 05:26 |
| Subject: | contrib for anonymous access to eventum![]() |
|---|---|
| From: | Eric Seigne (eric...@ryxeo.com) |
| Date: | 10/25/2005 05:26:28 AM |
| List: | com.mysql.lists.eventum-devel |
Hello all,
here is a little patch to make possible anonymous readers to eventum issue list and search.
1. insert into you database
INSERT INTO `eventum_user` VALUES (, NULL, NULL, NULL, '2005-10-25
11:57:15', 'active', '27d887b518a17f50055598d19bc45c85', 'Anonymous',
'anonymous@thank_you_mysqlab_for_gpl_softs.com',
'a:9:{s:19:"close_popup_windows";s:1:"0";s:23:"receive_assigned_emails";s:1:"0";s:18:"receive_new_emails";s:1:"0";s:8:"timezone";s:12:"Europe/Paris";s:17:"list_refresh_rate";s:1:"5";s:19:"emails_refresh_rate";s:2:"10";s:15:"email_signature";N;s:15:"auto_append_sig";N;s:20:"auto_append_note_sig";N;}',
'', 0);
2. put this code as index.html into you eventum/ web directory
<html> <head> <title>Auto-Login - Eventum</title> </head> <body bgcolor="#FFFFFF">
<form name="login_form" method="post" action="login.php"> <input type="hidden" name="cat" value="login"> <input type="hidden" name="url" value=""> <input type="hidden" name="email" value="anonymous@thank_you_mysqlab_for_gpl_softs.com"> <input type="hidden" name="passwd" value="thanks_a_lot"> </form> <SCRIPT LANGUAGE="JavaScript"> document.login_form.submit(); </script> </body> </html>
3. Update templates/en/preferences.tpl.html to prevent anonymous user to update password and email
adding this in line 46 before line "<table width="80%"..."
<!-- MODE ANONYMOUS [RYXEO CONTRIB] --> {if $current_email != "anonymous@thank_you_mysqlab_for_gpl_softs.com">
and line 317, after "</table>"
{/if} <!-- END MODE ANONYMOUS [RYXEO CONTRIB] -->
Then visitors are automaticaly authentified as anonymous users and real users MUST clic on "logout" link or go to /index.php to log in with there own username .
Éric
-- ATTENTION: en raison des Rencontres Africaines des Logiciels Libres je suis absent du 12 au 22 octobre 2005 ! rall.logiciels-libres.org Éric Seigne - Directeur | eric...@ryxeo.com RyXéo SARL | http://www.ryxeo.com Le Topaze - Entrée C, 2 rue Jean Bonnardel | tel +33 6 987 444 01 33140 Villenave d'Ornon - FRANCE | fax +33 5 567 542 59




