1
Sept0r
Main Page
  • 2004/5/16 0:19

  • Sept0r

  • Just popping in

  • Posts: 7

  • Since: 2004/5/15


Is there a main page that is ran by every other page? Like in phpbb, the extension.inc file is used for the whole forum. Is there a file like that for Xoops?

2
lucastds
Re: Main Page
  • 2004/5/16 1:13

  • lucastds

  • Just popping in

  • Posts: 32

  • Since: 2004/2/20


The files header.php and footer.php (in root directory of Xoops) are loaded on every page. But you can use a block (configure it to display on every page) or edit your theme for this purpose.

Tell us exactly what you want to do on every pages and we can suggest something better.

3
Sept0r
Re: Main Page
  • 2004/5/16 1:17

  • Sept0r

  • Just popping in

  • Posts: 7

  • Since: 2004/5/15


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.

4
lucastds
Re: Main Page
  • 2004/5/16 1:44

  • lucastds

  • Just popping in

  • Posts: 32

  • Since: 2004/2/20


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.

5
Apek81
Re: Main Page
  • 2004/5/16 2:59

  • Apek81

  • Just popping in

  • Posts: 20

  • Since: 2003/6/28


hey..theres a module for protecting your xoops..
it is called antiDOS...
find it HERE
or maybe u can share ur script with us???

6
Munkus
Re: New antidos, now called Xoops-Protector
  • 2004/9/11 14:47

  • Munkus

  • Friend of XOOPS

  • Posts: 20

  • Since: 2003/2/2 0


btw, if anyone is interested, the new module from Peak can be found here:

It is now called Xoops-Protector:

ZIPDownload

TARDownload

7
sbkiller
Re: New antidos, now called Xoops-Protector
  • 2004/9/12 1:48

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


Xoops Protector...

How does it work?
Do I really need it?
Wasn't XOOPS with apply security fix to it rather a module?

Login

Who's Online

150 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 150


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits