connect_error) { // Send notification that connection couldn't be made } /* Start session This is important as most pages use the PHP session and will complain if its not possible to access. */ session_start(); /* Check which directory user is in I don't know if theres a better way of doing this? If there is please let me know */ if (is_file("index.php")) { $root_dir = ""; } else { $root_dir = "../"; } /* Include functions Maybe I should put all the functions in this file? Dunno */ include $root_dir."ui/functions.php"; /* Notification system This is the notification system used by the website. Probably a little too much for what its used for */ echo "
"; ?>

Header

Description