PHP Classes

File: main/inc/userpage.php

Recommend this page to a friend!
  Classes of Zamani   PHP Login System with Email Verification   main/inc/userpage.php   Download  
File: main/inc/userpage.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Login System with Email Verification
Register and login users activated using email
Author: By
Last change:
Date: 1 year ago
Size: 1,498 bytes


Class file image Download
<!DOCTYPE html>
<html lang="en">
    <title>Bootstrap table</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="">
    <script src=""></script>
    <script src=""></script>

<div class="container">
    <h2>Welcome <?php print $_SESSION['user']['fname'] . ' ' . $_SESSION['user']['lname']; ?></h2>
    <table class="table table-striped">
        <?php if ($_SESSION['user']['user_role'] == 2) {
            foreach (
$vars as $user) {
                    <td><?= $user['fname'] ?></td>
                    <td><?= $user['lname'] ?></td>
                    <td><?= $user['email'] ?></td>
        } else {
                <td><?= $_SESSION['user']['fname'] ?></td>
                <td><?= $_SESSION['user']['lname'] ?></td>
                <td><?= $_SESSION['user']['email'] ?></td>
        <?php } ?></tbody>
    <p><a href='logout.php'>Logout</a></p>