We have finally reached the point where we are able to have a total lock down our site.
Not a member...no BW....LOL....
But...in order to do so you not only have to go into your membership levels and set say, non members to NOT perform this or that action, you also have to add this bit of code to EVERY page.
Why....
Well...
Here's an example.
If I config my settings so nonmembers cannot "perform a search".
This script still lets nonmembers get to the search.php page.
They hit search and then they are taken to the
"You need to login before you can use this page".....DUH!!!!
WHY.....???
False hope...?..LOL........Irritating is what that is......
Why not redirect them to the join page or the default
"You need to login before you can use this page" page from the start.....LOL...????
Also, and this has been a thorn in my side for some time now, while you are editing
your php pages enable/change the code so you, the admin, has all the privs of a member and more? Hell your the admin...lol....these guys kill me....still... IQ....anyway...
We all learn by doing and trial and error...LOL.....Code:In ALL your .php files find if ( !( $logged['admin'] = member_auth( 1, false ) ) ) if ( !( $logged['member'] = member_auth( 0, false ) ) ) if ( !( $logged['aff'] = member_auth( 2, false )) ) $logged['moderator'] = member_auth( 3, false ); After add $logged['member'] = member_auth( 0, true ); $member['ID'] = (int)$_COOKIE['memberID']; If you want to truly be GOD on your site edit this code.. if ( !( $logged['admin'] = member_auth( 1, false ) ) ) if ( !( $logged['member'] = member_auth( 0, false ) ) ) if ( !( $logged['aff'] = member_auth( 2, false )) ) $logged['moderator'] = member_auth( 3, false ); And give yourself the privs.


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks