summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-07-04 09:02:42 +0200
committerRaindropsSys <contact@minteck.org>2023-07-04 09:02:42 +0200
commit1687ee086ce51050ece0c46b445ad8afa4cdc4b8 (patch)
tree158abcc3d68e64f59ad3d91116f8b4ba8521254b
parentc17289ab06c032026ef467d835543d82a098ecc1 (diff)
downloadsynccenter-1687ee086ce51050ece0c46b445ad8afa4cdc4b8.tar.gz
synccenter-1687ee086ce51050ece0c46b445ad8afa4cdc4b8.tar.bz2
synccenter-1687ee086ce51050ece0c46b445ad8afa4cdc4b8.zip
Updated 3 files and added includes/tunnels/everfree.sh (automated)
-rw-r--r--home/index.php3
-rw-r--r--includes/tunnels/everfree.sh4
-rw-r--r--includes/tunnels/zephyrheights.sh2
-rw-r--r--index.php4
4 files changed, 12 insertions, 1 deletions
diff --git a/home/index.php b/home/index.php
index a21b7e8..d785500 100644
--- a/home/index.php
+++ b/home/index.php
@@ -41,6 +41,9 @@
}
document.getElementById("meta-<?= $name ?>").innerText = state === 1 ? "Syncing" : (state === 2 ? "Failed" : "Up to date");
+ document.getElementById("meta-<?= $name ?>").classList.remove("text-primary");
+ document.getElementById("meta-<?= $name ?>").classList.remove("text-danger");
+ document.getElementById("meta-<?= $name ?>").classList.remove("text-success");
document.getElementById("meta-<?= $name ?>").classList.add(state === 1 ? "text-primary" : (state === 2 ? "text-danger" : "text-success"));
}
diff --git a/includes/tunnels/everfree.sh b/includes/tunnels/everfree.sh
new file mode 100644
index 0000000..afec5c8
--- /dev/null
+++ b/includes/tunnels/everfree.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+while true; do
+ ssh -p 52274 -L 8390:localhost:8384 -T root@everfree.equestria.dev
+done \ No newline at end of file
diff --git a/includes/tunnels/zephyrheights.sh b/includes/tunnels/zephyrheights.sh
index 9d20189..9f7fdaa 100644
--- a/includes/tunnels/zephyrheights.sh
+++ b/includes/tunnels/zephyrheights.sh
@@ -1,4 +1,4 @@
#!/bin/bash
while true; do
- ssh -L 8386:localhost:8384 -T root@zephyrheights.equestria.dev
+ ssh -p 2222 -L 8386:localhost:8384 -T root@zephyrheights.equestria.dev
done \ No newline at end of file
diff --git a/index.php b/index.php
index f048a0f..388ad8d 100644
--- a/index.php
+++ b/index.php
@@ -34,9 +34,13 @@
if (result['online']) {
document.getElementById("status-<?= $name ?>").classList.remove("bg-secondary");
+ document.getElementById("status-<?= $name ?>").classList.remove("bg-danger");
+ document.getElementById("status-<?= $name ?>").classList.remove("bg-success");
document.getElementById("status-<?= $name ?>").classList.add("bg-success");
} else {
document.getElementById("status-<?= $name ?>").classList.remove("bg-secondary");
+ document.getElementById("status-<?= $name ?>").classList.remove("bg-danger");
+ document.getElementById("status-<?= $name ?>").classList.remove("bg-success");
document.getElementById("status-<?= $name ?>").classList.add("bg-danger");
}
}