<?php include_once 'includes/Session.class.php'; include_once 'includes/Mic.class.php'; include_once 'includes/User.class.php'; include_once 'includes/Database.class.php'; Session::start(); function load_template($name) { include $_SERVER['DOCUMENT_ROOT'] . "/photogram/_templates/$name.php"; //not consistant. } function validate_credentials($username, $password) { if ($username == "sibi@selfmade.ninja" and $password == "password") { return true; } else { return false; } }