Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1408 Revision 1446
Zeile 7... Zeile 7...
7
    use App\Http\Controllers\ToolboxController;
7
    use App\Http\Controllers\ToolboxController;
8
    use App\Models\Module;
8
    use App\Models\Module;
9
    use App\Models\UserProperty;
9
    use App\Models\UserProperty;
10
    use App\Models\Web;
10
    use App\Models\Web;
11
    use App\Models\WebProperty;
11
    use App\Models\WebProperty;
12
    use Illuminate\Support\Facades\Auth;
-
 
13
    use Illuminate\Support\Facades\Route;
12
    use Illuminate\Support\Facades\Route;
Zeile 14... Zeile 13...
14
 
13
 
Zeile 15... Zeile 14...
15
    setlocale( LC_TIME, 'de_DE.UTF-8' );
14
    setlocale( LC_TIME, 'de_DE.UTF-8' );
Zeile 22... Zeile 21...
22
        {
21
        {
23
            require_once "styles.php";
22
            require_once "styles.php";
24
        }
23
        }
25
    }
24
    }
26
    \View::share( "webs", $GLOBALS["web"] );
25
    \View::share( "webs", $GLOBALS["web"] );
-
 
26
    $ba = getBestellarten();
-
 
27
    foreach ( $ba as $ba_id => $bestellart )
-
 
28
    {
-
 
29
        $c_bestellarten[$bestellart["id"]] = $bestellart["name"];
-
 
30
    }
-
 
31
    $shops = Shop::get();
-
 
32
    foreach ( $shops as $s_id => $shop )
-
 
33
    {
-
 
34
        $c_shops[$shop->id] = $shop->name;
-
 
35
        $d_shops[$shop->id] = $shop;
-
 
36
    }
-
 
37
    \View::share( "c_shops", $c_shops );
-
 
38
    \View::share( "d_shops", $d_shops );
27
    $_SESSION["loadingGif"] = "/images/navigation/loading.gif";
39
    $_SESSION["loadingGif"] = "/images/navigation/loading.gif";
28
    if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . "/images/webelemente/loading.gif" ) )
40
    if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . "/images/webelemente/loading.gif" ) )
29
    {
41
    {
30
        $_SESSION["loadingGif"] = "/images/webelemente/loading.gif";
42
        $_SESSION["loadingGif"] = "/images/webelemente/loading.gif";
31
    }
43
    }
Zeile 39... Zeile 51...
39
    foreach ( $webRechte as $web_recht )
51
    foreach ( $webRechte as $web_recht )
40
    {
52
    {
41
        $property = $web_recht->property;
53
        $property = $web_recht->property;
42
        $tool = $property->tool;
54
        $tool = $property->tool;
43
        $module = $tool->module;
55
        $module = $tool->module;
44
        $GLOBALS["web_rechte"][ $module->interner_name ][ $tool->button_name ][ $property->interner_name ] = $web_recht->Bezeichnung;
56
        $GLOBALS["web_rechte"][$module->interner_name][$tool->button_name][$property->interner_name] = $web_recht->Bezeichnung;
45
    }
57
    }
46
    \View::share( "web_rechte", $GLOBALS["web_rechte"] );
58
    \View::share( "web_rechte", $GLOBALS["web_rechte"] );
47
    if ( isset( $_SESSION["admin"]["uid"] ) )
59
    if ( isset( $_SESSION["admin"]["uid"] ) )
48
    {
60
    {
49
        $uId = $_SESSION["admin"]["uid"];
61
        $uId = $_SESSION["admin"]["uid"];