Preparing to add AJAX

This commit is contained in:
Michał Gdula 2022-08-02 14:13:35 +01:00
parent 4c064eeaed
commit a52f2c3da7
13 changed files with 77 additions and 55 deletions

View file

@ -1,18 +1,4 @@
<?php
// Include required files and commands by every page on header
session_start();
if (is_dir("ui/")) {
include_once("ui/functions.php");
} else {
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/";