Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1148 Revision 1167
Zeile 7... Zeile 7...
7
    use App\Models\Web;
7
    use App\Models\Web;
8
    use App\Models\WebProperty;
8
    use App\Models\WebProperty;
9
    use Illuminate\Support\Facades\Auth;
9
    use Illuminate\Support\Facades\Auth;
10
    use Illuminate\Support\Facades\Route;
10
    use Illuminate\Support\Facades\Route;
Zeile 11... Zeile -...
11
 
-
 
12
    /*$bc = new BackendController();
-
 
13
    $user_rechte = $bc->getUserRechte();
-
 
14
    \View::share( "user_rechte", $user_rechte );*/
-
 
15
 
11
 
16
    $w = new Web();
12
    $w = new Web();
17
    $GLOBALS["web"] = $w->where( "domain", "=", env( 'shop' ) )->first();
13
    $GLOBALS["web"] = $w->where( "domain", "=", env( 'shop' ) )->first();
18
    \View::share( "web", $GLOBALS["web"] );
14
    \View::share( "web", $GLOBALS["web"] );
19
    $webRechte = WebProperty::with( [ "property", "property.tool", "property.tool.module" ] )->where( "web_id", "=", $GLOBALS["web"]->ID )->get();
15
    $webRechte = WebProperty::with( [ "property", "property.tool", "property.tool.module" ] )->where( "web_id", "=", $GLOBALS["web"]->ID )->get();
Zeile 36... Zeile 32...
36
        {
32
        {
37
            $user_rechte = UserProperty::with( [ "property", "tool", "module" ] )->where( "backend_user_id", "=", $uId )->get();
33
            $user_rechte = UserProperty::with( [ "property", "tool", "module" ] )->where( "backend_user_id", "=", $uId )->get();
38
        }
34
        }
39
        \View::share( "user_rechte", $user_rechte );
35
        \View::share( "user_rechte", $user_rechte );
40
    }
36
    }
41
    //dump( $web_rechte );
-
 
42
 
-
 
43
    $_SESSION["jquery_js"] = "/js/jquery-1.7.2.min.js";
-
 
44
    $_SESSION["jquery_ui_js"] = "/js/jquery-ui-1.8.23.custom.min.js";
-
 
45
    $_SESSION["jquery_style"] = "/css/start/jquery-ui.custom.css";
-
 
46
 
-
 
47
    $_SESSION["jquery_new"] = "/css/start_new/jquery.min.js";
-
 
48
    $_SESSION["jquery_ui_new"] = "/css/start_new/jquery-ui.min.js";
-
 
49
    $_SESSION["jquery_style_new"] = "/css/start_new/jquery-ui.custom.css";
-
 
50
 
-
 
51
    $_SESSION["loadingGif"] = "/images/navigation/loading.gif";
-
 
52
 
-
 
53
    /*if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . "/css/" . $site . "/jquery-ui.custom.css" ) )
-
 
54
    {
-
 
55
        $_SESSION["jquery_style"] = "/css/" . $site . "/jquery-ui.custom.css";
-
 
56
    }
-
 
57
 
-
 
58
    if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . "/css/" . $site . "/images/loading.gif" ) )
-
 
59
    {
-
 
60
        $_SESSION["loadingGif"] = "/css/" . $site . "/images/loading.gif";
-
 
61
    }
-
 
62
 
-
 
63
    if ( file_Exists( $_SERVER["DOCUMENT_ROOT"] . "/css/" . $site . "_new/jquery.min.js" ) )
-
 
64
    {
-
 
65
        $_SESSION["jquery_new"] = "/css/" . $site . "_new/jquery.min.js";
-
 
66
        $_SESSION["jquery_ui_new"] = "/css/" . $site . "_new/jquery-ui.min.js";
-
 
67
        $_SESSION["jquery_style_new"] = "/css/" . $site . "_new/jquery-ui.custom.css";
-
 
68
    }
-
 
69
    if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . "/css/" . $site . "_new/images/loading.gif" ) )
-
 
70
    {
-
 
71
        $_SESSION["loadingGif"] = "/css/" . $site . "_new/images/loading.gif";
-
 
72
    }*/
-
 
Zeile 73... Zeile 37...
73
 
37
 
74
    Route::get( '/login', [ BackendController::class, 'create' ] )->name( 'login' );
38
    Route::get( '/login', [ BackendController::class, 'create' ] )->name( 'login' );
75
    Route::post( '/login', [ BackendController::class, 'store' ] );
39
    Route::post( '/login', [ BackendController::class, 'store' ] );
76
    Route::middleware( 'auth:admin' )->group( function ()
40
    Route::middleware( 'auth:admin' )->group( function ()