aboutsummaryrefslogtreecommitdiff
path: root/h-source/Library/Params.php
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Library/Params.php')
-rw-r--r--h-source/Library/Params.php32
1 files changed, 6 insertions, 26 deletions
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 @@
<?php
-// EasyGiant is a PHP framework for creating and managing dynamic content
-//
-// Copyright (C) 2009 - 2011 Antonio Gallo
+// All EasyGiant code is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
// See COPYRIGHT.txt and LICENSE.txt.
-//
-// This file is part of EasyGiant
-//
-// EasyGiant is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// EasyGiant is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with EasyGiant. If not, see <http://www.gnu.org/licenses/>.
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;