Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1706 Revision 1708
Zeile 8... Zeile 8...
8
    use App\Http\Controllers\UserController;
8
    use App\Http\Controllers\UserController;
9
    use App\Models\Action;
9
    use App\Models\Action;
10
    use App\Models\Item;
10
    use App\Models\Item;
11
    use Illuminate\Support\Facades\Route;
11
    use Illuminate\Support\Facades\Route;
12
    use Illuminate\Support\Facades\DB;
12
    use Illuminate\Support\Facades\DB;
-
 
13
    use Illuminate\Support\Facades\Schema;
Zeile 13... Zeile 14...
13
 
14
 
14
    /*
15
    /*
15
    |--------------------------------------------------------------------------
16
    |--------------------------------------------------------------------------
16
    | Web Routes
17
    | Web Routes
Zeile 36... Zeile 37...
36
 
37
 
37
    if ( !isset( $_SESSION["navigation"]["position"] ) )
38
    if ( !isset( $_SESSION["navigation"]["position"] ) )
38
    {
39
    {
39
        $_SESSION["navigation"]["position"] = null;
40
        $_SESSION["navigation"]["position"] = null;
-
 
41
    }
-
 
42
    $sql = "SELECT 
-
 
43
            *
-
 
44
        FROM
-
 
45
            content_management.countries_tax
-
 
46
        WHERE
-
 
47
            country_id IN (" . $countryIDs . ")
-
 
48
    ";
-
 
49
    $rows = DB::connection( "cms" )->select( $sql );
-
 
50
    foreach ( $rows as $r )
-
 
51
    {
-
 
52
        $GLOBALS["steuern"][$r->country_id][$r->taxes_id] = $r->tax_percent;
-
 
53
        $GLOBALS["steuern"][$r->country_id][null] = $GLOBALS["steuern"][$r->country_id][0];
-
 
54
    }
-
 
55
 
-
 
56
    $sql = "
-
 
57
        SELECT
-
 
58
            *
-
 
59
        FROM
-
 
60
            i18n_de
-
 
61
    ";
-
 
62
    if ( Schema::hasTable( 'i18n_de' ) )
-
 
63
    {
-
 
64
        $langstrings = DB::select( $sql );
-
 
65
    }
-
 
66
    else
-
 
67
    {
-
 
68
        $langstrings = DB::connection( "old" )->select( $sql );
-
 
69
    }
-
 
70
    foreach ( $langstrings as $langstring )
-
 
71
    {
-
 
72
        $GLOBALS["langstrings"][$langstring->page_id][$langstring->id] = $langstring->string;
40
    }
73
    }
41
    $nav = new DirectoryController();
74
    $nav = new DirectoryController();
42
    $menu = $nav->nav_menu();
75
    $menu = $nav->nav_menu();
43
    $shopPosition = $nav->shopPosition();
76
    $shopPosition = $nav->shopPosition();
44
    $sc = parseCMSPage( $GLOBALS["INI"]["typo3"]["url"] . "/typo3/" );
77
    $sc = parseCMSPage( $GLOBALS["INI"]["typo3"]["url"] . "/typo3/" );