2007-10-26 22:44:33 +00:00
|
|
|
<?php
|
|
|
|
|
2007-11-27 16:00:27 +00:00
|
|
|
// Main page of the xCAT web interface, but will redirect to the default page
|
2007-10-26 22:44:33 +00:00
|
|
|
|
2007-12-11 19:44:21 +00:00
|
|
|
$TOPDIR = '.';
|
|
|
|
require_once "$TOPDIR/lib/functions.php";
|
|
|
|
|
|
|
|
// First try to get the cookie of the last visited page
|
|
|
|
if (isset($_COOKIE['currentpage'])) {
|
|
|
|
//echo "<p>here</p>\n";
|
|
|
|
$keys = $_COOKIE['currentpage'];
|
|
|
|
$m = $MENU[$keys[0]]; // this gets us to the menu choice for the top menu in the data structure
|
|
|
|
$url = $m['list'][$keys[1]]['url']; // get to the list of submenu choices, choose the proper one, and get its url
|
|
|
|
//echo "<p>url: $url, m[label]: " . $m['label'] . "</p>\n";
|
2008-10-23 23:28:09 +00:00
|
|
|
} else { $url = 'config/db.php'; /*'machines/groups.php';*/ }
|
2007-12-11 19:44:21 +00:00
|
|
|
|
|
|
|
header("Location: $url");
|
2007-10-26 22:44:33 +00:00
|
|
|
|
2007-11-21 12:08:19 +00:00
|
|
|
?>
|