summaryrefslogtreecommitdiff
path: root/includes/refresh.php
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-03-12 19:16:53 +0100
committerRaindropsSys <contact@minteck.org>2023-03-12 19:16:53 +0100
commiteb89b15c0f044673c1206a418a21d0baba1a675e (patch)
tree39ac31a576d8b8392cbd9baf8d67621bf2cefa86 /includes/refresh.php
parent5385f0ed8fbb4325203a222a75e6700ffb519349 (diff)
downloadpluralconnect-eb89b15c0f044673c1206a418a21d0baba1a675e.tar.gz
pluralconnect-eb89b15c0f044673c1206a418a21d0baba1a675e.tar.bz2
pluralconnect-eb89b15c0f044673c1206a418a21d0baba1a675e.zip
Updated 104 files, added 3 files, deleted 4 files and renamed 36 files (automated)
Diffstat (limited to 'includes/refresh.php')
-rw-r--r--includes/refresh.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/refresh.php b/includes/refresh.php
index 65c570c..e561559 100644
--- a/includes/refresh.php
+++ b/includes/refresh.php
@@ -43,7 +43,7 @@ foreach ($deletable as $item) {
}
$times["docs_cleanup"] = microtime(true) - $currentOpStart;
-require_once "./cleanup.inc";
+require_once "./refresh/cleanup.inc";
$currentOpStart = microtime(true);
$version = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/version.json"), true);
@@ -250,7 +250,7 @@ echo("Backing up...\n");
$lastBackup = (int)trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/backup.txt"));
if (time() - $lastBackup >= 3600) {
- require_once "./backup.inc";
+ require_once "./refresh/backup.inc";
file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/backup.txt", time());
echo("Backup completed\n");
} else {
@@ -260,7 +260,7 @@ if (time() - $lastBackup >= 3600) {
echo("Generating logo...\n");
$currentOpStart = microtime(true);
-require_once "./logo.inc";
+require_once "./refresh/logo.inc";
$times["logo"] = microtime(true) - $currentOpStart;
echo("Generated logo\n");
@@ -279,7 +279,7 @@ echo("Fetched school information\n");
echo("Downloading assets...\n");
$currentOpStart = microtime(true);
-require_once "./assets.inc";
+require_once "./refresh/assets.inc";
$times["assets"] = microtime(true) - $currentOpStart;
echo("Downloading assets\n");