Restricted access
From Joomla! Documentation
(Difference between revisions)
(New page: {{cookiejar}}) |
|||
| Line 1: | Line 1: | ||
| − | + | Most PHP files within Joomla! begin with the following statement: | |
| + | |||
| + | defined( '_JEXEC' ) or die( 'Restricted access' ); | ||
| + | |||
| + | This statement checks to see if the file is being called from within a Joomla! session. This protects your site by making it more difficult for a cracker/hacker to damage your site. | ||
| + | |||
| + | However, this line should NOT be included in your main index.php file, since this is the program that starts the Joomla! session. | ||
Revision as of 08:10, 18 September 2008
Most PHP files within Joomla! begin with the following statement:
defined( '_JEXEC' ) or die( 'Restricted access' );
This statement checks to see if the file is being called from within a Joomla! session. This protects your site by making it more difficult for a cracker/hacker to damage your site.
However, this line should NOT be included in your main index.php file, since this is the program that starts the Joomla! session.