diff options
author | RaindropsSys <contact@minteck.org> | 2023-06-22 23:06:12 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-06-22 23:06:12 +0200 |
commit | 23563c7188e089929b60f9e10721c6fc43a220ff (patch) | |
tree | edfe2b009c82900d4ac27db02222d2f68dcad846 /includes/refresh.php | |
parent | 7a7a49332df7c852abbaa33c7e8e87f93d064d61 (diff) | |
download | pluralconnect-23563c7188e089929b60f9e10721c6fc43a220ff.tar.gz pluralconnect-23563c7188e089929b60f9e10721c6fc43a220ff.tar.bz2 pluralconnect-23563c7188e089929b60f9e10721c6fc43a220ff.zip |
Updated 15 files, added includes/maintenance/deleteUnusedAssets.php and deleted 4944 files (automated)
Diffstat (limited to 'includes/refresh.php')
-rw-r--r-- | includes/refresh.php | 11 |
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); |