File: examples/material-design/index.php

Recommend this page to a friend!
  Classes of Subin Siby  >  Secure PHP Login System  >  examples/material-design/index.php  >  Download  
File: examples/material-design/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Secure PHP Login System
Register and login users using a database via PDO
Author: By
Last change:
Date: 4 years ago
Size: 863 bytes


Class file image Download
require 'config.php';
<!DOCTYPE html>
        <?php printHead();?>
<div class="container">
            <h1>My Site</h1>
            <p>Welcome to my site. You can sign in or create an account.</p>

if ($LS->isLoggedIn()) {
<p>Looks like you are logged in.</p>
                <a class="btn green" href="home.php" data-ajax>Home</a>
                <a class="btn red" href="profile.php" data-ajax>Profile</a>
} else {
<a class="btn green" href="login.php" data-ajax>Sign In</a>
                <a class="btn red" href="register.php" data-ajax>Sign Up</a>

For more information send a message to info at phpclasses dot org.