1
Nexarcon
Protector 2.52
  • 2006/9/15 23:19

  • Nexarcon

  • Just popping in

  • Posts: 10

  • Since: 2006/9/14


Hey, I'm using XOOPS 2.0.14 and I installed the Protector 2.52 module.
Installing the module was fine, but when I tried to add the code to my mainfile
define('XOOPS_GROUP_ADMIN''1');
    
define('XOOPS_GROUP_USERS''2');
    
define('XOOPS_GROUP_ANONYMOUS''3');

    [
color=ff0000]include( XOOPS_ROOT_PATH '/modules/protector/include/precheck.inc.php' ) ;[/color]
    if (!isset(
$xoopsOption['nocommon']) [color=0000ff]&& XOOPS_ROOT_PATH != ''[/color] ) {
        include 
XOOPS_ROOT_PATH."/include/common.php";
    }
    [
color=ff0000]include( XOOPS_ROOT_PATH '/modules/protector/include/postcheck.inc.php' ) ;[/color]

It loads blank pages, every single time.
I would really like to have protector running. Any help would be greatly appreciated. Thanks!

2
msdana
Re: Protector 2.52
  • 2006/9/15 23:23

  • msdana

  • Just can't stay away

  • Posts: 817

  • Since: 2005/12/11


Try upgrading to the latest version, which is 2.57. You can find it at the developer's website.

When downloading modules, it's a good practice to visit the developer's website to check for a current version
[size=x-small]If God is watching us, the least we can do is be entertaining.[/size]
Graphic Worx : Xoops Themes

3
Nexarcon
Re: Protector 2.52
  • 2006/9/15 23:42

  • Nexarcon

  • Just popping in

  • Posts: 10

  • Since: 2006/9/14


Still the same problem, still loads blank pages every time.
Thanks for the help though, good to get the latest version.

4
Lance_
Re: Protector 2.52
  • 2006/9/15 23:47

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


I don,t know if this can have an incidence but your code above doesn't reflect the 2.0.14 mainfile exactly. Some code is missing.

define("XOOPS_GROUP_ADMIN""1");
    
define("XOOPS_GROUP_USERS""2");
    
define("XOOPS_GROUP_ANONYMOUS""3");

    foreach ( array(
'GLOBALS''_SESSION''HTTP_SESSION_VARS''_GET''HTTP_GET_VARS''_POST''HTTP_POST_VARS''_COOKIE''HTTP_COOKIE_VARS''_REQUEST''_SERVER''HTTP_SERVER_VARS''_ENV''HTTP_ENV_VARS''_FILES''HTTP_POST_FILES''xoopsDB''xoopsUser''xoopsUserId''xoopsUserGroups''xoopsUserIsAdmin''xoopsConfig''xoopsOption''xoopsModule''xoopsModuleConfig''xoopsRequestUri') as $bad_global ) {
        if ( isset( 
$_REQUEST[$bad_global] ) ) {
            
header'Location: '.XOOPS_URL.'/' );
            exit();
        }
    }

    if (!isset(
$xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
        include 
XOOPS_ROOT_PATH."/include/common.php";
    }


Should use the correct mainfile for starters. ???
Cheers.
GDL-Web.com :: Website development.
Xoopslance.com::Freelancing and Projects
thelionsden-arena.net:: Clan/League/Ladder Hosting

5
msdana
Re: Protector 2.52
  • 2006/9/15 23:47

  • msdana

  • Just can't stay away

  • Posts: 817

  • Since: 2005/12/11


Have you followed the FAQ on blank pages? Post your error message.

Also, I remember something about banning your IP in Protector...did you follow those instructions?

[EDIT] You are correct, Lance_. However, the mainfile he posted reflects my mainfile on a 2.2.4 site Strange...
[size=x-small]If God is watching us, the least we can do is be entertaining.[/size]
Graphic Worx : Xoops Themes

6
Nexarcon
Re: Protector 2.52
  • 2006/9/15 23:57

  • Nexarcon

  • Just popping in

  • Posts: 10

  • Since: 2006/9/14


Quote:

Lance_ wrote:
I don,t know if this can have an incidence but your code above doesn't reflect the 2.0.14 mainfile exactly. Some code is missing.

define("XOOPS_GROUP_ADMIN""1");
    
define("XOOPS_GROUP_USERS""2");
    
define("XOOPS_GROUP_ANONYMOUS""3");

    foreach ( array(
'GLOBALS''_SESSION''HTTP_SESSION_VARS''_GET''HTTP_GET_VARS''_POST''HTTP_POST_VARS''_COOKIE''HTTP_COOKIE_VARS''_REQUEST''_SERVER''HTTP_SERVER_VARS''_ENV''HTTP_ENV_VARS''_FILES''HTTP_POST_FILES''xoopsDB''xoopsUser''xoopsUserId''xoopsUserGroups''xoopsUserIsAdmin''xoopsConfig''xoopsOption''xoopsModule''xoopsModuleConfig''xoopsRequestUri') as $bad_global ) {
        if ( isset( 
$_REQUEST[$bad_global] ) ) {
            
header'Location: '.XOOPS_URL.'/' );
            exit();
        }
    }

    if (!isset(
$xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
        include 
XOOPS_ROOT_PATH."/include/common.php";
    }


Should use the correct mainfile for starters. ???
Cheers.


Cheers, I figured out my problem from there.
Thanks for that Lance, I'm now sorta secured!
Cheers for your help too msdana :)
Thanks again and have a good day :)

Login

Who's Online

442 user(s) are online (376 user(s) are browsing Support Forums)


Members: 0


Guests: 442


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits