rendered paste body<?php
/*
2007 Foerstel Design
File: admin/admin_loading.php
Purpose: PHP backend that makes sure the admin always knows about the CMS' tables - runs after auth.php
Author(s): Brian J. Cohen <brian@intercarve.net>
History:
2007-03-23 - bjc - tagged
*/
session_start();
function get_my_value() {
sleep(5);
return rand();
}
$SITE_URL = "https://intranet.uwsc.wisc.edu:9000/~dvogel/test.php";
if (isset($_SESSION["field_map"])) {
echo <<<END
<html><body>done</body></html>
END;
} else {
echo <<<END
<html>
<head>
</head>
<body>
<br /><br /><br /><br />
<center>
<div style="border: solid 1px #000000; width:400px; height:300px; align:center; padding:50px;">
<b>Please wait while the admin is initialized.</b>
</div>
</body>
END;
flush();
$_SESSION["field_map"] = get_my_value();
echo <<<END
<meta http-equiv="refresh" content="1;url=$SITE_URL">
</html>
END;
}
session_write_close();
exit;
?>