PHP Classes

File: homeIn.php

Recommend this page to a friend!
  Classes of ganesh kavhar   PHP Event Planner   homeIn.php   Download  
File: homeIn.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Event Planner
Application to help users to organize events
Author: By
Last change:
Date: 1 year ago
Size: 1,129 bytes
 

Contents

Class file image Download
<?php
require_once 'utils/functions.php';
require_once
'classes/User.php';
require_once
'classes/Location.php';
require_once
'classes/LocationTableGateway.php';
require_once
'classes/Event.php';
require_once
'classes/EventTableGateway.php';
require_once
'classes/Connection.php';


$connection = Connection::getInstance();
$gateway1 = new LocationTableGateway($connection);
$gateway2 = new EventTableGateway($connection);

$statement1 = $gateway1->getLocations();
$statement2 = $gateway2->getEvents();

start_session();

if (!
is_logged_in()) {
   
header("Location: login_form.php");
}

$user = $_SESSION['user'];
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <?php require 'utils/styles.php'; ?>
<?php require 'utils/scripts.php'; ?>
</head>
    <body>
        <?php require 'utils/header.php'; ?>
<?php require 'utils/toolbar.php'; ?>

        <?php
       
if (isset($message)) {
            echo
'<p>'.$message.'</p>';
        }
       
?>
<?php require 'utils/footer.php'; ?>
</body>
</html>