diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -2,6 +2,15 @@ // What directory are we in on the server. define('BASEPATH', dirname(__FILE__)); +$xss_file = BASEPATH.'/xss-check.php'; +if (file_exists($xss_file)) { + require($xss_file); + if (xss_attack()) { + echo "execution halted to prevent XSS attack."; + exit(); + } +} + // Decide where to look for things define('LIBPATH', BASEPATH.'/src/lib'.PATH_SEPARATOR.BASEPATH.'/src/ext'); define('MODELPATH', BASEPATH.'/src/models'); |