[REQUEST] no logged in regs

can someone port this to IM?
i dont know witch mode IM is using for regs
- Code: Select all
############################################################## ## MOD Title]http://www.midnightfaction.com#[/url]# MOD Description: If users are logged in and manage to reach your register page they will be redirected to the index## MOD Version: v1.0## ## Installation Level: Easy## Installation Time: 1 Minute#### Files To Edit: profile.php#### Included Files: None################################################################## ## For Security Purposes, Please Check: [url=http://www.phpbbhacks.com/]http://www.phpbbhacks.com/[/url] for the newest version of this MOD################################################################ Author Notes:#### This MOD has only been tested on phpBB v2.0.8 - But should work with earlier versions as well. :]#### I do not offer any support for this MOD, use at your own risk!#### I do realize this is extremely simple, but I think it could be very useful for those will different site layouts. If not, don't install it! :]################################################################ ## MOD History:#### v1.0b - Initial release################################################################## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD############################################################### #-----[ OPEN ]------------------------------------------ #profile.php # #-----[ FIND ]------------------------------------------ # if ( !$userdata['session_logged_in'] && $mode == 'editprofile' ) { redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=editprofile", true)); } # #-----[ AFTER, ADD ]------------------------------------------ ## NOTE: You may change index.$phpEx to any page you want to redirect to :]#// Anti Logged-In Register MODif ( $userdata['session_logged_in'] && $mode == 'register' ) { redirect(append_sid("index.$phpEx", true)); }// END Anti Logged-In Register MOD# #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM
i dont know witch mode IM is using for regs