session_start();
session_register('name');
session_register('id');
session_register('pid');
include_once 'config.php';
include_once 'session_manager.php';
include_once 'assignment.php';
global $WELCOME;
?>
Math 155B Winter 2004
//////////////////////////////////////////////////////////
// START HEADLINE
$isNotLogin = !isset($_SESSION['pid']) ||
$_SESSION['pid'] == '' ||
verifyPID($_SESSION['pid'],session_id(),$_SESSION['id'],$_SESSION['lastname'],$_SESSION['firstname']) == 0;
print '';
if ($isNotLogin){
print "Welcome to $WELCOME
\n
\n
\n";
}
else {
print 'Welcome '.ucwords($_SESSION['firstname']).' '.ucwords($_SESSION['lastname'])." to $WELCOME";
}
// print ''."\n";
// print ''."\n";
// print ''."\n";
// global $CLASS_HOME;
// if ($isNotLogin){
// print '[';
// print 'class home page'."\n";
// print '  |  ';
// print 'main'."\n";
// print '  |  ';
// print 'login'."\n";
// print ']';
// }
// else{
// print '[';
// print 'class home page'."\n";
// print '  |  ';
// print 'main'."\n";
// print '  |  ';
// print 'logout'."\n";
// print ']';
// }
// print ' |
';
// print "
\n";
////////////////////// END HEADLINE /////////////////////////
if (isset($_GET['aview'])){
$asgn = getAssignmentInfor($_GET['aview']);
}
else{
$asgn = NULL;
}
if (!isset($asgn)){
///////////////////// START ASSIGNMENT LIST ////////////////
printAssignmentList($_SERVER['PHP_SELF']);
////////////////////// END ASSIGNMENT LIST //////////////////
}
else{
///////////////////// START ASSIGNMENT SHOW ////////////////
if (!$isNotLogin){
printAssignmentStatus($_SESSION['firstname'],$_SESSION['lastname'],$asgn);
}
printAssignment($asgn);
////////////////////// END ASSIGNMENT SHOW //////////////////
}
?>