mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-01-01 12:26:00 +00:00
Unified header
This commit is contained in:
parent
b7362ca195
commit
8c98b90766
31
about.php
31
about.php
|
@ -2,35 +2,14 @@
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<?php include __DIR__."/ui/header.php"; ?>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Lynx Gallery</title>
|
|
||||||
|
|
||||||
<!-- Stylesheets -->
|
|
||||||
<link rel="stylesheet" href="css/main.css">
|
|
||||||
<link rel="stylesheet" href="css/normalise.css">
|
|
||||||
|
|
||||||
<!-- Google Fonts -->
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@600">
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Secular+One&display=swap">
|
|
||||||
|
|
||||||
<!-- JQuery -->
|
|
||||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous">
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- Sniffle script! -->
|
|
||||||
<script src="Sniffle/sniffle.js"></script>
|
|
||||||
<link rel='stylesheet' href='Sniffle/sniffle.css'>
|
|
||||||
|
|
||||||
<!-- Flyout script! -->
|
|
||||||
<script src="Flyout/flyout.js"></script>
|
|
||||||
<link rel='stylesheet' href='Flyout/flyout.css'>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<?php
|
<?php
|
||||||
include "ui/required.php";
|
include __DIR__."/ui/required.php";
|
||||||
include "ui/nav.php";
|
include __DIR__."/ui/nav.php";
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="about-root">
|
<div class="about-root">
|
||||||
|
@ -60,7 +39,7 @@
|
||||||
<p>To mrHDash...</p>
|
<p>To mrHDash...</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include "ui/footer.php"; ?>
|
<?php include __DIR__."/ui/footer.php"; ?>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
|
@ -2,29 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<?php include "../ui/header.php"; ?>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Lynx Gallery</title>
|
|
||||||
|
|
||||||
<!-- Stylesheets -->
|
|
||||||
<link rel="stylesheet" href="../css/main.css">
|
|
||||||
<link rel="stylesheet" href="../css/normalise.css">
|
|
||||||
|
|
||||||
<!-- Google Fonts -->
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@600">
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Secular+One&display=swap">
|
|
||||||
|
|
||||||
<!-- JQuery -->
|
|
||||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous">
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- Sniffle script! -->
|
|
||||||
<script src="../Sniffle/sniffle.js"></script>
|
|
||||||
<link rel='stylesheet' href='../Sniffle/sniffle.css'>
|
|
||||||
|
|
||||||
<!-- Flyout script! -->
|
|
||||||
<script src="../Flyout/flyout.js"></script>
|
|
||||||
<link rel='stylesheet' href='../Flyout/flyout.css'>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -2,31 +2,10 @@
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<?php include "../ui/header.php"; ?>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Lynx Gallery</title>
|
|
||||||
|
|
||||||
<!-- Stylesheets -->
|
|
||||||
<link rel="stylesheet" href="../css/main.css">
|
|
||||||
<link rel="stylesheet" href="../css/normalise.css">
|
|
||||||
|
|
||||||
<!-- Google Fonts -->
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@600">
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Secular+One&display=swap">
|
|
||||||
|
|
||||||
<!-- JQuery -->
|
|
||||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous">
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- Sniffle script! -->
|
|
||||||
<script src="../Sniffle/sniffle.js"></script>
|
|
||||||
<link rel='stylesheet' href='../Sniffle/sniffle.css'>
|
|
||||||
|
|
||||||
<!-- Flyout script! -->
|
|
||||||
<script src="../Flyout/flyout.js"></script>
|
|
||||||
<link rel='stylesheet' href='../Flyout/flyout.css'>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<?php
|
<?php
|
||||||
include "../ui/required.php";
|
include "../ui/required.php";
|
||||||
|
|
|
@ -2,31 +2,10 @@
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<?php include "../ui/header.php"; ?>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Lynx Gallery</title>
|
|
||||||
|
|
||||||
<!-- Stylesheets -->
|
|
||||||
<link rel="stylesheet" href="../css/main.css">
|
|
||||||
<link rel="stylesheet" href="../css/normalise.css">
|
|
||||||
|
|
||||||
<!-- Google Fonts -->
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@600">
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Secular+One&display=swap">
|
|
||||||
|
|
||||||
<!-- JQuery -->
|
|
||||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous">
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- Sniffle script! -->
|
|
||||||
<script src="../Sniffle/sniffle.js"></script>
|
|
||||||
<link rel='stylesheet' href='../Sniffle/sniffle.css'>
|
|
||||||
|
|
||||||
<!-- Flyout script! -->
|
|
||||||
<script src="../Flyout/flyout.js"></script>
|
|
||||||
<link rel='stylesheet' href='../Flyout/flyout.css'>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<?php
|
<?php
|
||||||
include "../ui/required.php";
|
include "../ui/required.php";
|
||||||
|
|
|
@ -2,31 +2,10 @@
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<?php include "../ui/header.php"; ?>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Lynx Gallery</title>
|
|
||||||
|
|
||||||
<!-- Stylesheets -->
|
|
||||||
<link rel="stylesheet" href="../css/main.css">
|
|
||||||
<link rel="stylesheet" href="../css/normalise.css">
|
|
||||||
|
|
||||||
<!-- Google Fonts -->
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@600">
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Secular+One&display=swap">
|
|
||||||
|
|
||||||
<!-- JQuery -->
|
|
||||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous">
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- Sniffle script! -->
|
|
||||||
<script src="../Sniffle/sniffle.js"></script>
|
|
||||||
<link rel='stylesheet' href='../Sniffle/sniffle.css'>
|
|
||||||
|
|
||||||
<!-- Flyout script! -->
|
|
||||||
<script src="../Flyout/flyout.js"></script>
|
|
||||||
<link rel='stylesheet' href='../Flyout/flyout.css'>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<?php
|
<?php
|
||||||
include "../ui/required.php";
|
include "../ui/required.php";
|
||||||
|
|
36
default.json
Normal file
36
default.json
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
{
|
||||||
|
"name": "Only Legs",
|
||||||
|
"description": "A simple gallery with multiple users in mind",
|
||||||
|
"welcome_msg": [
|
||||||
|
"*internal screaming*",
|
||||||
|
"Don't forget to drink water!",
|
||||||
|
"Bruh",
|
||||||
|
"Fluffy made this!",
|
||||||
|
"maybe",
|
||||||
|
"I'm gay",
|
||||||
|
"I wish we were better strangers.",
|
||||||
|
"<span style='color:#ffff00;'>Just like Minecraft!</span>",
|
||||||
|
"If I were you, I'd run now",
|
||||||
|
"This is the part where I kill you",
|
||||||
|
"SILICA GEL \"DO NOT EAT\".",
|
||||||
|
"This was supposed to be a simple project",
|
||||||
|
"AAAAAAAAAAAAAAAAAAAA",
|
||||||
|
"Let me out",
|
||||||
|
"nice",
|
||||||
|
"I'm glad you're here",
|
||||||
|
"The weather is dry",
|
||||||
|
"Need me a man 👀",
|
||||||
|
"Gods die too.",
|
||||||
|
"Eat hotchip and lie"
|
||||||
|
],
|
||||||
|
"database": {
|
||||||
|
"ip": "192.168.0.79",
|
||||||
|
"port": "3306",
|
||||||
|
"username": "uwu",
|
||||||
|
"password": "fennec621",
|
||||||
|
"database": "gallery"
|
||||||
|
},
|
||||||
|
"testing": true,
|
||||||
|
"version": "15.08.22",
|
||||||
|
"license":"GPL 3.0"
|
||||||
|
}
|
31
image.php
31
image.php
|
@ -2,31 +2,10 @@
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<?php include __DIR__."/ui/header.php"; ?>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Lynx Gallery</title>
|
|
||||||
|
|
||||||
<!-- Stylesheets -->
|
|
||||||
<link rel="stylesheet" href="css/main.css">
|
|
||||||
<link rel="stylesheet" href="css/normalise.css">
|
|
||||||
|
|
||||||
<!-- Google Fonts -->
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@600">
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Secular+One&display=swap">
|
|
||||||
|
|
||||||
<!-- JQuery -->
|
|
||||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous">
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- Sniffle script! -->
|
|
||||||
<script src="Sniffle/sniffle.js"></script>
|
|
||||||
<link rel='stylesheet' href='Sniffle/sniffle.css'>
|
|
||||||
|
|
||||||
<!-- Flyout script! -->
|
|
||||||
<script src="Flyout/flyout.js"></script>
|
|
||||||
<link rel='stylesheet' href='Flyout/flyout.css'>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
|
@ -39,8 +18,8 @@
|
||||||
| many rewrites and hours of learning....
|
| many rewrites and hours of learning....
|
||||||
|-------------------------------------------------------------
|
|-------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
include "ui/required.php";
|
include __DIR__."/ui/required.php";
|
||||||
include "ui/nav.php";
|
include __DIR__."/ui/nav.php";
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -388,7 +367,7 @@
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php include "ui/footer.php"; ?>
|
<?php include __DIR__."/ui/footer.php"; ?>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
63
index.php
63
index.php
|
@ -1,38 +1,14 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<?php include __DIR__."/ui/header.php"; ?>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Lynx Gallery</title>
|
|
||||||
|
|
||||||
<!-- Stylesheets -->
|
|
||||||
<link rel="stylesheet" href="css/main.css">
|
|
||||||
<link rel="stylesheet" href="css/normalise.css">
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Google Fonts -->
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@600">
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Secular+One&display=swap">
|
|
||||||
|
|
||||||
<!-- JQuery -->
|
|
||||||
<script
|
|
||||||
src="https://code.jquery.com/jquery-3.6.0.min.js"
|
|
||||||
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
|
|
||||||
crossorigin="anonymous">
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- Sniffle script! -->
|
|
||||||
<script src="Sniffle/sniffle.js"></script>
|
|
||||||
<link rel='stylesheet' href='Sniffle/sniffle.css'>
|
|
||||||
|
|
||||||
<!-- Flyout script! -->
|
|
||||||
<script src="Flyout/flyout.js"></script>
|
|
||||||
<link rel='stylesheet' href='Flyout/flyout.css'>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<?php
|
<?php
|
||||||
include "ui/required.php";
|
include __DIR__."/ui/required.php";
|
||||||
include "ui/nav.php";
|
include __DIR__."/ui/nav.php";
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -67,28 +43,9 @@ include "ui/nav.php";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Random welcome message
|
// Random welcome message
|
||||||
$welcome_message = array("*internal screaming*",
|
$import_welcome = file_get_contents("default.json");
|
||||||
"Sussy Wussy",
|
$import_decode = json_decode($import_welcome, true);
|
||||||
"What is this world?",
|
$welcome_message = $import_decode['welcome_msg'];
|
||||||
"Don't forget to drink water!",
|
|
||||||
"Bruh",
|
|
||||||
"This is so poorly programmed",
|
|
||||||
"Sorry",
|
|
||||||
"Fluffy made this!",
|
|
||||||
"maybe",
|
|
||||||
"I'm gay",
|
|
||||||
"I wish we were better strangers.",
|
|
||||||
"<span style='color:#ffff00;'>Just like Minecraft!</span>",
|
|
||||||
"If I were you, I'd run now",
|
|
||||||
"This is the part where I kill you",
|
|
||||||
"SILICA GEL \"DO NOT EAT\".",
|
|
||||||
"This was supposed to be a simple project",
|
|
||||||
"AAAAAAAAAAAAAAAAAAAA",
|
|
||||||
"Let me out",
|
|
||||||
"nice",
|
|
||||||
"Thank you that you're here",
|
|
||||||
"The weather is dry",
|
|
||||||
"Need me a man 👀");
|
|
||||||
echo "<p>".$welcome_message[array_rand($welcome_message, 1)]."</p>";
|
echo "<p>".$welcome_message[array_rand($welcome_message, 1)]."</p>";
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -109,7 +66,7 @@ include "ui/nav.php";
|
||||||
// Check for NSFW tag
|
// Check for NSFW tag
|
||||||
if (str_contains($image['tags'], "nsfw")) {
|
if (str_contains($image['tags'], "nsfw")) {
|
||||||
$image_nsfw = "nsfw-blur";
|
$image_nsfw = "nsfw-blur";
|
||||||
$nsfw_warning = "<a href='image.php?id=".$image['id']."' class='nsfw-warning'><img class='svg' src='assets/icons/warning_red.svg'><span>This image contains NSFW material</span></a>";
|
$nsfw_warning = "<a href='image.php?id=".$image['id']."' class='nsfw-warning'><img class='svg' src='assets/icons/warning_red.svg'><span>NSFW</span></a>";
|
||||||
} else {
|
} else {
|
||||||
$image_nsfw = "";
|
$image_nsfw = "";
|
||||||
$nsfw_warning = "";
|
$nsfw_warning = "";
|
||||||
|
@ -125,6 +82,6 @@ include "ui/nav.php";
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<?php include "ui/footer.php"; ?>
|
<?php include __DIR__."/ui/footer.php"; ?>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
29
search.php
29
search.php
|
@ -26,34 +26,11 @@
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<?php include "ui/header.php"; ?>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Lynx Gallery</title>
|
|
||||||
|
|
||||||
<!-- Stylesheets -->
|
|
||||||
<link rel="stylesheet" href="css/main.css">
|
|
||||||
<link rel="stylesheet" href="css/normalise.css">
|
|
||||||
|
|
||||||
<!-- Google Fonts -->
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@600">
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Secular+One&display=swap">
|
|
||||||
|
|
||||||
<!-- JQuery -->
|
|
||||||
<script
|
|
||||||
src="https://code.jquery.com/jquery-3.6.0.min.js"
|
|
||||||
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
|
|
||||||
crossorigin="anonymous">
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- Sniffle script! -->
|
|
||||||
<script src="Sniffle/sniffle.js"></script>
|
|
||||||
<link rel='stylesheet' href='Sniffle/sniffle.css'>
|
|
||||||
|
|
||||||
<!-- Flyout script! -->
|
|
||||||
<script src="Flyout/flyout.js"></script>
|
|
||||||
<link rel='stylesheet' href='Flyout/flyout.css'>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<?php
|
<?php
|
||||||
include "ui/required.php";
|
include "ui/required.php";
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"name": "Only Legs",
|
|
||||||
"description": "A simple gallery with multiple users in mind",
|
|
||||||
"version": "15.08.22",
|
|
||||||
"license":"GPL 3.0"
|
|
||||||
}
|
|
35
ui/header.php
Normal file
35
ui/header.php
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
<?php
|
||||||
|
if (is_file("index.php")) {
|
||||||
|
$root_dir = "";
|
||||||
|
} else {
|
||||||
|
$root_dir = "../";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title><?php echo $setup_json['website']['name']; ?></title>
|
||||||
|
|
||||||
|
<!-- Stylesheets -->
|
||||||
|
<link rel="stylesheet" href="<?php echo $root_dir; ?>css/main.css">
|
||||||
|
<link rel="stylesheet" href="<?php echo $root_dir; ?>css/normalise.css">
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Google Fonts -->
|
||||||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@600">
|
||||||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Secular+One&display=swap">
|
||||||
|
|
||||||
|
<!-- JQuery -->
|
||||||
|
<script
|
||||||
|
src="https://code.jquery.com/jquery-3.6.0.min.js"
|
||||||
|
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
|
||||||
|
crossorigin="anonymous">
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- Sniffle script! -->
|
||||||
|
<script src="<?php echo $root_dir; ?>Sniffle/sniffle.js"></script>
|
||||||
|
<link rel='stylesheet' href='<?php echo $root_dir; ?>Sniffle/sniffle.css'>
|
||||||
|
|
||||||
|
<!-- Flyout script! -->
|
||||||
|
<script src="<?php echo $root_dir; ?>Flyout/flyout.js"></script>
|
||||||
|
<link rel='stylesheet' href='<?php echo $root_dir; ?>Flyout/flyout.css'>
|
|
@ -27,6 +27,9 @@ if (is_file("index.php")) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$import_json = file_get_contents($root_dir."default.json");
|
||||||
|
$setup_json = json_decode($import_json, true);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Connect to the server
|
Connect to the server
|
||||||
*/
|
*/
|
||||||
|
|
30
upload.php
30
upload.php
|
@ -2,29 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<?php include __DIR__."/ui/header.php"; ?>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Lynx Gallery</title>
|
|
||||||
|
|
||||||
<!-- Stylesheets -->
|
|
||||||
<link rel="stylesheet" href="css/main.css">
|
|
||||||
<link rel="stylesheet" href="css/normalise.css">
|
|
||||||
|
|
||||||
<!-- Google Fonts -->
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@600">
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Secular+One&display=swap">
|
|
||||||
|
|
||||||
<!-- JQuery -->
|
|
||||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous">
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- Sniffle script! -->
|
|
||||||
<script src="Sniffle/sniffle.js"></script>
|
|
||||||
<link rel='stylesheet' href='Sniffle/sniffle.css'>
|
|
||||||
|
|
||||||
<!-- Flyout script! -->
|
|
||||||
<script src="Flyout/flyout.js"></script>
|
|
||||||
<link rel='stylesheet' href='Flyout/flyout.css'>
|
|
||||||
|
|
||||||
<!-- Upload Script -->
|
<!-- Upload Script -->
|
||||||
<script>
|
<script>
|
||||||
|
@ -73,8 +51,8 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<?php
|
<?php
|
||||||
include "ui/required.php";
|
include __DIR__."/ui/required.php";
|
||||||
include "ui/nav.php";
|
include __DIR__."/ui/nav.php";
|
||||||
|
|
||||||
// Check if user is logged in
|
// Check if user is logged in
|
||||||
if (!loggedin()) {
|
if (!loggedin()) {
|
||||||
|
@ -98,7 +76,7 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include "ui/footer.php"; ?>
|
<?php include __DIR__."/ui/footer.php"; ?>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
Reference in a new issue