Subversion-Projekte lars-tiefland.laravel_shop

Revision

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