Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1405 Revision 1408
Zeile 14... Zeile 14...
14
 
14
 
Zeile 15... Zeile 15...
15
    setlocale( LC_TIME, 'de_DE.UTF-8' );
15
    setlocale( LC_TIME, 'de_DE.UTF-8' );
16
 
16
 
17
    $w = new Web();
17
    $w = new Web();
18
    $GLOBALS["web"] = $w->where( "domain", "=", env( 'shop' ) )->first();
18
    $GLOBALS["web"] = $w->where( "domain", "=", env( 'shop' ) )->first();
19
    if ( !file_exists( $_SERVER["DOCUMENT_ROOT"] . "/public/admin/styles/" . $GLOBALS["web"]["domain"] . "_styles.css" ) )
19
    if ( php_sapi_name() != "cli" )
-
 
20
    {
-
 
21
        if ( !file_exists( $_SERVER["DOCUMENT_ROOT"] . "/public/admin/styles/" . $GLOBALS["web"]["domain"] . "_styles.css" ) )
-
 
22
        {
20
    {
23
            require_once "styles.php";
21
        require_once $_SERVER["DOCUMENT_ROOT"] . "/admin/styles/styles.php";
24
        }
22
    }
25
    }
23
    \View::share( "webs", $GLOBALS["web"] );
26
    \View::share( "webs", $GLOBALS["web"] );
24
    $_SESSION["loadingGif"] = "/images/navigation/loading.gif";
27
    $_SESSION["loadingGif"] = "/images/navigation/loading.gif";