Monday, October 1, 2012

Prevent direct file access to functions.php

if (!empty($_SERVER['SCRIPT_FILENAME']) && 'functions.php' == basename($_SERVER['SCRIPT_FILENAME']))
{
die ('No access!');
}

No comments:

Post a Comment