<?
define("INC",1);
$codepath="../code/";
include_once($codepath."lib.php");
switch($_GET['m']){
case 'logout':
session_unset();
session_destroy();
session_start();
include_once($codepath."index.php");
break;
case 'search':
include_once($codepath."search.php");
break;
case 'new':
include_once($codepath."new.php");
break;
case 'edit':
include_once($codepath."edit.php");
break;
case 'view':
include_once($codepath."view.php");
break;
case 'home':
include_once($codepath."home.php");
break;
case 'contacts':
include_once($codepath."contacts.php");
break;
case 'calendar':
include_once($codepath."calendar.php");
break;
case 'options':
include_once($codepath."options.php");
break;
case 'register':
include_once($codepath."register.php");
break;
default:
include($codepath."index.php");
}
?>