Location: PHPKode > projects > NetOffice > netoffice/projects_site/index.php
<?php // $Revision: 1.8 $
/* vim: set expandtab ts=4 sw=4 sts=4: */

/**
 * $Id: index.php,v 1.8 2003/11/23 23:39:55 madbear Exp $
 * 
 * Copyright (c) 2003 by the NetOffice developers
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */

$checkSession = false;
require_once("../includes/library.php");
header("Location: ../index.php");

// case session fails
if ($session == 'false') {
    session_start();
    _sess_mysql_destroy( session_id() ); // now destroy the session
    header("Location: ../general/login.php?session=false");
    exit;
    // case log out
} else if ($logout == 'true') {
    session_start();
    session_destroy();
    header("Location: ../general/login.php?logout=true&login=$login");
    exit;
    // default case
} else {
    header("Location: ../general/login.php");
    exit;
} 

?>
Return current item: NetOffice