mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-11 04:43:11 +00:00
Fixing conf file writing and upload settings errors
This commit is contained in:
parent
86bba69f81
commit
45b79c9c33
6 changed files with 50 additions and 32 deletions
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
if (defined('ROOT')) {
|
||||
if (defined('ROOT') && $_SESSION['id'] == 1) {
|
||||
function check_database($conn, $database) {
|
||||
try {
|
||||
$check = $conn->query("SELECT 1 FROM $database LIMIT 1");
|
||||
|
@ -14,7 +14,8 @@ if (defined('ROOT')) {
|
|||
}
|
||||
}
|
||||
|
||||
/*if (check_database($conn, 'images')) {
|
||||
/*
|
||||
if (check_database($conn, 'images')) {
|
||||
echo "<p><span style='color: var(--accent);'>[INFO]</span> Found images table</p>";
|
||||
} else {
|
||||
echo "<p><span style='color: var(--warning);'>[INFO]</span> Could not find images table</p>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue