diff options
Diffstat (limited to 'ncp-web/activate/index.php')
-rw-r--r-- | ncp-web/activate/index.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ncp-web/activate/index.php b/ncp-web/activate/index.php index 8b2d901c..5c94a1a3 100644 --- a/ncp-web/activate/index.php +++ b/ncp-web/activate/index.php @@ -1,4 +1,12 @@ -<?php session_start(); ?> +<?php +// disallow once activated +exec("a2query -s ncp-activation", $output, $ret); +if ($ret != 0) { + http_response_code(404); + exit(); +} +session_start(); +?> <!DOCTYPE html> <html class="ng-csp" data-placeholder-focus="false" lang="en"> <head> @@ -10,7 +18,7 @@ <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="pragma" content="no-cache"> - <link rel="icon" type="image/png" href="img/favicon.png"/> + <link rel="icon" type="image/png" href="../img/favicon.png"/> <link rel="stylesheet" href="CSS.css"> </head> <body id="body-login"> |