summaryrefslogtreecommitdiff
path: root/includes/refresh.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/refresh.php')
-rw-r--r--includes/refresh.php11
1 files changed, 0 insertions, 11 deletions
diff --git a/includes/refresh.php b/includes/refresh.php
index 8c50dfb..8263f8e 100644
--- a/includes/refresh.php
+++ b/includes/refresh.php
@@ -1,12 +1,10 @@
<?php
-require_once './composer/vendor/autoload.php';
$_SERVER['DOCUMENT_ROOT'] = "..";
$app = json_decode(file_get_contents("./app.json"), true);
@mkdir("./data");
-file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/calendar.ics", file_get_contents($app["calendar"]));
$version = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/version.json"), true);
@@ -128,15 +126,6 @@ if (time() - $lastBackup >= 3600) {
echo("Backup skipped\n");
}
-echo("Fetching school information...\n");
-file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/school.json", "{}");
-
-chdir("./external/school");
-exec("node index.js");
-chdir("../..");
-
-echo("Fetched school information\n");
-
echo("Updating address book...\n");
$contacts = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/addressbook/contacts.json"), true);