Remaking file structure for easier updating

This commit is contained in:
Michał Gdula 2022-10-13 12:04:25 +00:00
parent e7a2284809
commit d897215023
17 changed files with 119 additions and 103 deletions

20
app/conn.php Normal file
View file

@ -0,0 +1,20 @@
<?php
/*
Connect to database
Make sure to enter your correct database details,
else it may cause issues with loading the page
*/
$conn_ip = "192.168.0.79:3306";
$conn_username = "uwu";
$conn_password = "fennec621";
$conn_database = "gallery";
try {
$conn = @mysqli_connect($conn_ip, $conn_username, $conn_password , $conn_database);
} catch (Exception $e) {
die("Unable to connect to the database");
}
session_start();