<?php session_start(); // fetch conf file for the admin to function include_once $root . '/includes/configuration/core_configuration.php'; include_once $root . '/includes/security/admin_logged.php'; $websiteTitle = 'Intelligent Workflow Managment System'; time::starttiming(); function menu() { if (isset($_SESSION['valid_user'])) { ?> <table border="0" cellpadding="2" cellspacing="1" width="2"> <tr> <td> <table class="mainNavBlock" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td width="17"><img border="0" src="images/color_bar.gif"></td> <td class="menuTitle">Root</td> </tr> </table> <table class="subNavBlock" border="0" cellpadding="2" cellspacing="2" width="100%"> <tr> <td width="20" align="right"><img src="images/iconHome.gif" vspace="0" hspace="0"></td> <td><a href="home.php">Home</a></td> </tr> <tr> <td><img src="images/icon_logout.gif"></td> <td><a href="index.php?logout=yes">Logout</a></td> </tr> </table></td>
function testTiming() { time::starttiming(); $this->assertNotNull(time::stoptiming()); $this->assertWantedPattern('/[0123456789]*/', time::stoptiming()); }