Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 1708 | Revision 1710 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1708 Revision 1709
Zeile 28... Zeile 28...
28
    if ( php_sapi_name() == "cli" )
28
    if ( php_sapi_name() == "cli" )
29
    {
29
    {
30
        return;
30
        return;
31
    }
31
    }
32
    session_start();
32
    session_start();
-
 
33
    $GLOBALS["steuern"] = array();
-
 
34
    //default LandID für Deutschland
-
 
35
    $landID = 47;
-
 
36
    //Wenn das Flag gesetzt ist, dann nimm diesen wert, damit auch "ausländische Shops" den richtigen MwSt angezeigt bekommen
-
 
37
    if ( isset( $GLOBALS["INI"]["steuern"]["default_countryID"] ) )
-
 
38
    {
-
 
39
        $landID = $GLOBALS["INI"]["steuern"]["default_countryID"];
-
 
40
    }
-
 
41
 
-
 
42
    $countryIDs = ( isset( $GLOBALS['INI']['steuern']['use_countries_tax'] ) ) ? $GLOBALS['INI']['steuern']['use_countries_tax'] : $landID;
33
    if ( !isset( $_SESSION["SHOP"]["BASKET"] ) )
43
    if ( !isset( $_SESSION["SHOP"]["BASKET"] ) )
34
    {
44
    {
35
        $_SESSION["SHOP"]["BASKET"] = new BasketController();
45
        $_SESSION["SHOP"]["BASKET"] = new BasketController();
36
    }
46
    }