This commit is contained in:
Bruno Rybársky 2024-11-18 22:55:24 +01:00
parent f26ea77528
commit 8e531d24fc
No known key found for this signature in database
GPG Key ID: 6C9206A821C70598
11 changed files with 23 additions and 22 deletions

@ -1,5 +1,5 @@
<!--suppress HtmlUnknownTag, HtmlUnknownTag -->
<page minimal_permission_level="2" secret="yes" page_title="Súbory"></page>
<page minimal_permission_level="2" page_title="Files" secret="yes"></page>
<div id="filelist"></div>
<form id="uploadForm" enctype="multipart/form-data" method="POST">
<label for="fileInput">Send this file: </label>

@ -17,6 +17,6 @@ return [
[
"minimal_permission_level" => 1,
"secret" => "no",
"page_title" => "Účet"
"page_title" => "Account"
]
];

@ -16,6 +16,6 @@ return [
[
"minimal_permission_level" => 2,
"secret" => "no",
"page_title" => "Nastavenia"
"page_title" => "Settings"
]
];

@ -1,4 +1,4 @@
<page minimal_permission_level="2" page_title="Domov" secret="no"></page>
<page minimal_permission_level="2" page_title="Testing" secret="no"></page>
<div class="sliderm" id="exampe-slider">
<div class="sliderm__slider">
<div class="sliderm__slides">

@ -1,5 +1,5 @@
<!--suppress HtmlUnknownTag, HtmlUnknownTag -->
<page minimal_permission_level="1" secret="no" page_title="Domov"></page>
<page minimal_permission_level="1" page_title="Homepage" secret="no"></page>
<header>
<h1 class="title">Who are we?</h1>
<p>We are a team of talented and ambitious high school students from Adlerka electrical engineering school,

@ -23,12 +23,12 @@ foreach ($articles as $article){
//$articleWrittenBy = $article["WrittenBy"];
$articleWrittenAt = htmlspecialchars($article["WrittenAt"]);
$articleWrittenByName = htmlspecialchars($article["WrittenByName"]);
$articleTemplate = str_replace("__TEMPLATE_ARTICLE_TITLE__", $articleTitle, $articleTemplate);
$articleTemplate = str_replace("__TEMPLATE_ARTICLE_AUTHOR__", $articleWrittenByName, $articleTemplate);
$articleTemplate = str_replace("__TEMPLATE_ARTICLE_DATE__", $articleWrittenAt, $articleTemplate);
$articleTemplate = str_replace("__TEMPLATE_ARTICLE_BODY__", $articleBody, $articleTemplate);
$articleTemplateTemp = str_replace("__TEMPLATE_ARTICLE_TITLE__", $articleTitle, $articleTemplate);
$articleTemplateTemp = str_replace("__TEMPLATE_ARTICLE_AUTHOR__", $articleWrittenByName, $articleTemplateTemp);
$articleTemplateTemp = str_replace("__TEMPLATE_ARTICLE_DATE__", $articleWrittenAt, $articleTemplateTemp);
$articleTemplateTemp = str_replace("__TEMPLATE_ARTICLE_BODY__", $articleBody, $articleTemplateTemp);
$articles_out .= $articleTemplate;
$articles_out .= $articleTemplateTemp;
}
$output = str_replace("__TEMPLATE__ARTICLES_HERE__", $articles_out, $output);
@ -39,6 +39,6 @@ return [
[
"minimal_permission_level" => 1,
"secret" => "no",
"page_title" => "Novinky"
"page_title" => "Articles"
]
];

@ -1,7 +1,7 @@
<div class="wrapper-403 wrapper-40x">
<h2>NECHOĎ SEM</h2>
<h2>FORBIDDEN</h2>
<h1 class="error-code">403</h1>
<h3><i class="ri-error-warning-line"></i> Našli sme stránku ktorú hľadáš, ale nemáš práva na ňu pristupovať: <span class="error">__TEMPLATE_PAGE_TITLE__</span>. <i class="ri-error-warning-line"></i></h3>
<h3><i class="ri-error-warning-line"></i> You are not authorized to view this page: <span class="error">__TEMPLATE_PAGE_TITLE__</span>. <i class="ri-error-warning-line"></i></h3>
<!--suppress HtmlUnknownTarget -->
<a href="__DEFAULT_LINK__" role="button" class="back"><i class="ri-arrow-left-line"></i> SPÄŤ DOMOV</a>
<a class="back" href="__DEFAULT_LINK__" role="button"><i class="ri-arrow-left-line"></i> BACK HOME</a>
</div>

@ -1,7 +1,7 @@
<div class="wrapper-404 wrapper-40x">
<h2>TY KÁR KAM TO DEŠ</h2>
<h2>NOT FOUND</h2>
<h1 class="error-code">404</h1>
<h3><i class="ri-error-warning-line"></i> Nenašli sme stránku ktorú hľadáš: <span class="error">__TEMPLATE_PAGE_TITLE__</span>. <i class="ri-error-warning-line"></i></h3>
<h3><i class="ri-error-warning-line"></i> This page was not found: <span class="error">__TEMPLATE_PAGE_TITLE__</span>. <i class="ri-error-warning-line"></i></h3>
<!--suppress HtmlUnknownTarget -->
<a href="__DEFAULT_LINK__" role="button" class="back"><i class="ri-arrow-left-line"></i> SPÄŤ DOMOV</a>
<a class="back" href="__DEFAULT_LINK__" role="button"><i class="ri-arrow-left-line"></i> BACK HOME</a>
</div>

@ -1,7 +1,7 @@
<div class="wrapper-500">
<h2>Niekto to pobabral</h2>
<h2>Someone messed up</h2>
<h1 class="error-code">500</h1>
<h3><i class="ri-error-warning-line"></i> Nejaký neschopný vývojár nevedel robiť túto stránku. <i class="ri-error-warning-line"></i></h3>
<h3><i class="ri-error-warning-line"></i> Some incompetent developer messed up. <i class="ri-error-warning-line"></i></h3>
<!--suppress HtmlUnknownTarget -->
<a href="__DEFAULT_LINK__" role="button" class="back"><i class="ri-arrow-left-line"></i> SPÄŤ DOMOV</a>
<a class="back" href="__DEFAULT_LINK__" role="button"><i class="ri-arrow-left-line"></i> BACK HOME</a>
</div>

@ -13,4 +13,5 @@
<!-- <p class="sponsorName">ZF</p>-->
<!-- </div>-->
</div>
<a href="https://www.adlerka.sk">Adlerka school</a>
<a href="https://www.adlerka.sk">Adlerka school</a>
<a href="https://cansat.esa.int">CanSat</a>

@ -15,7 +15,7 @@
<div id="articlecreate">
<input type="text" placeholder="Article Title" id="articletitleinput"><br>
<textarea id="articlebodyinput" placeholder="Article Body" rows="10" cols="80"></textarea><br>
<label for="articleprivilegeinput">Oprávnenie na pozretie článku:</label>
<label for="articleprivilegeinput">Permission required:</label>
<input type="number" id="articleprivilegeinput" min="1" value="1" step="1">
<button id="articlesubmit" onclick="submitarticle()"><i class="ri-add-circle-line"></i></button>
<button id="articlecreateclose" onclick="togglearticlecreate()"><i class="ri-close-line"></i></button>