Index: trunk/kernel/include/config.php =================================================================== diff -u -r105 -r259 --- trunk/kernel/include/config.php (.../config.php) (revision 105) +++ trunk/kernel/include/config.php (.../config.php) (revision 259) @@ -127,17 +127,18 @@ return $result; } - function GetSessionValues($VarType) + function GetConfigValues($postfix = '') { - $result = array(); - foreach($this->config as $property=>$values) - { - if(strlen($values[$VarType])>0) - { - $result[$property] = $values[$VarType]; - } - } - return $result; + // return only varibles, that match specified criteria + if(!$postfix) return $this->config; + $result = Array(); + $postfix_len = $postfix ? strlen($postfix) : 0; + foreach($this->config as $config_var => $var_value) + { + if( substr($config_var, - $postfix_len) == $postfix ) + $result[$config_var] = $var_value; + } + return $result; } }/* clsConfig */