Skip to content
Snippets Groups Projects
load.php 527 B
<?php

// To include class files automatically
include_once '_includes/Mic.class.php';
include_once '_includes/Database.class.php';
include_once '_includes/User.class.php';

function load_template($name)
{

    include $_SERVER['DOCUMENT_ROOT'] . "/photogram-project-php/_templates/$name.php";
}

// Function to validate the credentials.
function validate_credentials($username, $password)
{
    if ($username == "raghav@gmail.com" and $password == "raghav") {
        return true;
    } else {
        return false;
    }
}