4
Quote:
Sept0r wrote:
I'm going to install a security script on my site to prevent DDoS attacks, and I want to know if there's a main file that runs all the scripts like the extensive.inc does on phpbb instead of putting the script in every page like I did with Postnuke because it didn't have a main file.
The file header.php is loaded on most pages (except if you have any module with pages that do not load the header file, like a popup window). You can try to modify this file.
But I have a better idea. The file mainfile.php (root directory) is loaded on EVERY (no exceptions) pages of Xoops. You can add the following line to the end of this file (before the last "}"):
include XOOPS_ROOT_PATH."/yourfile.php";
where yourfile.php is the name of the file you want to include on every pages. Create a file with this name and put it in the root directory of Xoops. Now you can add your security script in this file and it will be loaded on every pages of Xoops.