1
yingzhao
mainfile.php precheck
  • 2010/1/18 17:19

  • yingzhao

  • Just popping in

  • Posts: 45

  • Since: 2008/5/12


Hi all,

I am using XOOPS 2.3.3. I modified mainfile.php to 444, and I do not see any warning in the System module. Then, I installed protector module that comes with XOOPS 2.3.3. Now the protector give me this warning.

'mainfile.php' : missing precheck Not secure
You should edit your mainfile.php like written in README.

I do not know which README that it is refering to. Can someone tell me what to do? Thank you.

2
Burning
Re: mainfile.php precheck
  • 2010/1/18 21:33

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

With XOOPS 2.3.3 you have to add to lines in mainfile.php to secure your website (no more necessary if you use XOOPS 2.4.x thanks to Preloads) :

Quote:

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

3
yingzhao
Re: mainfile.php precheck
  • 2010/1/19 3:27

  • yingzhao

  • Just popping in

  • Posts: 45

  • Since: 2008/5/12


Thank you. I added these lines to my mainfile.php, and I am getting a blank page. I turned on the debugger, but I still did not see anything. Is there anything else that I am missing? Thank you.

Login

Who's Online

353 user(s) are online (311 user(s) are browsing Support Forums)


Members: 0


Guests: 353


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