Improved slightly error pages, Added card's corner triangular button
Update .gitignore, 403.php, and 7 more files...
This commit is contained in:
@@ -18,9 +18,12 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
|
||||
<link rel="stylesheet" href="/resources/HalfMoon/1.1.1/css/halfmoon-variables.min.css" />
|
||||
<link rel="stylesheet" href="/resources/FontAwesomePro/5.15.3/css/all.min.css">
|
||||
<link rel="stylesheet" href="/resources/Azias/css/nibblepoker.lu.min.css">
|
||||
<link rel="preload" href="/resources/Quantum/Quantum.otf" as="font">
|
||||
<link rel="preload" href="/resources/FontAwesomePro/5.15.3/webfonts/fa-duotone-900.woff2" as="font">
|
||||
<link rel="preload" href="/resources/FontAwesomePro/5.15.3/webfonts/fa-brands-400.woff2" as="font">
|
||||
<link rel="preload" href="/resources/FontAwesomePro/5.15.3/webfonts/fa-solid-900.woff2" as="font">
|
||||
<link rel="preload" href="/resources/Azias/imgs/3px-tile-0.1.png" as="image">
|
||||
<link rel="preload" href="/resources/Azias/imgs/3px-tile.png" as="image">
|
||||
<?php
|
||||
// Causes Chrome to bitch about the cross-origin header.
|
||||
// <link rel="preload" href="/resources/Quantum/Quantum.otf" as="font">
|
||||
// <link rel="preload" href="/resources/FontAwesomePro/5.15.3/webfonts/fa-duotone-900.woff2" as="font">
|
||||
// <link rel="preload" href="/resources/FontAwesomePro/5.15.3/webfonts/fa-brands-400.woff2" as="font">
|
||||
// <link rel="preload" href="/resources/FontAwesomePro/5.15.3/webfonts/fa-solid-900.woff2" as="font">
|
||||
// <link rel="preload" href="/resources/Azias/imgs/3px-tile-0.1.png" as="image">
|
||||
// <link rel="preload" href="/resources/Azias/imgs/3px-tile.png" as="image">
|
||||
?>
|
||||
|
||||
38
commons/modals.php
Normal file
38
commons/modals.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
// Making sure the file is included and not accessed directly.
|
||||
if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
|
||||
header('HTTP/1.1 403 Forbidden');
|
||||
die();
|
||||
}
|
||||
|
||||
function get_modal_id(string $id): string {
|
||||
return "modal-".$id;
|
||||
}
|
||||
|
||||
function add_code_modal(string $id, string $title, string $text) {
|
||||
echo('<div class="modal" id="'.get_modal_id($id).'" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content p-0">
|
||||
<a href="#" class="close" role="button" aria-label="Close">
|
||||
<span aria-hidden="true"><i class="fad fa-times"></i></span>
|
||||
</a>
|
||||
<h5 class="modal-title my-10 text-center">'.$title.'</h5>
|
||||
<hr class="my-15">
|
||||
<div class="card p-0 m-0 bg-very-dark mx-15">
|
||||
<p id="modal-text-'.$id.'" class="text-monospace mx-15">'.$text.'</p>
|
||||
</div>
|
||||
<div class="text-right text-center my-15">
|
||||
<a href="#" class="btn mr-20" role="button">'.localize("generic.button.close").'</a>
|
||||
<a href="#" class="btn btn-primary disabled" role="button">'.localize("generic.button.copy").'</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>');
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -101,8 +101,10 @@
|
||||
"error.4xx.button.back": "Go back",
|
||||
"error.403.title": "403 Error",
|
||||
"error.403.description": "Access to the requested resource is forbidden !",
|
||||
"error.403.explanation": "If this problem persists, you can contact us through avenues given on the <a href=\"/contact/\">Contact</a> page.",
|
||||
"error.404.title": "404 Error",
|
||||
"error.404.description": "The requested resource couldn't be found on the server !",
|
||||
"error.404.explanation": "If this problem persists, you can contact us through avenues given on the <a href=\"/contact/\">Contact</a> page.",
|
||||
|
||||
"error.content.title.generic": "Content error",
|
||||
"error.content.title.empty": "No content found",
|
||||
@@ -184,7 +186,12 @@
|
||||
"contact.tox.main": "Main account:",
|
||||
"contact.tox.secondary": "Backup account:",
|
||||
"contact.tox.button.open": "Open in Tox Client",
|
||||
"contact.tox.button.copy": "Copy to clipboard"
|
||||
"contact.tox.button.copy": "Copy to clipboard",
|
||||
|
||||
"generic.button.close": "Close",
|
||||
"generic.button.copy": "Copy to clipboard",
|
||||
|
||||
"modal.title.debugging": "Debugging information"
|
||||
},
|
||||
"fr": {
|
||||
"home.title.nav": "Accueil",
|
||||
@@ -284,8 +291,10 @@
|
||||
"error.4xx.button.back": "Retourner en arrière",
|
||||
"error.403.title": "Erreur 403",
|
||||
"error.403.description": "L'accès à la ressource demandée est interdit !",
|
||||
"error.403.explanation": "Si ce problème persiste, vous pouvez nous contacter via une des avenues données sur la page <a href=\"/contact/\">Contact</a>.",
|
||||
"error.404.title": "Erreur 404",
|
||||
"error.404.description": "La ressource demandée est introuvable sur le serveur !",
|
||||
"error.404.explanation": "Si ce problème persiste, vous pouvez nous contacter via une des avenues données sur la page <a href=\"/contact/\">Contact</a>.",
|
||||
|
||||
"error.content.title.generic": "Erreur de contenu",
|
||||
"error.content.title.empty": "Aucun contenu trouvé",
|
||||
@@ -358,7 +367,12 @@
|
||||
"contact.tox.main": "Compte principal:",
|
||||
"contact.tox.secondary": "Compte secondaire:",
|
||||
"contact.tox.button.open": "Ouvrir dans un client Tox",
|
||||
"contact.tox.button.copy": "Copier dans le presse-papier"
|
||||
"contact.tox.button.copy": "Copier dans le presse-papier",
|
||||
|
||||
"generic.button.close": "Fermer",
|
||||
"generic.button.copy": "Copier dans le presse-papier",
|
||||
|
||||
"modal.title.debugging": "Informations de débogage"
|
||||
},
|
||||
"lb": {
|
||||
"home.title.nav": "Doheem",
|
||||
|
||||
Reference in New Issue
Block a user