irm/lib/Config.php
/** Retrieve the "current" section from the specified config file.
     * Where current section is defined either by what is passed in via
     * $current, or (if $current is NULL) from the $_SESSION['_sess_database']
     * variable.  If neither of these is available, then we fall back to
     * the section called '_default'.
     *
     * \returns An associative array of config variables, or an empty
     *    array if no section with the given name is available.
     */
Retrieve the "current" section from the specified config file.
Where current section is defined either by what is passed in via
$current, or (if $current is NULL) from the $_SESSION['_sess_database']
variable.  If neither of these is available, then we fall back to
the section called '_default'.

\returns An associative array of config variables, or an empty
array if no section with the given name is available.
Retrieve the " current " section from the specified config file . Where current section is defined either by what is passed in via $current or ( if $current is NULL ) from the $_SESSION [ ' _sess_database ' ] variable . If neither of these is available then we fall back to the section called ' _default ' . \ returns An associative array of config variables or an empty array if no section with the given name is available .
static function CurrentSection($type, $current = NULL)
    {
        $cfg = Config::ReadConfig($type);
        if ($current === NULL)
        {
            $current = @$_SESSION['_sess_database'];
        }
        if (!$current)
        {
            $current = '_default';
        }
        return @$cfg[$current] ? $cfg[$current] : array();
    }
static function CurrentSection ( $ type , $ current = NULL ) { $ cfg = Config :: ReadConfig ( $ type ) ; if ( $ current === NULL ) { $ current = @ $ _SESSION [ '_sess_database' ] ; } if ( ! $ current ) { $ current = '_default' ; } return @ $ cfg [ $ current ] ? $ cfg [ $ current ] : array ( ) ; }
Retrieve the "current" section from the specified config file.
Retrieve the " current " section from the specified config file .