<?php 
 
require_once("class.simpleusersystem.php"); 
 
session_start(); 
 
$login=New simple_usersystem(); 
 
$thisuser=$login->login_form(); 
 
 
$menu="<h3><a href=\"?\">Home</a> | <a href=\"?p=p2\">Page 2</a>  
| <a href=\"?p=profile\">Profile</a> | <a href=\"?p=contact\">Contact</a>  
| <a href=\"?logout=y\">Logout</a></h3>"; 
 
 
 
$home="<h2>Home Page</h2> 
This is a test home page for Simple User System class by Abhishek Shukla. 
<br/>"; 
 
$p2="<h2>Page 2</h2>This is a Page 2."; 
 
$contact="<h2>Contact</h2>This is Contact Page."; 
 
//homepage 
    $content=$home; 
     
//other pages 
if(isset($_GET['p'])) { 
    switch($_GET['p']){ 
        Case "p2"; 
        $content=$p2; 
        break; 
     
        Case "contact"; 
        $content=$contact; 
        break; 
     
        Case "profile"; 
        $login->adminurl="?p=profile&"; 
        $content=$login->user_profile($thisuser); 
        break; 
    } 
} 
 
$login->renderHTML($login->usertool.$menu.$content); 
 
 |