<?php session_start(); session_set_cookie_params(0, "/"); setcookie('PHPSESSID', session_id(), 0, '/'); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <?php include_once '../../credentials.php'; include_once 'view/view_my_projects.php'; include_once 'model/model_my_projects.php'; include_once 'controller/controller_auth.php'; $a = new controller_auth($username, $password); $m = new model_page($username, $password); $r = new view_page($username, $password); include_once 'template/header.php'; $a->do_auth($username, $password); if ($_SESSION['valid'] == TRUE) { //Start Main Content Here $my_projects = $m->get_my_projects(); echo $r->view_my_projects($my_projects); } include_once 'template/footer.php';