summaryrefslogtreecommitdiff
path: root/pages/api/docs.php
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-03-27 22:22:53 +0200
committerRaindropsSys <contact@minteck.org>2023-03-27 22:22:53 +0200
commite98e95d89939cdc1252d02df04ae8d91c6aa8c92 (patch)
treea5d5535f8058f1a7b45a31a1caf36ab7e24ff19d /pages/api/docs.php
parent6ab243c12f2514cd0f40e80504223664755a6da4 (diff)
downloadpluralconnect-e98e95d89939cdc1252d02df04ae8d91c6aa8c92.tar.gz
pluralconnect-e98e95d89939cdc1252d02df04ae8d91c6aa8c92.tar.bz2
pluralconnect-e98e95d89939cdc1252d02df04ae8d91c6aa8c92.zip
Updated 9 files, added 9 files, deleted 3 files and renamed includes/refresh/logo.inc (automated)
Diffstat (limited to 'pages/api/docs.php')
-rw-r--r--pages/api/docs.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/pages/api/docs.php b/pages/api/docs.php
index d279765..51b92f5 100644
--- a/pages/api/docs.php
+++ b/pages/api/docs.php
@@ -1,6 +1,7 @@
<?php
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/session.inc"; global $isLoggedIn; global $_PROFILE;
+require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc";
if (!$isLoggedIn) header("Location: /-/login") and die();
$request_raw = file_get_contents('php://input');
@@ -26,4 +27,5 @@ if ($json_object["category"]) $data["category"] = trim($json_object["category"])
$data["last"]["date"] = time();
$data["last"]["author"] = $_PROFILE['login'];
-file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/docs/" . $select . ".json", utf8_encode(json_encode($data))); \ No newline at end of file
+file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/docs/" . $select . ".json", utf8_encode(json_encode($data)));
+createJob("CleanupDocs", []); \ No newline at end of file