-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
80 lines (74 loc) · 2.54 KB
/
index.php
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
<html>
<head>
<title>Wifi Admin Portal</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Cutive" rel="stylesheet">
</head>
<body>
<img src="logo.jpg">
<p>
Welcome
<?php
$upn = $_SERVER["HTTP_X_MS_CLIENT_PRINCIPAL_NAME"];
echo $upn;
?>
| <a id="logout" href="/.auth/logout">Logout</a>
<p>
<div class="index" style="float: left;">
<b>Create</b>
<p>
<form action="create.php" method="post">
type:<br />
<select name="userGroup">
<option value="">student</option>
<option value="">guest</option>
</select>
email:<br /><input type="email" name="email" placeholder="user@email.com" autocomplete="off" required><br />
mobile: (optional)<br /><input type="tel" name="phone" pattern="^\d{10}$" placeholder="area + phone ()" autocomplete="off" ><p>
<p><input type="submit" name="submit" value="Submit" />
</form>
</div>
<div class="index" style="float: left;">
<b>Search</b>
<p>
<form action="search.php" method="post">
type:<br />
<select name="userGroup">
<option value="">student</option>
<option value="">guest</option>
<option value="">bulk guest</option>
</select>
email:<br /><input type="text" name="email" placeholder="user@email.com" autocomplete="off" ><br />
<p><input type="submit" name="submit" value="Submit" />
</form>
</div>
<div class="index" style="float: left;">
<b>Bulk Create (guests)</b>
<font size="1">
<p>-expires 2 weeks after use
<br>-must use within 8 weeks of creation
<br>-deleted 2 weeks after expiration
<br>-for events/groups typically
</font>
<p>
<form action="bulk.php" method="post">
count:<br /><input type="number" name="count" placeholder="1-50 PPSKs may be created" autocomplete="off" min="1" max="50" ><br />
prefix:<br /><input type="text" name="userNamePrefix" maxlength="6" placeholder="prefix02, prefix03, prefix04" autocomplete="off" >
email:<br /><input type="email" name="email" placeholder="email to receive spreadsheet" autocomplete="off" ><br />
organization:<br /><input type="text" name="organization" maxlength="25" placeholder="organization" autocomplete="off" ><br />
<input type="hidden" name="groupId" value="">
<p><input type="submit" name="submit" value="Submit" />
</form>
</div>
<div class="index" style="float: left;">
<b>List</b>
<font size="1">
<p>This will list all users that this portal can create.
</font>
<p>
<form action="list.php" method="get">
<input type="submit" name="submit" value="Submit" />
</form>
</div>
</body>
</html>