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:
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.