1011

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View 1011 as PDF for free.

More details

  • Words: 418
  • Pages: 4
############################################### ## hack title: restrict guest access ## hack version: 1.0.0 (phpbb 2.0.4) ## author: encoder <[email protected]> ## ## description: denies guests access to member profiles, usergroups, ## memberlist, search, staff pages and hides the personal ## information displayed at the bottom of posts. ## ## installation level: easy ## installation time: 5 minutes ## ## files to edit: 6 ## viewtopic.php ## memberlist.php ## groupcp.php ## profile.php ## search.php ## staff.php ## ## ## support: http://www.phpbbhacks.com/forums ## copyright: �2003 restrict guest access 1.0.0 - encoder ## ############################################### ## you downloaded this hack from phpbbhacks.com, the #1 source for phpbb related downloads. ## please visit http://www.phpbbhacks.com/forums for support. ############################################### ## this hack is released under the gpl license. ## this hack can be freely used, but not distributed, without permission. ## intellectual property is retained by the hack author(s) listed above. ############################################### # #-----[ open ]-----------------------------------------# viewtopic.php # #-----[ find ]-----------------------------------------# if ( $poster_id != anonymous ) { $temp_url = append_sid("profile.$phpex?mode=viewprofile&" . post_users_url . "=$poster_id"); # #-----[ replace with ]-----------------------------------# if ( $poster_id != anonymous && $userdata['session_logged_in'] ) { $temp_url = append_sid("profile.$phpex?mode=viewprofile&" . post_users_url . "=$poster_id");

# #-----[ open ]-----------------------------------------# memberlist.php # #-----[ find ]-----------------------------------------# // // end session management // # #-----[ after, add ]-----------------------------------# // begin 'restrict guest access' mod if ( !$userdata['session_logged_in'] ) { redirect(append_sid("login.".$phpex."?redirect=memberlist.".$phpex, true)); exit; } // end 'restrict guest access' mod # #-----[ open ]-----------------------------------------# groupcp.php # #-----[ find ]-----------------------------------------# // // end session management // # #-----[ after, add ]-----------------------------------# // begin 'restrict guest access' mod if ( !$userdata['session_logged_in'] ) { redirect(append_sid("login.".$phpex."?redirect=groupcp.".$phpex, true)); exit; } // end 'restrict guest access' mod # #-----[ open ]-----------------------------------------#

profile.php # #-----[ find ]-----------------------------------------# if (!empty($http_post_vars['sid']) || !empty($http_get_vars['sid'])) { $sid = (!empty($http_post_vars['sid'])) ? $http_post_vars['sid'] : $http_get_vars['sid']; } else { $sid = ''; } # #-----[ after, add ]-----------------------------------# // begin 'restrict guest access' mod $u = ( isset($http_get_vars[post_users_url]) ) ? intval($http_get_vars[post_users_url]) : intval($http_post_vars[post_users_url]); $mode = ( isset($http_get_vars['mode']) ) ? $http_get_vars['mode'] : $http_post_vars['mode']; if ( !$userdata['session_logged_in'] && $mode == 'viewprofile') { redirect(append_sid("login.$phpex?redirect=profile.$phpex&mode=viewprofile&" .post_users_url."=".$u, true)); exit; } // end 'restrict guest access' mod # #-----[ open ]-----------------------------------------# search.php # #-----[ find ]-----------------------------------------# // // end session management // # #-----[ after, add ]-----------------------------------# if( !$userdata['session_logged_in'] || !isset($userdata)) { redirect("login.$phpex?redirect=search.$phpex"); } #

#-----[ open ]-----------------------------------------# staff.php note: this is only if you have installed the hack "staff site". # #-----[ find ]-----------------------------------------# $userdata = session_pagestart($user_ip, page_staff, $session_length); init_userprefs($userdata); # #-----[ after, add ]-----------------------------------# if( !$userdata['session_logged_in'] || !isset($userdata)) { redirect("login.$phpex?redirect=staff.$phpex"); } # #-----[ save/close all files ]-------------------------# # eom

Related Documents

1011
October 2019 35
1011
November 2019 37
Bhagavatham 1011
December 2019 38
00-1011
May 2020 21
Sa-1011
June 2020 10
98-1011
May 2020 17