Chapter 16. Modifying mainfile.php

Table of Contents
16.1. How to allow special HTML tags
16.2. How to change the order of messages
16.3. How to change the duration of a public broadcast message

The mainfile.php file in the root directory of PHP-Nuke contains all commonly used functions and plays a crucial role in PHP-Nuke. We devote this chapter to a closer investigation of this central file. We show:

WarningWarning
 

Most of the changes discussed in this chapter have direct or indirect security implications (see Chapter 23). No line in mainfile.php was put there without some reason, the reason being often security-related. Whenever you comment a line that seems to do a too restrictive check on user input, for example, bear in mind that in the worst of all cases you may run the risk of being hacked because of the absence of exactly a check like that.