Um den protector zu benutzen, müssen Sie noch ein paar Einstellungen an Ihrem xoopscube vornehmen.
1. Öffnen Sie Ihre mainfile.php und
fügen Sie unter
define('XOOPS_ROOT_PATH', 'IHR_ROOT_PFAD');
folgendes ein:
// XOOPS Trusted Path
// This is option. If you need this path, input value. The trusted path
// should be a safety directory which web browsers can't access directly.
define('XOOPS_TRUST_PATH', XOOPS_ROOT_PATH.'/xmodule');
2. Legen Sie das Verzeichnis 'xmodule' in Ihrem ROOT Verzeichnis an
3. Kopieren Sie die Dateien xoops_trust_path/ in das Verzeichnis /xmodule
4. Jetzt können Sie das Modul protector in Ihr /modules – Verzeichnis kopieren
5. protector installieren
6. mainfile.php öffnen und folgendes eintragen
if (!defined('_LEGACY_PREVENT_LOAD_CORE_') && XOOPS_ROOT_PATH != '') {
include XOOPS_TRUST_PATH.'/modules/protector/include/precheck.inc.php';
@include_once XOOPS_ROOT_PATH.'/include/cubecore_init.php';
if (!isset($xoopsOption['nocommon']) && !defined('_LEGACY_PREVENT_EXEC_COMMON_')) {
include XOOPS_ROOT_PATH.'/include/common.php';
}
include XOOPS_TRUST_PATH.'/modules/protector/include/postcheck.inc.php';
}