1
ukdave
Block direct linking Postnuke equivalent.
  • 2004/9/3 0:29

  • ukdave

  • Just popping in

  • Posts: 67

  • Since: 2003/6/27


In Postnuke the following blocks direct linking:

if (!defined("LOADED_AS_MODULE"))
{
die ("You can't access this file directly...");
}



Is there a XOOPS equivalent?

2
Mithrandir
Re: Block direct linking Postnuke equivalent.

if (!defined('XOOPS_MAINFILE_INCLUDED')) {
    die(
'You cannot access this file directly...");
}

3
ukdave
Re: Block direct linking Postnuke equivalent.
  • 2004/9/3 9:44

  • ukdave

  • Just popping in

  • Posts: 67

  • Since: 2003/6/27


Thanks!