Freeradius users script added
[ga4php.git] / authserver / www / index.php
1 <?php 
2
3 require_once("user_actions.php");
4
5 ?>
6 <html>
7 <h1>Welcome to the GAAS User Self Admin Site</h1>
8 <?php
9 if(isset($_REQUEST["message"])) {
10         echo "<font color=\"red\"><i>Login Failure</i></font>";
11
12
13 if(!$loggedin) {
14 ?>
15 <form method="post" action="?action=login">
16 Username: <input type="text" name="username"><br>
17 Token Code: <input type="text" name="tokencode"><br>
18 <input type="submit" value="Login">
19 </form>
20 </html>
21 <?php
22         exit(0); 
23 } else {
24 ?>
25
26 Hi user
27 </html>
28
29 <hr><a href="?action=logout">Logout</a>
30
31 <?php 
32 }
33 ?>
34