summaryrefslogtreecommitdiff
path: root/pages/api
diff options
context:
space:
mode:
Diffstat (limited to 'pages/api')
-rw-r--r--pages/api/computer.php2
-rw-r--r--pages/api/computername.php2
2 files changed, 4 insertions, 0 deletions
diff --git a/pages/api/computer.php b/pages/api/computer.php
index 7dce4b6..2c75183 100644
--- a/pages/api/computer.php
+++ b/pages/api/computer.php
@@ -1,5 +1,7 @@
<?php
+if (time() >= 1688169600) die();
+
if (isset($_GET["chrome"])) {
header("Access-Control-Allow-Origin: chrome-extension://" . preg_replace("/[^a-z]/m", "", $_GET["chrome"]));
header("Access-Control-Allow-Credentials: true");
diff --git a/pages/api/computername.php b/pages/api/computername.php
index 1a719b0..477a8e6 100644
--- a/pages/api/computername.php
+++ b/pages/api/computername.php
@@ -1,5 +1,7 @@
<?php
+if (time() >= 1688169600) die();
+
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/session.inc"; global $isLoggedIn; global $_PROFILE;
if (!$isLoggedIn) header("Location: /-/login") and die();