logout.php

Go to the documentation of this file.
00001 <?php
00002 
00003 set_include_path( '../php' . PATH_SEPARATOR . get_include_path());
00004 set_include_path( '../smarty/libs' . PATH_SEPARATOR . get_include_path());
00005 
00008 
00009 
00010 if (session_id() == "") { session_start(); }
00011 
00012 require_once 'Smarty.class.php';
00013 require_once 'error.php';
00014 require_once 'redirect.php';
00015 require_once 'sql.php';
00016 require_once('util.php');
00017 
00020 
00021 function logout() {
00022 
00023 $smarty =& smarty_init();
00024 
00025 # logout
00026 session_destroy();
00027 
00028 redirect('index.php');
00029 
00030 }
00031 
00032 logout();
00033 ?>

Generated on Fri Jul 14 17:38:55 2006 for semapp by  doxygen 1.4.7