From a93461b231fb94f3a6a9df09a30557732201ddcc Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Mon, 14 Oct 2013 16:06:56 +0000 Subject: added new EasyGiant Library --- h-source/Library/Params.php | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) (limited to 'h-source/Library/Params.php') diff --git a/h-source/Library/Params.php b/h-source/Library/Params.php index d98c3b4..433a952 100644 --- a/h-source/Library/Params.php +++ b/h-source/Library/Params.php @@ -1,24 +1,7 @@ . if (!defined('EG')) die('Direct access not allowed!'); @@ -26,14 +9,11 @@ if (!defined('EG')) die('Direct access not allowed!'); class Params { - //allowed database type - public static $allowedDb = array('Mysql','Mysqli','None'); + public static $allowedDb = array('Mysql','Mysqli','None'); //allowed database type - //allowed sanitize functions - public static $allowedSanitizeFunc = 'sanitizeAll,sanitizeDb,sanitizeHtml,forceInt,forceNat,none,md5,sha1'; + public static $allowedSanitizeFunc = 'sanitizeAll,sanitizeDb,sanitizeHtml,forceInt,forceNat,none,md5,sha1,strip_tags'; //allowed sanitize functions - //allowed hash functions - public static $allowedHashFunc = array('md5','sha1'); + public static $allowedHashFunc = array('md5','sha1'); //allowed hash functions //conventional null value for the value of the field in the createWhereClause method of the Model class public static $nullQueryValue = false; @@ -49,11 +29,11 @@ class Params public static $htmlentititiesCharset = DEFAULT_CHARSET; //list of symbols used in the statements of the where clause of the select queries - public static $whereClauseSymbolArray = array('<','>','!=','<=','>=','in(','not in(','like'); + public static $whereClauseSymbolArray = array('<','>','!=','<=','>=','in(','not in(','like','between'); //is the mbstring extension enabled? public static $mbStringLoaded = false; - + //subfolder of the View folder where to look for view files public static $viewSubfolder = null; -- cgit v1.2.3