mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-11 12:53:12 +00:00
Remaking file structure for easier updating
This commit is contained in:
parent
e7a2284809
commit
d897215023
17 changed files with 119 additions and 103 deletions
12
profile.php
12
profile.php
|
@ -32,10 +32,10 @@
|
|||
|
||||
<div class="profile-root defaultDecoration defaultSpacing defaultFonts">
|
||||
<?php
|
||||
if (is_file("images/pfp/".$user['pfp_path'])) {
|
||||
echo "<img src='images/pfp/".$user['pfp_path']."'>";
|
||||
if (is_file("usr/images/pfp/".$user['pfp_path'])) {
|
||||
echo "<img src='usr/images/pfp/".$user['pfp_path']."'>";
|
||||
|
||||
$pfp_colour = $make_stuff->get_image_colour("images/pfp/".$user['pfp_path']);
|
||||
$pfp_colour = $make_stuff->get_image_colour("usr/images/pfp/".$user['pfp_path']);
|
||||
if (empty($pfp_colour)) $pfp_colour = "var(--bg-3)";
|
||||
?>
|
||||
<style>
|
||||
|
@ -86,10 +86,10 @@
|
|||
|
||||
while ($image = mysqli_fetch_array($query)) {
|
||||
// Getting thumbnail
|
||||
if (file_exists("images/thumbnails/".$image['imagename'])) {
|
||||
$image_path = "images/thumbnails/" . $image['imagename'];
|
||||
if (file_exists("usr/images/thumbnails/".$image['imagename'])) {
|
||||
$image_path = "usr/images/thumbnails/" . $image['imagename'];
|
||||
} else {
|
||||
$image_path = "images/" . $image['imagename'];
|
||||
$image_path = "usr/images/" . $image['imagename'];
|
||||
}
|
||||
|
||||
// Check for NSFW tag
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue