Subversion-Projekte lars-tiefland.webanos.faltradxxs.de

Revision

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

Revision 62 Revision 115
Zeile 34... Zeile 34...
34
    $c_shops = array();
34
    $c_shops = array();
35
    $d_shops = array();
35
    $d_shops = array();
36
    $ba = OrderType::get();
36
    $ba = OrderType::get();
37
    foreach ( $ba as $ba_id => $bestellart )
37
    foreach ( $ba as $ba_id => $bestellart )
38
    {
38
    {
39
        $c_bestellarten[$bestellart->id] = $bestellart->name;
39
        $c_bestellarten[ $bestellart->id ] = $bestellart->name;
40
    }
40
    }
41
    $shops = Shop::get();
41
    $shops = Shop::get();
42
    View::share( "shops", $shops );
42
    View::share( "shops", $shops );
43
    foreach ( $shops as $s_id => $shop )
43
    foreach ( $shops as $s_id => $shop )
44
    {
44
    {
45
        $c_shops[$shop->id] = $shop->name;
45
        $c_shops[ $shop->id ] = $shop->name;
46
        $d_shops[$shop->id] = $shop;
46
        $d_shops[ $shop->id ] = $shop;
47
    }
47
    }
48
    \View::share( "c_bestellarten", $c_bestellarten );
48
    \View::share( "c_bestellarten", $c_bestellarten );
49
    \View::share( "c_shops", $c_shops );
49
    \View::share( "c_shops", $c_shops );
50
    \View::share( "d_shops", $d_shops );
50
    \View::share( "d_shops", $d_shops );
51
    $_SESSION["loadingGif"] = "/images/navigation/loading.gif";
51
    $_SESSION["loadingGif"] = "/images/navigation/loading.gif";
Zeile 63... Zeile 63...
63
    foreach ( $webRechte as $web_recht )
63
    foreach ( $webRechte as $web_recht )
64
    {
64
    {
65
        $property = $web_recht->property;
65
        $property = $web_recht->property;
66
        $tool = $property->tool;
66
        $tool = $property->tool;
67
        $module = $tool->module;
67
        $module = $tool->module;
68
        $GLOBALS["web_rechte"][$module->interner_name][$tool->button_name][$property->interner_name] = $web_recht->Bezeichnung;
68
        $GLOBALS["web_rechte"][ $module->interner_name ][ $tool->button_name ][ $property->interner_name ] = $web_recht->Bezeichnung;
69
    }
69
    }
70
    \View::share( "web_rechte", $GLOBALS["web_rechte"] );
70
    \View::share( "web_rechte", $GLOBALS["web_rechte"] );
71
    if ( isset( $_SESSION["admin"]["uid"] ) )
71
    if ( isset( $_SESSION["admin"]["uid"] ) )
72
    {
72
    {
73
        $uId = $_SESSION["admin"]["uid"];
73
        $uId = $_SESSION["admin"]["uid"];
Zeile 98... Zeile 98...
98
            BackendController::class,
98
            BackendController::class,
99
            'destroy'
99
            'destroy'
100
        ] )->name( 'logout' );
100
        ] )->name( 'logout' );
101
        Route::prefix( "/toolbox" )->group( function ()
101
        Route::prefix( "/toolbox" )->group( function ()
102
        {
102
        {
-
 
103
            Route::get( "/ga", [
-
 
104
                GooleAuthenticatorController::class,
-
 
105
                "create"
-
 
106
            ] );
-
 
107
            Route::post( "/ga", [
-
 
108
                GooleAuthenticatorController::class,
-
 
109
                "store"
-
 
110
            ] );
-
 
111
            Route::delete( "/ga", [
-
 
112
                GooleAuthenticatorController::class,
-
 
113
                "DESTROY"
-
 
114
            ] );
103
            Route::get( "/", [
115
            Route::get( "/", [
104
                ToolboxController::class,
116
                ToolboxController::class,
105
                "create"
117
                "create"
106
            ] );
118
            ] );
107
            Route::get( "/changeShopVersion", [
119
            Route::get( "/changeShopVersion", [
Zeile 132... Zeile 144...
132
        } );
144
        } );
133
        Route::prefix( "vportale" )->group( function ()
145
        Route::prefix( "vportale" )->group( function ()
134
        {
146
        {
135
            Route::resource( "salesPortals", \App\Http\Controllers\SalesPortalController::class );
147
            Route::resource( "salesPortals", \App\Http\Controllers\SalesPortalController::class );
136
        } );
148
        } );
137
        Route::get( "/actions/{id}/getMedia", [ ActionMediumController::class, "liste" ] );
149
        Route::get( "/actions/{id}/getMedia", [
-
 
150
            ActionMediumController::class,
-
 
151
            "liste"
-
 
152
        ] );
138
        Route::view( "/", "index" );
153
        Route::view( "/", "index" );
139
    } );
154
    } );