Advertisement
Guest User

Untitled

a guest
Jan 29th, 2022
21
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None
  1. GPL licensed (see end of file) * Use at your own risk! More at https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/ **/ ob_start(); // check for encrypted data to present unlock dialog exec("bash -c 'source /usr/local/etc/library.sh; needs_decrypt'", $output, $ret); if ($ret == 0) { header("Location: /decrypt"); exit(); } // redirect to activation first time exec("a2query -s ncp-activation", $output, $ret); if ($ret == 0) { header("Location: /activate"); exit(); } ini_set('session.cookie_httponly', 1); if (isset($_SERVER['HTTPS'])) ini_set('session.cookie_secure', 1); session_start(); include('elements.php'); $modules_path = '/usr/local/etc/ncp-config.d/'; $l10nDir = "l10n"; // security headers header("Content-Security-Policy: default-src 'none'; script-src 'self'; connect-src 'self'; img-src 'self'; style-src 'self'; object-src 'self';"); header("X-XSS-Protection: 1; mode=block"); header("X-Content-Type-Options: nosniff"); header("X-Robots-Tag: none"); header("X-Permitted-Cross-Domain-Policies: none"); header("X-Frame-Options: DENY"); header("Cache-Control: no-cache"); header('Pragma: no-cache'); header('Expires: -1'); // HTTP2 push headers header("Link: ; rel=preload; as=script;,; rel=preload; as=script;,; rel=preload; as=style;,; rel=preload; as=image;, ; rel=preload; as=image;, rel=preconnect href=ncp-launcher.php;"); ?> Error while loading localizations!
Advertisement
RAW Paste Data Copied
Advertisement