HOR-244

HOR-244

HOR-244

HOR-244

HOR-244

HOR-244
This commit is contained in:
Paula V. Quispe
2016-02-17 16:44:14 -04:00
parent abdc846944
commit 4f72a3af32
4 changed files with 92 additions and 1 deletions

View File

@@ -1163,6 +1163,29 @@ class System
return $config;
}
/*
* Get information about the queries permitted and tables we can modified
* @access public
* @param string $globalIniFile
* @return array of execute query Black list
*/
public static function getQueryBlackList($globalIniFile = ''){
$config = array();
if (empty($globalIniFile)) {
$blackListIniFile = PATH_CONFIG . 'execute-query-blacklist.ini';
$sysTablesIniFile = PATH_CONFIG . 'system-tables.ini';
}
// read the global execute-query-blacklist.ini configuration file
if(file_exists($blackListIniFile)){
$config = @parse_ini_file($blackListIniFile);
}
if(file_exists($sysTablesIniFile)){
$systemTables = @parse_ini_file($sysTablesIniFile);
$config['tables'] = $systemTables['tables'];
}
return $config;
}
public function updateIndexFile ($conf)
{
if (! file_exists( PATH_HTML . 'index.html' )) {