Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1384 Revision 1385
Zeile 11... Zeile 11...
11
    use App\Models\WebProperty;
11
    use App\Models\WebProperty;
12
    use Illuminate\Support\Facades\Auth;
12
    use Illuminate\Support\Facades\Auth;
13
    use Illuminate\Support\Facades\Route;
13
    use Illuminate\Support\Facades\Route;
Zeile 14... Zeile 14...
14
 
14
 
-
 
15
    setlocale( LC_TIME, 'de_DE.UTF-8' );
-
 
16
 
-
 
17
    $w = new Web();
15
    setlocale( LC_TIME, 'de_DE.UTF-8' );
18
    $GLOBALS["web"] = $w->where( "domain", "=", env( 'shop' ) )->first();
16
    if ( !file_exists( $_SERVER["DOCUMENT_ROOT"] . "/public/styles/" . $GLOBALS["web"]["domain"] . "_styles.css" ) )
19
    if ( !file_exists( $_SERVER["DOCUMENT_ROOT"] . "/public/styles/" . $GLOBALS["web"]["domain"] . "_styles.css" ) )
17
    {
20
    {
18
        require_once $_SERVER["DOCUMENT_ROOT"] . "/public/styles/" . $GLOBALS["web"]["domain"] . "_styles.php";
21
        require_once $_SERVER["DOCUMENT_ROOT"] . "/public/styles/" . $GLOBALS["web"]["domain"] . "_styles.php";
19
    }
-
 
20
 
-
 
21
    $w = new Web();
-
 
22
    $GLOBALS["web"] = $w->where( "domain", "=", env( 'shop' ) )->first();
22
    }
23
    \View::share( "webs", $GLOBALS["web"] );
23
    \View::share( "webs", $GLOBALS["web"] );
24
    $_SESSION["loadingGif"] = "/images/navigation/loading.gif";
24
    $_SESSION["loadingGif"] = "/images/navigation/loading.gif";
25
    if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . "/images/webelemente/loading.gif" ) )
25
    if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . "/images/webelemente/loading.gif" ) )
26
    {
26
    {