mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-24 10:46:16 +00:00
Json config file
This commit is contained in:
parent
7f5aab165e
commit
1d4c25af28
10 changed files with 76 additions and 150 deletions
|
@ -1,11 +1,5 @@
|
|||
<footer class="flex-left around">
|
||||
<a class='link' href="https://github.com/Fluffy-Bean/image-gallery">
|
||||
<img class='svg' src='assets/icons/github-logo.svg'>
|
||||
Github
|
||||
</a>
|
||||
<a class='link' href="about.php">
|
||||
<img class='svg' src='assets/icons/scroll.svg'>
|
||||
About
|
||||
</a>
|
||||
|
||||
<footer>
|
||||
<p>Hosted by <?php echo $user_settings['user_name']; ?> under <?php echo $user_settings['license']; ?></p>
|
||||
<p>Version <?php echo $user_settings['version']; ?></p>
|
||||
<a class='link' href="about.php">About</a>
|
||||
</footer>
|
||||
|
|
|
@ -6,7 +6,7 @@ $loggedin = new Account();
|
|||
|
||||
<nav class="nav-root flex-left">
|
||||
<div class="nav-name flex-left">
|
||||
<p><?php echo $user_settings['website']['name']; ?></p>
|
||||
<p><?php echo $user_settings['website_name']; ?></p>
|
||||
</div>
|
||||
<div class="nav-links flex-left">
|
||||
<a class='btn' href='index.php'><img class='svg' src='assets/icons/house.svg'><span class='nav-hide'>Home</span></a>
|
||||
|
|
|
@ -4,8 +4,10 @@
|
|||
*/
|
||||
require_once dirname(__DIR__)."/app/settings/settings.php";
|
||||
|
||||
/*if ($debug["testing"]) {
|
||||
// Used for testing, do not use this in production
|
||||
ini_set('post_max_size', $user_settings['upload_max']);
|
||||
ini_set('upload_max_filesize', ($user_settings['upload_max'] + 1));
|
||||
|
||||
if ($user_settings['is_testing']) {
|
||||
ini_set('display_errors', 1);
|
||||
ini_set('display_startup_errors', 1);
|
||||
error_reporting(E_ERROR | E_PARSE | E_NOTICE);
|
||||
|
@ -14,23 +16,6 @@ require_once dirname(__DIR__)."/app/settings/settings.php";
|
|||
sniffleAdd('Notice', 'This website is currently in a testing state, bugs may occur', 'var(--red)', 'assets/icons/cross.svg');
|
||||
</script>
|
||||
<?php
|
||||
}*/
|
||||
|
||||
ini_set('post_max_size', '20M');
|
||||
ini_set('upload_max_filesize', '20M');
|
||||
ini_set('display_errors', 1);
|
||||
ini_set('display_startup_errors', 1);
|
||||
error_reporting(E_ERROR | E_PARSE | E_NOTICE);
|
||||
?>
|
||||
<script>
|
||||
sniffleAdd('Notice', 'This website is currently in a testing state, bugs may occur', 'var(--red)', 'assets/icons/cross.svg');
|
||||
</script>
|
||||
<?php
|
||||
|
||||
if (is_file("index.php")) {
|
||||
$root_dir = "";
|
||||
} else {
|
||||
$root_dir = "../";
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -45,16 +30,6 @@ require_once dirname(__DIR__)."/app/server/secrete.php";
|
|||
require_once dirname(__DIR__)."/app/app.php";
|
||||
|
||||
?>
|
||||
<script>
|
||||
/*
|
||||
Gets Querys from the URL the user is at
|
||||
Used by Sniffle to display notificaions
|
||||
*/
|
||||
const params = new Proxy(new URLSearchParams(window.location.search), {
|
||||
get: (searchParams, prop) => searchParams.get(prop),
|
||||
});
|
||||
</script>
|
||||
|
||||
<!--
|
||||
Used by Sniffle to add Notifications
|
||||
Div can be displayed all time as it has no width or height initself
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue