1
animas
Protector Settings Help
  • 2005/3/25 4:52

  • animas

  • Quite a regular

  • Posts: 206

  • Since: 2005/1/30


These are the codes from default mainfile.php
define('XOOPS_GROUP_ADMIN''1');      define('XOOPS_GROUP_USERS''2');      define('XOOPS_GROUP_ANONYMOUS''3');        if (!isset($xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {          include XOOPS_ROOT_PATH."/include/common.php";      }


So I replace them with the below?
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'])) {          include XOOPS_ROOT_PATH."/include/common.php";      }      include( XOOPS_ROOT_PATH '/modules/protector/include/postcheck.inc.php' ) ;


What does it means by
"Make sandwitch to these 3 lines
if (!isset($xoopsOption['nocommon'])) {
include XOOPS_ROOT_PATH."/include/common.php";
}"

2
karedokx
Re: Protector Settings Help
  • 2005/3/25 7:25

  • karedokx

  • Quite a regular

  • Posts: 319

  • Since: 2004/7/1 6


what an analogy isn't it (make sandwitch)

it mean that you need to put the following command before and after the "if (!isset($xoopsOption['nocommon'])) ..." line.

so it will be like this:
...
define('XOOPS_GROUP_ANONYMOUS', '3');

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

at those 2 lines (i highlighted in bold).

hope it make it clearer for you.

3
animas
Re: Protector Settings Help
  • 2005/3/25 8:31

  • animas

  • Quite a regular

  • Posts: 206

  • Since: 2005/1/30


Thanks.

Check if Protector works well
Contaminations:
http://localhost/xoops/?xoopsConfig%5Bnocommon%5D=1
Isolated Comments:
http://localhost/xoops/?cid=%2Cpassword+%2F%2A

What do these two links prove individually?


How do I change " 'allow_url_fopen' : on Not secure " when I am using shared hosting?

4
tjnemez
Re: Protector Settings Help
  • 2005/3/25 8:54

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


i had to get my hosting company to set this 'allow_url_fopen' to "off"

5
Dave_L
Re: Protector Settings Help
  • 2005/3/25 10:14

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Quote:
Check if Protector works well ... What do these two links prove individually?


They simulate a couple of security exploits, to verify that the Protector module detects and handles them.

Login

Who's Online

166 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 166


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