Updated 7 files and added _icons/_mdi/dashboard.svg (automated)

mane
Mia Raindrops 2 weeks ago
parent 2575c227f0
commit 3e34d5ca6e
Signed by: Mia Raindrops
GPG Key ID: EFBDC68435A574B7

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>

After

Width:  |  Height:  |  Size: 192 B

@ -28,7 +28,7 @@ if (isset($_PROFILE)) {
$data["subscription"] = "plus";
}
$admin = $_PROFILE["admin"] ?? false;
$data["admin"] = $_PROFILE["admin"] ?? false;
$data["name"] = $_PROFILE["nick_name"] ?? $_PROFILE["first_name"] . " " . $_PROFILE["last_name"];
}

@ -867,4 +867,7 @@ if (isset($_GET["__"])) {
</style>
<?php endif; ?>
<div class="bg-white">
<div class="bg-white">
<?php if (isset($_PROFILE)): ?>
<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/oobe.php"; ?>
<?php endif; ?>

@ -346,6 +346,4 @@
}
</script>
<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/oobe.php"; ?>
<div id="page">

@ -21,7 +21,7 @@
<div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px; margin-right: 5px;"></div>
<?php if (!isset($_COOKIE["DeltaHandoffPalette"])): ?><div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px; margin-right: 5px;"></div><?php endif; ?>
<div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px;"></div>
</div>
<div style="display: flex; justify-content: end; width: 100%;">
@ -52,7 +52,7 @@
<div style="width: 12px; height: 12px; background-color: var(--palette-9); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px; margin-right: 5px;"></div>
<?php if (!isset($_COOKIE["DeltaHandoffPalette"])): ?><div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px; margin-right: 5px;"></div><?php endif; ?>
<div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px;"></div>
</div>
<div style="display: flex; justify-content: end; width: 100%;">
@ -85,7 +85,7 @@
<div style="width: 12px; height: 12px; background-color: var(--palette-9); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-9); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px; margin-right: 5px;"></div>
<?php if (!isset($_COOKIE["DeltaHandoffPalette"])): ?><div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px; margin-right: 5px;"></div><?php endif; ?>
<div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px;"></div>
</div>
<div style="display: flex; justify-content: end; width: 100%;">
@ -118,11 +118,11 @@
<div style="width: 12px; height: 12px; background-color: var(--palette-9); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-9); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-9); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px; margin-right: 5px;"></div>
<?php if (!isset($_COOKIE["DeltaHandoffPalette"])): ?><div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px; margin-right: 5px;"></div><?php endif; ?>
<div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px;"></div>
</div>
<div style="display: flex; justify-content: end; width: 100%;">
<a onclick="page(5);" class="btn btn-primary"><?= l("lang_oobe_next") ?></a>
<a onclick="if (document.cookie.includes('DeltaHandoffPalette=')) { page(6); } else { page(5); }" class="btn btn-primary"><?= l("lang_oobe_next") ?></a>
</div>
</div>
</div>
@ -151,7 +151,7 @@
<div style="width: 12px; height: 12px; background-color: var(--palette-9); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-9); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-9); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-9); border-radius: 999px; margin-right: 5px;"></div>
<?php if (!isset($_COOKIE["DeltaHandoffPalette"])): ?><div style="width: 12px; height: 12px; background-color: var(--palette-9); border-radius: 999px; margin-right: 5px;"></div><?php endif; ?>
<div style="width: 12px; height: 12px; background-color: var(--palette-3); border-radius: 999px;"></div>
</div>
<div style="display: flex; justify-content: end; width: 100%;">
@ -191,14 +191,14 @@
<div style="display: grid; grid-template-columns: 1fr 1fr 1fr;">
<div style="display: flex; justify-content: start; width: 100%;">
<a onclick="page(5, true);" class="btn btn-outline-primary"><?= l("lang_oobe_back") ?></a>
<a onclick="if (document.cookie.includes('DeltaHandoffPalette=')) { page(4, true); } else { page(5, true); }" class="btn btn-outline-primary"><?= l("lang_oobe_back") ?></a>
</div>
<div style="display: flex; justify-content: center; align-items: center; width: 100%;">
<div style="width: 12px; height: 12px; background-color: var(--palette-9); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-9); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-9); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-9); border-radius: 999px; margin-right: 5px;"></div>
<div style="width: 12px; height: 12px; background-color: var(--palette-9); border-radius: 999px; margin-right: 5px;"></div>
<?php if (!isset($_COOKIE["DeltaHandoffPalette"])): ?><div style="width: 12px; height: 12px; background-color: var(--palette-9); border-radius: 999px; margin-right: 5px;"></div><?php endif; ?>
<div style="width: 12px; height: 12px; background-color: var(--palette-9); border-radius: 999px;"></div>
</div>
<div style="display: flex; justify-content: end; width: 100%;">
@ -222,7 +222,7 @@
<div style="display: flex; justify-content: start; width: 100%;"></div>
<div style="display: flex; justify-content: center; align-items: center; width: 100%;"></div>
<div style="display: flex; justify-content: end; width: 100%;">
<a onclick="localStorage.setItem('oobe', '1');" data-bs-dismiss="modal" class="btn btn-primary"><?= l("lang_oobe_finish") ?></a>
<a onclick="document.cookie = 'DeltaOOBECompleted=1; Path=/';" data-bs-dismiss="modal" class="btn btn-primary"><?= l("lang_oobe_finish") ?></a>
</div>
</div>
</div>
@ -324,11 +324,13 @@
<script>
function page(n, back) {
let m = parseInt(Array.from(document.getElementsByClassName("oobe-page")).filter(i => i.style.display !== "none")[0].id.split("-")[2]);
if (back) {
document.getElementById("oobe-page-" + (n + 1)).classList.add("hiding-back");
document.getElementById("oobe-page-" + m).classList.add("hiding-back");
setTimeout(() => {
document.getElementById("oobe-page-" + (n + 1)).classList.remove("hiding-back");
document.getElementById("oobe-page-" + (n + 1)).style.display = "none";
document.getElementById("oobe-page-" + m).classList.remove("hiding-back");
document.getElementById("oobe-page-" + m).style.display = "none";
document.getElementById("oobe-page-" + n).classList.add("showing-back");
document.getElementById("oobe-page-" + n).style.display = "";
setTimeout(() => {
@ -336,10 +338,10 @@
}, 200);
}, 200);
} else {
document.getElementById("oobe-page-" + (n - 1)).classList.add("hiding");
document.getElementById("oobe-page-" + m).classList.add("hiding");
setTimeout(() => {
document.getElementById("oobe-page-" + (n - 1)).classList.remove("hiding");
document.getElementById("oobe-page-" + (n - 1)).style.display = "none";
document.getElementById("oobe-page-" + m).classList.remove("hiding");
document.getElementById("oobe-page-" + m).style.display = "none";
document.getElementById("oobe-page-" + n).classList.add("showing");
document.getElementById("oobe-page-" + n).style.display = "";
setTimeout(() => {
@ -351,8 +353,7 @@
const oobe = new bootstrap.Modal(document.getElementById("oobe"));
if (localStorage.getItem("oobe") !== "1") {
localStorage.removeItem("oobe");
if (!document.cookie.includes("DeltaOOBECompleted=1")) {
oobe.show();
document.getElementById("oobe").classList.add("fade");
}

@ -49,6 +49,18 @@ if (isset($_POST["p"]) && $_POST["p"] === "1") {
if (time() - strtotime($list[$_POST['code']]["date"]) > 900) {
$error = "lang_login_invalid";
} else {
if ($_SERVER["HTTP_HOST"] === "192.168.1.121:81") {
$cont = false;
if (json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/profiles/" . $users[$_POST["email"]] . ".json"), true)["admin"]) {
$cont = true;
}
if (!$cont) {
header("Location: https://delta.equestria.dev");
die();
}
}
sendLogin($_POST["email"]);
$token = encode(openssl_random_pseudo_bytes(128));

@ -51,6 +51,18 @@ if (isset($result["access_token"])) {
if (!file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/tokens")) mkdir($_SERVER['DOCUMENT_ROOT'] . "/includes/tokens");
if ($_SERVER["HTTP_HOST"] === "192.168.1.121:81") {
$cont = false;
if (json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/profiles/" . $users[$result["email"]] . ".json"), true)["admin"]) {
$cont = true;
}
if (!$cont) {
header("Location: https://delta.equestria.dev");
die();
}
}
$token = encode(openssl_random_pseudo_bytes(128));
file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/tokens/" . $token, json_encode([

@ -1 +1 @@
5.1.13-rc1
5.1.14-rc2
Loading…
Cancel
Save