1
xoops - 2.0.18.1
Protector - 3.1
I'm simply trying to install it.
My hosting is with godaddy, so I have no folder called htdocs unless the root of my web folder is htdocs.
Here is the general setup....
http://www.MYSITE.com <-- think of as root. Nothing here.
http://www.MYSITE.com/x <--- where XOOPS was installed. url to get to main XOOPS site.
In the
http://www.MYSITE.com area I created a /trust folder. Here is where I copied the contents of Xoops_Trust_Path from the protector zip.
I've edited my
http://www.MYSITE.com/x/mainfile.php and added the location of the /trust folder.
I uploaded the module to the /../x/module folder and installed successfully.
I'm now to the point of doing this (from the beginners sticky)
Quote:
Once you've installed the module, go back and open mainfile.php again. There are some more changes you will need to make to activate Protector on your site. You can read the complete instructions in /xoops_trust_path/modules/protector/docs/readme, but here is the excerpt
define('XOOPS_GROUP_ADMIN', '1');
define('XOOPS_GROUP_USERS', '2');
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' ) ;
My mainfile.php does not have alot of that. Here is what mine looks like from that section of it...
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();
}
}
if (!isset($xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
include XOOPS_ROOT_PATH."/include/common.php";
}
}
?>
Do I just need to add the above from the example? Is this a version conflict? Is there documentation not in french? Is my folder structure ok? Lastly, ever since I uploaded a new mainfile.php to the /../x/ I get this at the top of the admin portion
Quote:
WARNING: File /home/content/j/p/n/jpnorberg/html/x/mainfile.php is writeable by the server.
Please change the permission of this file for security reasons.
in Unix (444), in Win32 (read-only)