Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?
    /* SETTINGS AUS DER DATENBANK LADEN */
    function loadSettings( $DB = "eBay" )
    {
        $_SESSION[eBay][settings] = array();
        $query = "select * FROM $DB.eBay_settings where Name is not null order by Rang";
        $result = mysql_query( $query ) or die( mysql_errno() . ": " .
            mysql_error() );
        while ( $Inf = mysql_fetch_array( $result ) )
        {
            $_SESSION[eBay][settings][$Inf[Name]][] = $Inf[Inhalt];
        }

        /*foreach ( array_keys( $_SESSION[eBay][settings] ) as $elem )
        {
            if ( count( $_SESSION[eBay][settings][$elem] ) == 1 )
            {
                $_SESSION[eBay][settings][$elem] = $_SESSION[eBay][settings][$elem][0];
            }
        }*/
    }
?>