21
Medic1
Re: Protector
  • 2007/4/4 21:06

  • Medic1

  • Just popping in

  • Posts: 44

  • Since: 2005/10/1


I want to thank everyone for helping us.

Question:

When I add the precheck to the mainfile.php all I get is a blank page. I still have no IP ban set.

What would cause this?

Here is what I have....

define('XOOPS_GROUP_ADMIN', '1');
define('XOOPS_GROUP_USERS', '2');
define('XOOPS_GROUP_ANONYMOUS', '3');

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



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";
}
}
?>


Thank you all again.

22
skenow
Re: Protector
  • 2007/4/5 1:31

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


When troubleshooting Protector, it is very important to know which version of Protector you are using.

Also helpful is php version, MySQL version, XOOPS version

There is also a postcheck you need to add to your mainfile, as instructed in the README.

What page are you trying to access when you get the blank page?

23
Chappy
Re: Protector
  • 2007/4/5 2:12

  • Chappy

  • Friend of XOOPS

  • Posts: 456

  • Since: 2002/12/14


Here's some of mine (identifying items changed or deleted):

Quote:

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();
}
}
//added following line for protector
include XOOPS_TRUST_PATH.'/modules/protector/include/precheck.inc.php' ;

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

//added following line for protector
include XOOPS_TRUST_PATH.'/modules/protector/include/postcheck.inc.php' ;

}


When I first installed, I also got a Blank Page error. The following link helped me debug it:

http://xoops.peak.ne.jp/md/d3forum/index.php?post_id=6400
MMM...It tastes like chicken! ...

24
vaughan
Re: Protector
  • 2007/4/5 5:06

  • vaughan

  • Friend of XOOPS

  • Posts: 680

  • Since: 2005/11/26


where on earth does it say to add this here >

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

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


what it says is to edit the file so it looks like this >

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


if you look you can clearly see where to add the 2 lines.

you add them round the existing line that has nocommon in it (near the end of the file). I gave an example on the 1st page of this thread.

25
Medic1
Re: Protector
  • 2007/4/5 21:31

  • Medic1

  • Just popping in

  • Posts: 44

  • Since: 2005/10/1


I have ver 2.52
It shows it added after the

define('XOOPS_GROUP_ADMIN', '1');
define('XOOPS_GROUP_USERS', '2');
define('XOOPS_GROUP_ANONYMOUS', '3');

in the read me file.
I can send you a copy of it if you would like.

Perhaps I dont understand what your trying to explain.
Im a paramedic...not a programmer, But I am trying.

26
Medic1
Re: Protector
  • 2007/4/5 21:58

  • Medic1

  • Just popping in

  • Posts: 44

  • Since: 2005/10/1


I finally understood and have it corrected.


My last problem is

'allow_url_fopen' : on

Where can I get a copy of a php.ini to add to the files as described earlier in this post.

Thanks again for the help.

Patrick

27
carpeweb
Re: Protector
  • 2007/4/7 1:11

  • carpeweb

  • Just popping in

  • Posts: 38

  • Since: 2002/9/12


Quote:
Go to the modules "Preference" in Admin and turn on "sanitising".


I did a word search (Firefox) and did not find this in any of the Preferences screens
* General Settings [Edit]
* User Info Settings [Edit]
* Meta Tags and Footer [Edit]
* Word Censoring Options [Edit]
* Search Options [Edit]
* Mail Setup [Edit]
* Authentication Options [Edit]

Are these the screens you meant? If so, where is sanitising? If not, where should I look?

Thanks,
Jim

28
skenow
Re: Protector
  • 2007/4/7 1:17

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


Look in the preferences for Protector, there are several options for sanitizing.

29
vaughan
Re: Protector
  • 2007/4/7 9:29

  • vaughan

  • Friend of XOOPS

  • Posts: 680

  • Since: 2005/11/26


Quote:

Medic1 wrote:
I finally understood and have it corrected.


My last problem is

'allow_url_fopen' : on

Where can I get a copy of a php.ini to add to the files as described earlier in this post.

Thanks again for the help.

Patrick


you can create the file yourself using notepad in windows or wordpad, then just save it as php.ini

i've zipped my php.ini file for you, which you can download from HERE

simply unzip it and place the php.ini file in your XOOPS root, then in each modules root folder + modules admin folder. ie >

xoops root (where mainfile.php is located)

then in modules/your module/ (where the modules xoops_version.php) is located

also in modules/your module/admin/

30
Medic1
Re: Protector
  • 2007/4/7 12:11

  • Medic1

  • Just popping in

  • Posts: 44

  • Since: 2005/10/1


Thank you Vaughan.

F.Y.I.
The site that was hacked is a motorcycle emergency group.in short...2 wheels can go where 4 can not during an emergency.
We're attached to the medical dept. of kane county ILL.
We are Volunteer firemen, police, paramedics, and basic people.
In a week or so if you would like to view the site and give ma any advice you can go to http://www.rescueriders.org

I could use the advice.

Thank you again.

Login

Who's Online

372 user(s) are online (276 user(s) are browsing Support Forums)


Members: 0


Guests: 372


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