Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 711 Revision 723
Zeile 40... Zeile 40...
40
        $landID = $GLOBALS["INI"]["steuern"]["default_countryID"];
40
        $landID = $GLOBALS["INI"]["steuern"]["default_countryID"];
41
    }
41
    }
Zeile 42... Zeile 42...
42
 
42
 
Zeile 43... Zeile 43...
43
    $countryIDs = ( isset( $GLOBALS['INI']['steuern']['use_countries_tax'] ) ) ? $GLOBALS['INI']['steuern']['use_countries_tax'] : $landID;
43
    $countryIDs = ( isset( $GLOBALS['INI']['steuern']['use_countries_tax'] ) ) ? $GLOBALS['INI']['steuern']['use_countries_tax'] : $landID;
-
 
44
 
-
 
45
    $sql = "SELECT 
44
 
46
            *
-
 
47
        FROM
45
    $sql = "SELECT *
48
            countries_tax
46
                FROM content_management.countries_tax
49
        WHERE
47
                WHERE country_id IN (" . $countryIDs . ")
50
            country_id IN (" . $countryIDs . ")
48
        ";
51
    ";
49
    $rows = DB::connection("cms")->select( $sql );
52
    $rows = DB::connection( "cms" )->select( $sql );
50
    foreach ( $rows as $r )
53
    foreach ( $rows as $r )
51
    {
54
    {
52
        $GLOBALS["steuern"][$r->country_id][$r->taxes_id] = $r->tax_percent;
55
        $GLOBALS["steuern"][$r->country_id][$r->taxes_id] = $r->tax_percent;
Zeile 288... Zeile 291...
288
            "langstrings"       => $GLOBALS["langstrings"],
291
            "langstrings"       => $GLOBALS["langstrings"],
289
        ] );
292
        ] );
290
    } );
293
    } );
291
    Route::get( '/', function ()
294
    Route::get( '/', function ()
292
    {
295
    {
-
 
296
        if ( isset( $_GET["killSession"] ) )
-
 
297
        {
-
 
298
            unset( $_SESSION );
-
 
299
            $_SESSION["SHOP"]["BASKET"] = new Basket();
-
 
300
        }
293
        $date = date( "Y-m-d" );
301
        $date = date( "Y-m-d" );
294
        $aktion = Action::with( 'medium.medium' )->where( 'valid_from', '<=', $date )->where( 'valid_to', '>=', $date )->get();
302
        $aktion = Action::with( 'medium.medium' )->where( 'valid_from', '<=', $date )->where( 'valid_to', '>=', $date )->get();
295
        return view( 'startpage', [
303
        return view( 'startpage', [
296
            "serviceCenterMenu" => $GLOBALS["serviceCenterMenu"],
304
            "serviceCenterMenu" => $GLOBALS["serviceCenterMenu"],
297
            "pagetype"          => "Startseite",
305
            "pagetype"          => "Startseite",