File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Console/stubs
Upload
[..]
broadcasting-routes.stub (163 B)
Edit
Rename
Del
cast.inbound.stub (441 B)
Edit
Rename
Del
config.stub (26 B)
Edit
Rename
Del
echo-js-reverb.stub (458 B)
Edit
Rename
Del
job.batched.queued.stub (557 B)
Edit
Rename
Del
job.middleware.stub (263 B)
Edit
Rename
Del
job.queued.stub (394 B)
Edit
Rename
Del
job.stub (331 B)
Edit
Rename
Del
listener.queued.stub (415 B)
Edit
Rename
Del
listener.stub (363 B)
Edit
Rename
Del
listener.typed.queued.stub (446 B)
Edit
Rename
Del
listener.typed.stub (394 B)
Edit
Rename
Del
maintenance-mode.stub (2.03 KB)
Edit
Rename
Del
pest.stub (109 B)
Edit
Rename
Del
policy.stub (1.41 KB)
Edit
Rename
Del
provider.stub (324 B)
Edit
Rename
Del
resource-collection.stub (395 B)
Edit
Rename
Del
routes.stub (59 B)
Edit
Rename
Del
rule.stub (443 B)
Edit
Rename
Del
Edit: maintenance-mode.stub
<?php // Check if the application is in maintenance mode... if (! file_exists($down = __DIR__.'/down')) { return; } // Decode the "down" file's JSON... $data = json_decode(file_get_contents($down), true); // Allow framework to handle request if no prerendered template... if (! isset($data['template'])) { return; } // Allow framework to handle request if request URI is in the exclude list... if (isset($data['except'])) { $uri = parse_url($_SERVER['REQUEST_URI'])['path']; $uri = rawurldecode($uri !== '/' ? trim($uri, '/') : $uri); foreach ((array) $data['except'] as $except) { $except = $except !== '/' ? trim($except, '/') : $except; if ($except == $uri) { return; } $except = preg_quote($except, '#'); $except = str_replace('\*', '.*', $except); if (preg_match('#^'.$except.'\z#u', $uri) === 1) { return; } } } // Allow framework to handle maintenance mode bypass route... if (isset($data['secret']) && $_SERVER['REQUEST_URI'] === '/'.$data['secret']) { return; } // Determine if maintenance mode bypass cookie is valid... if (isset($_COOKIE['laravel_maintenance']) && isset($data['secret'])) { $payload = json_decode(base64_decode($_COOKIE['laravel_maintenance']), true); if (is_array($payload) && is_numeric($payload['expires_at'] ?? null) && isset($payload['mac']) && hash_equals(hash_hmac('sha256', $payload['expires_at'], $data['secret']), $payload['mac']) && (int) $payload['expires_at'] >= time()) { return; } } // Redirect to the proper path if necessary... if (isset($data['redirect']) && $_SERVER['REQUEST_URI'] !== $data['redirect']) { http_response_code(302); header('Location: '.$data['redirect']); exit; } // Output the prerendered template... http_response_code($data['status'] ?? 503); if (isset($data['retry'])) { header('Retry-After: '.$data['retry']); } if (isset($data['refresh'])) { header('Refresh: '.$data['refresh']); } echo $data['template']; exit;
Simpan