Location: PHPKode > projects > InvisiblePortal > trunk/includes/redirect.php
<?
include "../news-config.php"; 
include "class.php";
$html = &New Html;
$session = &New SessionHandler;
$query = 'SELECT * FROM `main_conf`;';
$result = mysql_query($query);
if (!$result)
{
	die('Error opening database:  '.mysql_error());
}

$row = mysql_fetch_assoc($result);
$site_title = $row['sitetitle'];
$site_url = $row['siteurl'];
$stylesheet = $row['stylesheet'];

$html->doctype();
$html->html_head($site_title,$stylesheet,'Thank you for logging in.');
$html->html_div_id_open('admin');
echo 'Thank you For Logging on you will be redirect in 5 seconds to the main page, if not please click '.$html->html_anchor($site_url.'/admin/','here').' Thank You';
$html->htm_div_close();
sleep(5);
header('location: '.$site_url.'/admin/');
?>
Return current item: InvisiblePortal