update v3
- You cannot open a new topic into this forum
- Guests cannot post into this forum
msg# 1
in my web I had last version of protector, all OK
I update, and when I go to module "protector" I get a blank page....
I use language English for protector
Debug on:
Fatal error: Cannot redeclare class protector in /usr/home/voraus/www/v2_sp/modules/protector/class/protector.php on line 3
All errors (0) queries (9) blocks (0) extra (0) timers (3)
SELECT * FROM xoops_config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC
SELECT sess_data FROM xoops_session WHERE sess_id = 'bf25f5dc3d9c3c7c2e45acbcb1d3f546'
SELECT * FROM xoops_users WHERE uid=1
DELETE FROM xoops_protector_access WHERE expire < UNIX_TIMESTAMP()
SELECT COUNT(*) FROM xoops_protector_access WHERE ip='85.57.9.60' AND request_uri='/v2/modules/protector/admin/index.php'
SELECT COUNT(*) FROM xoops_protector_access WHERE ip='85.57.9.60'
INSERT INTO xoops_protector_access SET ip='85.57.9.60',request_uri='/v2/modules/protector/admin/index.php',expire=UNIX_TIMESTAMP()+'60'
SELECT * FROM xoops_modules WHERE dirname = 'protector'
SELECT * FROM xoops_config WHERE (conf_modid = '41') ORDER BY conf_order ASC
Total: 9 queries
In mainfile.php
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();
}
}
require XOOPS_ROOT_PATH.'/include/fastestcache.php' ;
include( XOOPS_ROOT_PATH . '/modules/protector/include/precheck.inc.php' ) ;
if (!isset($xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '' ) {
include XOOPS_ROOT_PATH."/include/common.php";
fastestcache_setcookie() ; // Insert this
include XOOPS_ROOT_PATH."/modules/tplsadmin/include/autoupdate.inc.php" ;
}
include( XOOPS_ROOT_PATH . '/modules/protector/include/postcheck.inc.php' ) ;
}
any idea?
thanks for ALL your modules
Votes:6
Average:10.00
msg# 1.1
sorryyyyyy........
I had in my mainfile
include( XOOPS_ROOT_PATH . '/modules/protector/include/precheck.inc.php' ) ;
instead of
XOOPS_TRUST_PATH
Votes:5
Average:10.00