You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
867 B

<?php
/*
* Copyright 1999/2000 by Gero Kohnert
*
* CVS Info: $Id: logout.php,v 1.12 2005/01/17 05:11:26 saraj Exp $
* $Author: saraj $
*/
global $calpath;
$calpath = "modules/Calendar/";
include_once $calpath .'webelements.p3';
include_once $calpath .'permission.p3';
check_user();
$auth = array();
$al = split(" ",$tutos[authtype]);
$cnt = 0;
foreach ( $al as $a ) {
require_once $calpath .'auth/auth_'. $a .'.pinc';
$x = "auth_".$tutos[authtype];
$auth[$cnt++] = new $x();
}
$gotourl = $auth[0]->logout();
if ( isset($_GET['db']) ) {
$gotourl= addUrlParameter($gotourl,"db=". $_GET['db']);
$gotourl= addUrlParameter($gotourl,"msg=RELOGIN");
} else {
$gotourl= addUrlParameter($gotourl,"msg=goodbye");
}
//Header("Status: 302 Moved Temporarily");
//Header("Location: ". getBaseUrl(). $gotourl );
$dbconn->Close();
?>