-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.php
More file actions
137 lines (102 loc) · 2.84 KB
/
Copy pathmain.php
File metadata and controls
137 lines (102 loc) · 2.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php
require ("session.php");
?>
<?php require ("top.php"); ?>
<div class="inset">
<?php
if ($_SESSION['atassignments'] == 1)
{
unset($_SESSION['atassignments']);
include("pages/assignments.php");
exit;
}
if ($_SESSION['admin'] == "yes")
{
if (isset($_SESSION['course']) && !isset($_SESSION['phase']))
{
$_SESSION['phase'] = "Collection";
header("Location: main.php");
}
if (!isset($_SESSION['phase']) || $_GET['cntl']=="reset")
{
$_SESSION['phase'] = "Preliminary";
passthru ("admin/responses.pl boguscourse reset");
header("Location: main.php");
exit;
}
else if ($_SESSION['phase'] == "Preliminary" && $_POST['courseandsection'] != "")
{
$_SESSION['phase'] = "Collection";
$pieces = explode(" ", $_POST['courseandsection']);
$_SESSION['course'] = $pieces[0];
$_SESSION['section'] = $pieces[1];
header("Location: main.php");
exit;
}
include("admin/index.php");
exit;
}
?>
<h1><i>Welcome to <?=strtoupper($_SESSION['course'])?></i></h1>
<?php if (1) { //($_SESSION['course'] != "cs46xxx") { ?>
<div id="quotecontainer">
<div id="csquote">
<?php
include ("quote.php");
?>
</div>
</div>
<?php } ?>
<?php if ($_SESSION['course'] == "cs2xxx") { ?>
Starter code for Question 4 on the Midterm is here:<br />
<a href="/sn/cs2midterm1.cpp">cs2midterm1.cpp</a>
<?php } ?>
<?php if ($_SESSION['course'] == 'cs20') {
?>
<?php } ?>
<?php if ($_SESSION['course'] == 'cs31xxx') {
?>
<div class="msg_strong">
The starter code for the last item<br />
on the final exam is
<a href="/sn/cs31final.java">HERE</a>
</div>
<?php } ?>
<?php if (0) { ?>
<div class="msg_strong">
Please fill out the
<a href="https://docs.google.com/forms/d/1VHmnCrkmjTKZXMZrB99IHQdzPYnK2VN6kqI65XvzCfg/viewform"
target="_blank">
Spring 2015 Initial Survey</a>
</div>
<?php } ?>
<?php
if ($_SESSION['course'] == 'cs20xxx')
{
?>
<div class="msg_strong">
Random art submissions are <a href="/sn/art/" target="_blank">HERE</a>
</div>
<?php
}
?>
<?php if (isset($_SESSION['success_msg'])) { ?>
<div class="msg_pos">
<p><b>Success</b></p>
<p><?=$_SESSION['success_msg']?></p>
</div>
<?php unset($_SESSION['success_msg']); } ?>
<?php if($_SESSION['course'] == "cs46xxx") { ?>
<div class="msg_strong">
To take the midterm exam,
<a href="startexam.php">CLICK HERE</a>.
</div>
<?php } ?>
<?php if ($_SESSION['course'] == "cs16xxx") { ?>
<div class="status">
<p>Looking for the remove mac availability calendar? <a><a href="http://thumper.laspositascollege.edu/sn/remote_calendar.php" target="_blank">Here it is</a>.</p>
</div>
<? } ?>
<p>Please select something from the menus above.</p>
</div>
<?php require ("bottom.php"); ?>