Example #1
0
<script src="/Tennis/scripts/bootstrap.js"></script>
<link rel='stylesheet' type='text/css' href='/Tennis/css/bootstrap.css'>

<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Tennis Club</title>
</head>
 
<body>
<div class='well' id="header">
    <table>
        <tr>
            <td><h1>TENNIS CLUB</h1></td><td><a href="/Tennis/member">
            <?php 
require_once 'permissions.php';
if (session_status() == PHP_SESSION_NONE) {
    session_start();
}
if (!Logged_In()) {
    echo "Login</a>";
} else {
    echo 'Home</a>| <a href="/Tennis/logout.php">Log out</a></td>';
}
?>
        </tr>
    </table>
</div>
Example #2
0
<html>
 <head>
  <title>Tennis Club</title>
 </head>
 <body>
     <?php 
// load up your config file
require_once "../config.php";
require_once ROOT_PATH . TEMPLATES_PATH . "/header.php";
require_once ROOT_PATH . "/permissions.php";
if (session_status() == PHP_SESSION_NONE) {
    session_start();
}
if (Logged_In()) {
    echo "Welcome, " . $_SESSION['firstname'] . "!<br><br>";
    if (Can_Do_Events()) {
        echo '<a href="event_schedule.php">View Event Scedule</a><br>';
    }
    if (Can_Create_Transaction()) {
        echo '<a href="../transactionTest.php">Create Transaction</a><br>';
    }
    if (Can_List_Members()) {
        echo '<a href="../itemTest.php">List Members</a><br>';
    }
    if (Can_Create_Members()) {
        echo '<a href="create_member.php">Create Members</a><br>';
    }
    if (Can_Update_Members()) {
        echo '<a href="update_member.php">Update Member</a><br>';
    }
    if (Can_Delete_Members()) {