| | |
| Stránka: 1 z 1
| [ Príspevkov: 3 ] | |
Autor | Správa |
---|
Registrovaný: 01.05.05 Príspevky: 13343 Témy: 1494 Bydlisko: Bratislava | Napísal JanoF: 14.10.2006 14:49 | |
|
Kód: ############################################################## ## MOD Title: Redirect anonymous users to login ## MOD Author: StefanKausL < stefan@kuhlins.de > (Stefan Kuhlins) http://kuhlins.de/ ## MOD Description: This very simple MOD redirects anonymous ## users to the login page instead of showing member, groups, ## or profile pages. That way anonymous users can't see ## registered user's data. ## MOD Version: 1.0.8 ## ## Installation Level: Easy ## Installation Time: 1 Minute ## Files To Edit: groupcp.php, memberlist.php, profile.php, viewonline.php ## ## Included Files: n/a ############################################################## ## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the ## latest version of this MOD. Downloading this MOD from other sites could cause malicious code ## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered ## in our MOD-Database, located at: http://www.phpbb.com/mods/ ############################################################## ## Author Notes: ## ## To make this MOD work, the forums must be set to registered users only. ## Go to the "Forum Permissions Control" section and ## set "View", "Read", "Post", etc. to "REG". ## This stops guests from viewing, reading, and posting. ## ## Search engines did not see posts that are for registered users only, ## but you can set some forums open to all users including search engines. ## Go to "Forum Permissions Control" in the admin section and ## set "View" and "Read" to "ALL". ## ## Intentionally I didn't put the redirect on my index and search page, ## because I want some visible forums and topics, ## especially for the rules everybody should read before registering. ## But the code will work in the files index.php and search.php as well. ## Just insert the redirect code the same way as for memberlist.php and ## viewonline.php. ## ## CAUTION: ## Do not put the redirect code after init_userprefs($userdata); in ## profile.php, because that way nobody can register! ## ############################################################## ## MOD History: ## ## 2005-05-21 - Version 1.0.8 ## - Security risk fixed: use values instead of QUERY_STRING for redirect. ## Thanks to pip and Shanana for pointing out this security risk. ## - Bug fix: & instead of & for session id in URLs. ## ## 2005-04-10 - Version 1.0.7 ## - After log on redirect to the desired page instead of the index. ## ## 2005-04-02 - Version 1.0.6 ## - Stopped access to groups with group id. ## ## 2005-04-02 - Version 1.0.5 ## - Now, the anonymous redirect is included later on in group_cp.php. ## Thanks to blackpeter for this improvement. ## ## 2005-03-25 - Version 1.0.4 ## - Reload because the old MOD link did not work. ## ## 2004-08-18 - Version 1.0.3 ## - Updated for phpBB 2.0.10 (only the number of tabs was changed) ## - Added notes ## ## 2004-07-28 - Version 1.0.2 ## - Now it follows phpBB's coding standards. ## ## 2004-07-12 - Version 1.0.1 ## - Bug fix: Anonymous users could not register. ## - Improvement: Anonymous users should not see who's online. ## ## 2004-07-09 - Version 1.0.0 ## - Initial version ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ##############################################################
# #-----[ OPEN ]--------------------------------------------- # groupcp.php
# #-----[ FIND ]--------------------------------------------- # if ( isset($HTTP_GET_VARS['validate']) ) { if ( !$userdata['session_logged_in'] ) { redirect(append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true)); } } # #-----[ REPLACE WITH ]------------------------------------------ # if ( !$userdata['session_logged_in'] ) { redirect(append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true)); }
# #-----[ FIND ]--------------------------------------------- # $s_member_groups = '<select name="' . POST_GROUPS_URL . '">' . $s_member_groups_opt . "</select>"; } }
# #-----[ AFTER, ADD ]--------------------------------------------- # else { redirect(append_sid('login.'.$phpEx.'?redirect=groupcp.'.$phpEx, true)); }
# #-----[ OPEN ]--------------------------------------------- # memberlist.php
# #-----[ FIND ]--------------------------------------------- # init_userprefs($userdata);
# #-----[ AFTER, ADD ]--------------------------------------------- # if ($userdata['user_id'] == ANONYMOUS) { redirect(append_sid('login.'.$phpEx.'?redirect=memberlist.'.$phpEx, true)); }
# #-----[ OPEN ]--------------------------------------------- # viewonline.php
# #-----[ FIND ]--------------------------------------------- # init_userprefs($userdata);
# #-----[ AFTER, ADD ]--------------------------------------------- # if ($userdata['user_id'] == ANONYMOUS) { redirect(append_sid('login.'.$phpEx.'?redirect=viewonline.'.$phpEx, true)); }
# #-----[ OPEN ]--------------------------------------------- # profile.php
# #-----[ FIND ]--------------------------------------------- # if ( $mode == 'viewprofile' ) {
# #-----[ AFTER, ADD ]--------------------------------------------- # if ($userdata['user_id'] == ANONYMOUS) { redirect(append_sid('login.'.$phpEx.'?redirect=profile.'.$phpEx.'&mode=viewprofile&'.POST_USERS_URL.'='.intval($HTTP_GET_VARS[POST_USERS_URL]), true)); }
# #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM
_________________ Streacom DA2 | SilverStone Titanium SX800-LTI 800W | ASRock X299E-ITX/ac | Intel Core i9-9980XE & be quiet! Dark Rock TF | Kingston HyperX Impact 64 GB DDR4 2666 MHz | NVIDIA Titan RTX 24 GB | Intel SSD Optane 905P 480 GB NVMe U.2 & Intel SSD 750 1,2 TB NVMe U.2 & Intel SSD 660p 2 TB NVMe M.2 & Seagate BackUp Plus Portable 56 TB USB | 55" 4K OLED Dell Alienware AW5520QF & 24" LCD EIZO FlexScan EV2451 | Ergotron LX Wall Mount Keyboard Arm | Logitech Craft | Logitech G603 | Logitech F710 | Harman Kardon Sabre SB 35 & Sennheiser RS 175 | Microsoft Windows 7 Ultimate | APC Back-UPS ES 700 | Lenovo ThinkPad X250 | iPhone X 256 GB & Pitaka Aramid | SilverStone ML05B Milo | Corsair SF600 SFX 600W | ASRock X99E-ITX/ac | Intel Xeon E5-2683 v4 & NOCTUA NH-L12S | Kingston HyperX Savage 32 GB DDR4 2400 MHz | NVIDIA GeForce GT 710 1 GB | Intel SSD Optane Memory 32 GB NVMe M.2 & Intel SSD 730 240 GB SATA | Ubuntu Server |
|
Registrovaný: 31.08.06 Príspevky: 99 Témy: 8 Bydlisko: Wien |
Mam dilemu nechat aby forum vydeli aj neregistrovany ale len cast alebo aplikovat tento mod. Aky je vas nazor na tento mod?
|
|
Registrovaný: 01.05.05 Príspevky: 13343 Témy: 1494 Bydlisko: Bratislava | Napísal autor témy JanoF: 23.10.2006 22:42 | |
|
KillerSVK píše: Mam dilemu nechat aby forum vydeli aj neregistrovany ale len cast alebo aplikovat tento mod. Aky je vas nazor na tento mod? ze je to blbost tento mod by som pouzil max na search, memberlist popripade skupiny ale forum by som nechal vzdy verejne dostupne ale iba na citanie, odkial chces brat novych navstevnikov, bez reklamy? jedina moznost su vyhladavace a tym musis poskytnut nejake data, inac aj oni na teba budu kaslat
_________________ Streacom DA2 | SilverStone Titanium SX800-LTI 800W | ASRock X299E-ITX/ac | Intel Core i9-9980XE & be quiet! Dark Rock TF | Kingston HyperX Impact 64 GB DDR4 2666 MHz | NVIDIA Titan RTX 24 GB | Intel SSD Optane 905P 480 GB NVMe U.2 & Intel SSD 750 1,2 TB NVMe U.2 & Intel SSD 660p 2 TB NVMe M.2 & Seagate BackUp Plus Portable 56 TB USB | 55" 4K OLED Dell Alienware AW5520QF & 24" LCD EIZO FlexScan EV2451 | Ergotron LX Wall Mount Keyboard Arm | Logitech Craft | Logitech G603 | Logitech F710 | Harman Kardon Sabre SB 35 & Sennheiser RS 175 | Microsoft Windows 7 Ultimate | APC Back-UPS ES 700 | Lenovo ThinkPad X250 | iPhone X 256 GB & Pitaka Aramid | SilverStone ML05B Milo | Corsair SF600 SFX 600W | ASRock X99E-ITX/ac | Intel Xeon E5-2683 v4 & NOCTUA NH-L12S | Kingston HyperX Savage 32 GB DDR4 2400 MHz | NVIDIA GeForce GT 710 1 GB | Intel SSD Optane Memory 32 GB NVMe M.2 & Intel SSD 730 240 GB SATA | Ubuntu Server |
|
| Stránka: 1 z 1
| [ Príspevkov: 3 ] | |
Podobné témy | Témy | Odpovede | Zobrazenia | Posledný príspevok |
---|
| Tema o Anonymous [ Choď na stránku: 1 ... 5, 6, 7 ] v Spoločnosť, politika, psychológia, filozofia, náboženstvo | 182 | 8515 | 26.03.2012 13:51 TommyHot | | Anonymous oznamuje “Operation Facebook” [ Choď na stránku: 1, 2, 3 ] v Novinky | 89 | 4693 | 06.11.2011 16:27 Freelan | | Anonymous nabúrali americké Ministerstvo spravodlivosti v Novinky | 13 | 665 | 26.05.2012 0:23 89Aquarius | | thunderbird users v Sieťové a internetové programy | 0 | 302 | 22.11.2010 16:46 MKI-Miro | | Hackeri z Anonymous spúšťajú vlastný hudobný portál v Novinky | 17 | 898 | 22.04.2012 20:53 El_Silver | | Anonymous plánujú odstaviť stránku Fox News (video) v Novinky | 6 | 642 | 30.10.2011 22:01 89Aquarius | | PREKLAD: Auto Delete Users v Redakčné systémy | 11 | 2602 | 06.01.2008 11:36 capricorn7 | | PREKLAD: Prune Users SK v Redakčné systémy | 0 | 2231 | 24.02.2007 12:57 JanoF | | Users of the day v Redakčné systémy | 5 | 1059 | 08.03.2007 9:43 johny694 | | PREKLAD: Comments on users SK v Redakčné systémy | 0 | 2236 | 29.01.2007 16:07 JanoF | | Redirect odkazov v Správy pre vedenie fóra | 15 | 3371 | 05.05.2007 11:15 JanoF | | .htaccess redirect? v Ostatné | 6 | 611 | 10.06.2010 13:29 coldak | | redirect htaccess v Ostatné | 2 | 330 | 10.10.2013 19:37 neopagan | | google redirect v Sieťové a internetové programy | 0 | 432 | 06.06.2011 20:19 p4tooo | | 404 redirect v PHP, ASP | 1 | 557 | 13.08.2012 8:23 Ďuri | | windows 7 - administrators,users..problem s torrentami v Operačné systémy Microsoft | 1 | 472 | 28.06.2010 15:34 romino |
| Nemôžete zakladať nové témy v tomto fóre Nemôžete odpovedať na témy v tomto fóre Nemôžete upravovať svoje príspevky v tomto fóre Nemôžete mazať svoje príspevky v tomto fóre
|
|