HOR-244
HOR-244 HOR-244 HOR-244 HOR-244 HOR-244 HOR-244
This commit is contained in:
@@ -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' )) {
|
||||
|
||||
Reference in New Issue
Block a user