Subversion-Projekte lars-tiefland.webanos.marine-sales.de

Revision

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

Revision 202 Revision 217
Zeile 21... Zeile 21...
21
    use App\Models\Shop;
21
    use App\Models\Shop;
22
    use App\Models\UserProperty;
22
    use App\Models\UserProperty;
23
    use App\Models\Web;
23
    use App\Models\Web;
24
    use App\Models\WebProperty;
24
    use App\Models\WebProperty;
25
    use Illuminate\Support\Facades\Route;
25
    use Illuminate\Support\Facades\Route;
-
 
26
    use Illuminate\Support\Facades\View;
Zeile 26... Zeile 27...
26
 
27
 
Zeile 27... Zeile 28...
27
    session_start();
28
    session_start();
Zeile 45... Zeile 46...
45
        if ( !file_exists( $_SERVER["DOCUMENT_ROOT"] . "/public/styles/" . $GLOBALS["web"]["domain"] . "_styles.css" ) )
46
        if ( !file_exists( $_SERVER["DOCUMENT_ROOT"] . "/public/styles/" . $GLOBALS["web"]["domain"] . "_styles.css" ) )
46
        {
47
        {
47
            require_once "styles.php";
48
            require_once "styles.php";
48
        }
49
        }
49
    }
50
    }
50
    \View::share( "webs", $GLOBALS["web"] );
51
    View::share( "webs", $GLOBALS["web"] );
Zeile 51... Zeile 52...
51
 
52
 
52
    $shops = Shop::get();
53
    $shops = Shop::get();
53
    View::share( "shops", $shops );
54
    View::share( "shops", $shops );
54
    $c_shops[""] = "alle";
55
    $c_shops[""] = "alle";
55
    foreach ( $shops as $s_id => $shop )
56
    foreach ( $shops as $s_id => $shop )
56
    {
57
    {
57
        $c_shops[$shop->id] = $shop->name;
58
        $c_shops[$shop->id] = $shop->name;
58
        $d_shops[$shop->id] = $shop;
59
        $d_shops[$shop->id] = $shop;
59
    }
60
    }
60
    \View::share( "c_shops", $c_shops );
61
    View::share( "c_shops", $c_shops );
Zeile 61... Zeile 62...
61
    \View::share( "d_shops", $d_shops );
62
    View::share( "d_shops", $d_shops );
62
 
63
 
63
    $ba = OrderType::get();
64
    $ba = OrderType::get();
64
    foreach ( $ba as $ba_id => $bestellart )
65
    foreach ( $ba as $ba_id => $bestellart )
65
    {
66
    {
66
        $c_bestellarten[$bestellart->id] = $bestellart->name;
67
        $c_bestellarten[$bestellart->id] = $bestellart->name;
Zeile 67... Zeile 68...
67
    }
68
    }
68
    \View::share( "c_bestellarten", $c_bestellarten );
69
    View::share( "c_bestellarten", $c_bestellarten );
69
 
70
 
70
    $webRechte = WebProperty::with( [
71
    $webRechte = WebProperty::with( [
71
        "property",
72
        "property",
72
        "property.tool",
73
        "property.tool",
73
        "property.tool.module"
74
        "property.tool.module"
74
    ] )->where( "web_id", "=", $GLOBALS["web"]->ID )->get();
75
    ] )->where( "web_id", "=", $GLOBALS["web"]->ID )->get();
75
    $navi = Module::with( 'tool' )->orderBy( 'modules.rang' )->get();
76
    $navi = Module::with( 'tool' )->orderBy( 'modules.rang' )->get();
76
    \View::share( "navi", $navi );
77
    View::share( "navi", $navi );
77
    foreach ( $webRechte as $web_recht )
78
    foreach ( $webRechte as $web_recht )
78
    {
79
    {
79
        $property = $web_recht->property;
80
        $property = $web_recht->property;
80
        $tool = $property->tool;
81
        $tool = $property->tool;
81
        $module = $tool->module;
82
        $module = $tool->module;
Zeile 82... Zeile 83...
82
        $GLOBALS["web_rechte"][$module->interner_name][$tool->button_name][$property->interner_name] = $web_recht->Bezeichnung;
83
        $GLOBALS["web_rechte"][$module->interner_name][$tool->button_name][$property->interner_name] = $web_recht->Bezeichnung;
83
    }
84
    }
84
    \View::share( "web_rechte", $GLOBALS["web_rechte"] );
85
    View::share( "web_rechte", $GLOBALS["web_rechte"] );
85
 
86
 
Zeile 94... Zeile 95...
94
                "property",
95
                "property",
95
                "tool",
96
                "tool",
96
                "module"
97
                "module"
97
            ] )->where( "backend_user_id", "=", $uId )->get();
98
            ] )->where( "backend_user_id", "=", $uId )->get();
98
        }
99
        }
99
        \View::share( "user_rechte", $GLOBALS["user_rechte"] );
100
        View::share( "user_rechte", $GLOBALS["user_rechte"] );
100
    }
101
    }
Zeile 101... Zeile 102...
101
 
102
 
102
    Route::get( '/login', [
103
    Route::get( '/login', [
103
        BackendController::class,
104
        BackendController::class,