Modifying mainfile.php

Chapter 16. Modifying mainfile.php

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:

Warning Warning

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.


Site Info

Last SeenLast Seen
  • neralex
  • FireATST
Server TrafficServer Traffic
  • Total: 386,863,254
  • Today: 25,007
Server InfoServer Info
  • Jul 21, 2019
  • 10:26 am CEST