Increase cookie security

Mods etc.

Moderator: Integra Moderator

Increase cookie security

PostAuthor: Skywalker » Mon Jul 10, 2006 3:06 pm

could someone port this?
i've tried but do not get it to work.
Code: Select all
 ############################################################## ## MOD Title] ## MOD Author:    mosymuis <mods> (Rens van Dongen) [url=http://mods.mosymuis.nl]http://mods.mosymuis.nl[/url] ## ## MOD Description: This mod will improve your forum security by ##      adding extra encryption to the user passwords ##      stored in cookies, used to auto login. Note: after ##      using this mod, all users should login again. ## ## MOD Version: 1.1.0 ## ## Installation Level: (Easy) ## Installation Time: 1 Minute ## Files To Edit: (5) ##      - admin/admin_board.php ##      - includes/sessions.php ##      - templates/subSilver/admin/board_config_body.tpl ##      - language/lang_english/lang_admin.php ##      - language/lang_dutch/lang_admin.php ## Included Files: (n/a) ##############################################################  # #-----[ SQL ]------------------------------------------ # change chickensoup with whatever you want, and remember to keep it a secret # change phpbb_ to the database prefix you use # INSERT INTO phpbb_config VALUES ('cookie_key', 'chickensoup'); DELETE FROM phpbb_sessions;  # #-----[ OPEN ]------------------------------------------ # admin/admin_board.php  # #-----[ FIND ]------------------------------------------ #    "L_COOKIE_SECURE_EXPLAIN" => $lang['Cookie_secure_explain'],  # #-----[ AFTER, ADD ]------------------------------------------ #    "L_COOKIE_KEY" => $lang['Cookie_key'],    "L_COOKIE_KEY_EXPLAIN" => $lang['Cookie_key_explain'],  # #-----[ FIND ]------------------------------------------ #    "S_COOKIE_SECURE_DISABLED" => $cookie_secure_no,  # #-----[ AFTER, ADD ]------------------------------------------ #    "COOKIE_KEY" => $new['cookie_key'],  # #-----[ OPEN ]------------------------------------------ # includes/sessions.php  # #-----[ FIND ]------------------------------------------ #       $auto_login_key = $userdata['user_password'];        # #-----[ REPLACE, WITH ]--------------------------------------------------- #       $auto_login_key = md5($userdata['user_password'].$board_config['cookie_key']);  # #-----[ OPEN ]------------------------------------------ # Make sure to edit this file for every theme you use! # templates/subSilver/admin/board_config_body.tpl  # #-----[ FIND ]------------------------------------------ #       <td><input>{L_DISABLED}   <input>{L_ENABLED}</td>    </tr>  # #-----[ AFTER, ADD ]------------------------------------------ #    <tr>       <td>{L_COOKIE_KEY}<br><span>{L_COOKIE_KEY_EXPLAIN}</span></td>       <td><input></td>    </tr>  # #-----[ OPEN ]------------------------------------------ # language/lang_english/lang_admin.php  # #-----[ FIND ]------------------------------------------ # // // That's all Folks! // -------------------------------------------------  # #-----[ BEFORE, ADD ]------------------------------------------ # // Increase Cookie Security $lang['Cookie_key'] = 'Secret cookie key'; $lang['Cookie_key_explain'] = 'When this is editted, all your users will have to login again.';  # #-----[ OPEN ]------------------------------------------ # Only if you have the Dutch language pack installed # language/lang_dutch/lang_admin.php  # #-----[ FIND ]------------------------------------------ # // // That's all Folks! // -------------------------------------------------  # #-----[ BEFORE, ADD ]------------------------------------------ # // Increase Cookie Security $lang['Cookie_key'] = 'Verborgen cookie sleutel'; $lang['Cookie_key_explain'] = 'Als dit wordt aangepast, zullen alle leden zich opnieuw moeten inloggen.';  # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Return to IntegraMOD Modifications

Who is online

Registered users: Bing [Bot], Unspecified Bot