<?php
/**
 * Copyright (C) 2009  Honghao Geng (genghonghao@gmail.com)
 * $Id: reload.php 211 2009-10-07 16:11:20Z genghonghao $
 */
define('IN_GEN', true);
include './includes/common.inc.php';

$interval = $_GET['interval'] ? trim($_GET['interval']) : NULL;
$url = $_GET['url'] ? urldecode(trim($_GET['url'])) : NULL;
$msg = $_GET['msg'] ? urldecode(trim($_GET['msg'])) : NULL;
$state_text = $_GET['state_text'] ? urldecode(trim($_GET['state_text'])) : NULL;
if ($interval == NULL || $url == NULL || $msg == NULL || $state_text == NULL) {
    header("Location: index.php");
    exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta http-equiv='refresh' content='<?php echo $interval+5; ?>;url=<?php echo $url; ?>'>
        <title><?php echo $lang['page_jump']; ?>......</title>
        <style type="text/css">
            * { margin: 0; padding: 0; }
            html { font-size: 100%; height: 100%; margin-bottom: 1px; }
            #smartgoon_body.redirector {
                font-size: 13px;
                width: 500px;
                margin: 150px auto 0 auto;
            }
            .message {
                background: #f1f6ec no-repeat 8px 10px;
                padding: 10px 10px 10px 30px;
                border: 1px solid #b0ce94;
                color: #3e4934;
                line-height: 150%;
            }
        </style>
    </head>
    <body  id='smartgoon_body' class='redirector'>
        <div>
            <h1></h1>
            <h2><?php echo $state_text; ?></h2>
            <p class='message'>
                <strong><?php echo $msg; ?></strong>
                <br /><br />
				<?php echo $_LANG['please_wait']; ?>
                <br />
                <span class='desc'>(<?php printf($_LANG['login_jump_text'], $url); ?>)</span>
            </p>
        </div>
    </body>
</html>