File cleanup in progress 2

This commit is contained in:
Michał Gdula 2022-08-01 11:20:00 +01:00
parent 47aa830771
commit 41667bff0a
10 changed files with 17 additions and 28 deletions

View file

@ -1,14 +1,18 @@
<?php
// Include required files by every page on header
// Include required files and commands by every page on header
session_start();
if (is_dir("ui/")) {
include("ui/conn.php");
include_once("ui/functions.php");
} else {
include("../ui/conn.php");
include_once("../ui/functions.php");
}
$conn = mysqli_connect("localhost", "uwu", "fennec621", "swag");
if ($conn->connect_error) {
echo "<p class='alert alert-low'>Could not connect to database</p>";
}
// Check which directory icons are in
if (is_dir("assets/icons/")) {
$dir = "assets/icons/";