Subversion-Projekte lars-tiefland.content-management

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?
2
    /* SETTINGS AUS DER DATENBANK LADEN */
3
    function loadSettings( $DB = "eBay" )
4
    {
5
        $_SESSION[eBay][settings] = array();
6
        $query = "select * FROM $DB.eBay_settings where Name is not null order by Rang";
7
        $result = mysql_query( $query ) or die( mysql_errno() . ": " .
8
            mysql_error() );
9
        while ( $Inf = mysql_fetch_array( $result ) )
10
        {
11
            $_SESSION[eBay][settings][$Inf[Name]][] = $Inf[Inhalt];
12
        }
13
 
14
        /*foreach ( array_keys( $_SESSION[eBay][settings] ) as $elem )
15
        {
16
            if ( count( $_SESSION[eBay][settings][$elem] ) == 1 )
17
            {
18
                $_SESSION[eBay][settings][$elem] = $_SESSION[eBay][settings][$elem][0];
19
            }
20
        }*/
21
    }
22
?>