summaryrefslogtreecommitdiff
path: root/includes/jobs
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-06-22 23:06:12 +0200
committerRaindropsSys <contact@minteck.org>2023-06-22 23:06:12 +0200
commit23563c7188e089929b60f9e10721c6fc43a220ff (patch)
treeedfe2b009c82900d4ac27db02222d2f68dcad846 /includes/jobs
parent7a7a49332df7c852abbaa33c7e8e87f93d064d61 (diff)
downloadpluralconnect-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/jobs')
-rw-r--r--includes/jobs/UpdateAssets.php4
-rw-r--r--includes/jobs/UpdateLogo.php28
2 files changed, 4 insertions, 28 deletions
diff --git a/includes/jobs/UpdateAssets.php b/includes/jobs/UpdateAssets.php
index 2b5bba2..fdc0a30 100644
--- a/includes/jobs/UpdateAssets.php
+++ b/includes/jobs/UpdateAssets.php
@@ -105,4 +105,6 @@ downloadAssets("ynmuc");
if (isset($app["other"]) && isset($app["other"]["id"]) && isset($app["other"]["token"])) {
echo("Downloading for other\n");
downloadAssets($app["other"]["id"], "other");
-} \ No newline at end of file
+}
+
+require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/maintenance/deleteUnusedAssets.php"; \ No newline at end of file
diff --git a/includes/jobs/UpdateLogo.php b/includes/jobs/UpdateLogo.php
index 9d669fc..e6c605f 100644
--- a/includes/jobs/UpdateLogo.php
+++ b/includes/jobs/UpdateLogo.php
@@ -102,19 +102,6 @@ unlink("/tmp/image.png");
imagepng($img3, $_SERVER['DOCUMENT_ROOT'] . "/assets/logo/newlogo.png");
imagepng($img3, "/tmp/ponieslogo1.png");
-for ($x = 1; $x <= 120; $x++) {
- imagefilter($img2, IMG_FILTER_GAUSSIAN_BLUR);
-}
-
-imagefilter($img2, IMG_FILTER_BRIGHTNESS, -100);
-
-imagepng($img2, "/tmp/image.png");
-$img3 = imageCreateCorners("/tmp/image.png", $columns * 10);
-unlink("/tmp/image.png");
-
-imagepng($img3, $_SERVER['DOCUMENT_ROOT'] . "/assets/logo/newlogo-template.png");
-imagepng($img3, "/tmp/ponieslogo2.png");
-
$isLoggedIn = true;
$isLowerLoggedIn = false;
@@ -207,17 +194,4 @@ $img3 = imageCreateCorners("/tmp/image.png", $columns * 10);
unlink("/tmp/image.png");
imagepng($img3, $_SERVER['DOCUMENT_ROOT'] . "/assets/logo/newlogo3.png");
-imagepng($img3, "/tmp/ponieslogo1b.png");
-
-for ($x = 1; $x <= 120; $x++) {
- imagefilter($img2, IMG_FILTER_GAUSSIAN_BLUR);
-}
-
-imagefilter($img2, IMG_FILTER_BRIGHTNESS, -100);
-
-imagepng($img2, "/tmp/image.png");
-$img3 = imageCreateCorners("/tmp/image.png", $columns * 10);
-unlink("/tmp/image.png");
-
-imagepng($img3, $_SERVER['DOCUMENT_ROOT'] . "/assets/logo/newlogo3-template.png");
-imagepng($img3, "/tmp/ponieslogo2b.png"); \ No newline at end of file
+imagepng($img3, "/tmp/ponieslogo1b.png"); \ No newline at end of file