make remixicon local
This commit is contained in:
parent
7828553752
commit
d53d0b1f54
8279
assets/3rdparty/fonts/remixicon/remixicon.css
vendored
Normal file
8279
assets/3rdparty/fonts/remixicon/remixicon.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
assets/3rdparty/fonts/remixicon/remixicon.eot
vendored
Normal file
BIN
assets/3rdparty/fonts/remixicon/remixicon.eot
vendored
Normal file
Binary file not shown.
8230
assets/3rdparty/fonts/remixicon/remixicon.svg
vendored
Normal file
8230
assets/3rdparty/fonts/remixicon/remixicon.svg
vendored
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 2.3 MiB |
BIN
assets/3rdparty/fonts/remixicon/remixicon.ttf
vendored
Normal file
BIN
assets/3rdparty/fonts/remixicon/remixicon.ttf
vendored
Normal file
Binary file not shown.
BIN
assets/3rdparty/fonts/remixicon/remixicon.woff
vendored
Normal file
BIN
assets/3rdparty/fonts/remixicon/remixicon.woff
vendored
Normal file
Binary file not shown.
BIN
assets/3rdparty/fonts/remixicon/remixicon.woff2
vendored
Normal file
BIN
assets/3rdparty/fonts/remixicon/remixicon.woff2
vendored
Normal file
Binary file not shown.
@ -14,6 +14,8 @@ loadRouterConfig();
|
|||||||
$canRender = initRouter();
|
$canRender = initRouter();
|
||||||
|
|
||||||
if ($canRender) {
|
if ($canRender) {
|
||||||
|
/** @noinspection PhpArrayIsAlwaysEmptyInspection */
|
||||||
|
/** @noinspection PhpArrayIsAlwaysEmptyInspection */
|
||||||
session_set_cookie_params(0, '/', "." . $routerRequest["domain"] . "." . $routerRequest["tld"], true, true);
|
session_set_cookie_params(0, '/', "." . $routerRequest["domain"] . "." . $routerRequest["tld"], true, true);
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
@ -21,10 +23,13 @@ if ($canRender) {
|
|||||||
setDefaultSessionData();
|
setDefaultSessionData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @noinspection PhpArrayIsAlwaysEmptyInspection */
|
||||||
if ($routerRequest["type"] == "api") {
|
if ($routerRequest["type"] == "api") {
|
||||||
|
/** @noinspection PhpArrayIsAlwaysEmptyInspection */
|
||||||
echo getEndpoint($routerRequest["page_name"]);
|
echo getEndpoint($routerRequest["page_name"]);
|
||||||
|
|
||||||
} elseif ($routerRequest["type"] == "page") {
|
} /** @noinspection PhpArrayIsAlwaysEmptyInspection */ elseif ($routerRequest["type"] == "page") {
|
||||||
|
/** @noinspection PhpArrayIsAlwaysEmptyInspection */
|
||||||
echo getPage($routerRequest["page_name"]);
|
echo getPage($routerRequest["page_name"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -112,12 +112,12 @@ function getPage($page_name = null): array|false|string
|
|||||||
$page_title = $page_name;
|
$page_title = $page_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
$dynastyle = "<style>";
|
$dynamic_style = "<style>";
|
||||||
if(isLoggedIn() && !empty($_SESSION["favorite_color"]) && is_int($_SESSION["favorite_color"]) && $_SESSION["favorite_color"] <= 4294967295){
|
if(isLoggedIn() && !empty($_SESSION["favorite_color"]) && is_int($_SESSION["favorite_color"]) && $_SESSION["favorite_color"] <= 4294967295){
|
||||||
$color = dechex($_SESSION["favorite_color"]);
|
$color = dechex($_SESSION["favorite_color"]);
|
||||||
$dynastyle .= "--root{ --favorite-color: #$color;";
|
$dynamic_style .= "--root{ --favorite-color: #$color;";
|
||||||
}
|
}
|
||||||
$dynastyle .= "</style>";
|
$dynamic_style .= "</style>";
|
||||||
|
|
||||||
$navpages = generateNavigation();
|
$navpages = generateNavigation();
|
||||||
|
|
||||||
@ -126,6 +126,6 @@ function getPage($page_name = null): array|false|string
|
|||||||
$out = $skeleton;
|
$out = $skeleton;
|
||||||
$out = str_replace("__TEMPLATE__NAV__", $nav, $out);
|
$out = str_replace("__TEMPLATE__NAV__", $nav, $out);
|
||||||
$out = str_replace("__TEMPLATE__PAGE__", $page, $out);
|
$out = str_replace("__TEMPLATE__PAGE__", $page, $out);
|
||||||
$out = str_replace("__TEMPLATE__DYNASTYLE__", $dynastyle, $out);
|
$out = str_replace("__TEMPLATE__DYNASTYLE__", $dynamic_style, $out);
|
||||||
return str_replace("__TEMPLATE_PAGE_TITLE__", $page_title, $out);
|
return str_replace("__TEMPLATE_PAGE_TITLE__", $page_title, $out);
|
||||||
}
|
}
|
@ -26,7 +26,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<strong>Super admini:</strong>
|
<strong>Super admini:</strong>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Robíme celý server..</li>
|
<li>Robíme celý server.</li>
|
||||||
<li>Vďaka nám je AdlerkaSMP<br>bezpečné miesto.</li>
|
<li>Vďaka nám je AdlerkaSMP<br>bezpečné miesto.</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/remixicon/4.1.0/remixicon.min.css" integrity="sha512-i5VzKip7owqOGjb0YTF8MR2J9yBVO3FLHeazKzLp354XYTmKcqEU3UeFYUw82R8tV6JqxeATOfstCfpfPhbyEA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
<link rel="stylesheet" href="/assets/3rdparty/fonts/remixicon/remixicon.css">
|
||||||
<link rel="stylesheet" href="/assets/style.css">
|
<link rel="stylesheet" href="/assets/style.css">
|
||||||
<script src="/assets/script.js"></script>
|
<script src="/assets/script.js"></script>
|
||||||
<script async src="https://umami.brn.systems/script.js" data-website-id="95e93885-5c19-4cab-ba9b-2f746a316a2a"></script>
|
<script async src="https://umami.brn.systems/script.js" data-website-id="95e93885-5c19-4cab-ba9b-2f746a316a2a"></script>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script>
|
<script>
|
||||||
function changePassword() {
|
function changePassword() {
|
||||||
const oldPassword = document.getElementById("changeoldPassword").value;
|
const oldPassword = document.getElementById("changeOldPassword").value;
|
||||||
const newPassword = document.getElementById("changeNewPassword").value;
|
const newPassword = document.getElementById("changeNewPassword").value;
|
||||||
|
|
||||||
const data = new URLSearchParams();
|
const data = new URLSearchParams();
|
||||||
|
Loading…
Reference in New Issue
Block a user