Guest User


a guest
Jan 29th, 2022
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 **/ ob_start(); // check for encrypted data to present unlock dialog exec("bash -c 'source /usr/local/etc/; 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!
RAW Paste Data Copied