Created
September 26, 2013 13:55
-
-
Save rsharrer/6714594 to your computer and use it in GitHub Desktop.
Prevent direct file access to functions.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'functions.php' == basename($_SERVER['SCRIPT_FILENAME'])) | |
{ | |
die ('No access!'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment