Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 1070 | Revision 1076 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
964 lars 1
<?php
2
 
992 lars 3
    use App\Http\Controllers\BackendController;
1071 lars 4
    use App\Models\Web;
964 lars 5
    use Illuminate\Support\Facades\Route;
6
 
1068 lars 7
    /*$bc = new BackendController();
1061 lars 8
    $user_rechte = $bc->getUserRechte();
1068 lars 9
    \View::share( "user_rechte", $user_rechte );*/
1061 lars 10
 
1071 lars 11
    $w = new Web();
12
    $GLOBALS["web"] = $w->where( "domain", "=", env( 'shop' ) )->first();
13
    \View::share( "web", $GLOBALS["web"] );
14
 
980 lars 15
    $_SESSION["jquery_js"] = "/js/jquery-1.7.2.min.js";
16
    $_SESSION["jquery_ui_js"] = "/js/jquery-ui-1.8.23.custom.min.js";
17
    $_SESSION["jquery_style"] = "/css/start/jquery-ui.custom.css";
18
 
19
    $_SESSION["jquery_new"] = "/css/start_new/jquery.min.js";
20
    $_SESSION["jquery_ui_new"] = "/css/start_new/jquery-ui.min.js";
21
    $_SESSION["jquery_style_new"] = "/css/start_new/jquery-ui.custom.css";
22
 
23
    $_SESSION["loadingGif"] = "/images/navigation/loading.gif";
24
 
25
    /*if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . "/css/" . $site . "/jquery-ui.custom.css" ) )
26
    {
27
        $_SESSION["jquery_style"] = "/css/" . $site . "/jquery-ui.custom.css";
28
    }
29
 
30
    if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . "/css/" . $site . "/images/loading.gif" ) )
31
    {
32
        $_SESSION["loadingGif"] = "/css/" . $site . "/images/loading.gif";
33
    }
34
 
35
    if ( file_Exists( $_SERVER["DOCUMENT_ROOT"] . "/css/" . $site . "_new/jquery.min.js" ) )
36
    {
37
        $_SESSION["jquery_new"] = "/css/" . $site . "_new/jquery.min.js";
38
        $_SESSION["jquery_ui_new"] = "/css/" . $site . "_new/jquery-ui.min.js";
39
        $_SESSION["jquery_style_new"] = "/css/" . $site . "_new/jquery-ui.custom.css";
40
    }
41
    if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . "/css/" . $site . "_new/images/loading.gif" ) )
42
    {
43
        $_SESSION["loadingGif"] = "/css/" . $site . "_new/images/loading.gif";
44
    }*/
45
 
1070 lars 46
    Route::get( '/admin/login', [ BackendController::class, 'create' ] )->name( 'login' );
992 lars 47
    Route::post( '/admin/login', [ BackendController::class, 'store' ] );
1067 lars 48
    Route::prefix( 'admin' )->middleware( 'auth:admin' )->group( function ()
964 lars 49
    {
1027 lars 50
        Route::get( '/logout', [ BackendController::class, 'destroy' ] )->name( 'logout' );
1041 lars 51
        Route::view( "/index", "admin/index" );
965 lars 52
    } );