@include('layouts.lang') Studio ⚙️ {{ config('app.name') }} @include('layouts.analytics') @if ($color_scheme == 'dark' and config('advanced-config.theme') != 'light' and $color_scheme_override != 'light' or $color_scheme_override == 'dark') @elseif(config('advanced-config.theme') == 'dark') @else @endif user()->role == 'admin'){ $serversb = $_SERVER['SERVER_NAME']; $urisb = $_SERVER['REQUEST_URI']; // Tests if a URL has a valid SSL certificate function has_sslsb( $domain ) { $ssl_check = @fsockopen( 'ssl://' . $domain, 443, $errno, $errstr, 30 ); $res = !! $ssl_check; if ( $ssl_check ) { fclose( $ssl_check ); } return $res; } // Changes probed URL to HTTP if no valid SSL certificate is present, otherwise an error would be thrown if (has_sslsb($serversb)) { $actual_linksb = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; } else { $actual_linksb = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; } function getUrlSatusCodesb($urlsb, $timeoutsb = 3) { $chsb = curl_init(); $optssb = array(CURLOPT_RETURNTRANSFER => true, // do not output to browser CURLOPT_URL => $urlsb, CURLOPT_NOBODY => true, // do a HEAD request only CURLOPT_TIMEOUT => $timeoutsb); curl_setopt_array($chsb, $optssb); curl_exec($chsb); $status = curl_getinfo($chsb, CURLINFO_HTTP_CODE); curl_close($chsb); return $status; } // Files or directories to test if accessible externally $url1sb = getUrlSatusCodesb($actual_linksb . '/../../.env'); $url2sb = getUrlSatusCodesb($actual_linksb . '/../../database/database.sqlite'); // sets compromised to true if config files got compromised if($url1sb == '200' or $url2sb == '200') { $compromised = "true"; } else { $compromised = "false"; } } // end security check ?> @if(file_exists(base_path("littlelink/images/avatar.png" ))) @else @endif @stack('sidebar-stylesheets')
@if(env('NOTIFY_EVENTS') === true and $EventServerExists == 'true') @if(auth()->user()->role == 'admin' and strtotime(date("d-m-Y")) < strtotime($EventJson['enddate'])) @if(isset($_COOKIE['HideEvent']) and $_COOKIE['HideEvent'] != $EventJson['id']) @endif @endif @if(env('NOTIFY_EVENTS') === false and auth()->user()->role == 'admin') @endif @endif @yield('content')
@stack('sidebar-scripts')