From f39735adc85901a3a2db83d16334ffff66960f65 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Thu, 18 Sep 2014 15:51:24 +0200 Subject: feature roadmap --- public_html/functions.php | 6 +++--- public_html/vfs_bootstrap.php | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'public_html') diff --git a/public_html/functions.php b/public_html/functions.php index a5dbd83..c185bd5 100644 --- a/public_html/functions.php +++ b/public_html/functions.php @@ -7,15 +7,15 @@ function failure($reason, $httpcode, $ajax = true, $heading = NULL){ if($ajax){ # just echo the reason to the ajax response - echo $reason; + echo htmlentities($reason); exit } // TODO: Put pretty HTML here, please if($heading != NULL) - echo $heading; + echo htmlentities($heading); - echo $reason; + echo htmlentities($reason); # exit the script here exit; diff --git a/public_html/vfs_bootstrap.php b/public_html/vfs_bootstrap.php index d3624aa..341b0aa 100644 --- a/public_html/vfs_bootstrap.php +++ b/public_html/vfs_bootstrap.php @@ -2,5 +2,9 @@ # loads the vfs environment require_once( dirname(__FILE__) . '/vfs_config.php'); + +if ( ! defined(VFS_CLASS) ) + define('VFS_CLASS', 'class/'); + require(ABSPATH . 'functions.php'); -require(ABSPATH . 'class/mysql.php'); +require(ABSPATH . VFS_CLASS . 'mysql.php'); -- cgit v1.2.3