Viewing File server/web/index.php of 1.01.10a
|
1: <?php 2: /* ------------------------------------------------------------- 3: This file is part of FreeNATS 4: 5: FreeNATS is (C) Copyright 2008 PurplePixie Systems 6: 7: FreeNATS is free software: you can redistribute it and/or modify 8: it under the terms of the GNU General Public License as published by 9: the Free Software Foundation, either version 3 of the License, or 10: (at your option) any later version. 11: 12: FreeNATS is distributed in the hope that it will be useful, 13: but WITHOUT ANY WARRANTY; without even the implied warranty of 14: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15: GNU General Public License for more details. 16: 17: You should have received a copy of the GNU General Public License 18: along with FreeNATS. If not, see www.gnu.org/licenses 19: 20: For more information see www.purplepixie.org/freenats 21: -------------------------------------------------------------- */ 22: ob_start(); 23: require("include.php"); 24: $NATS->Start(); 25: $session=$NATS_Session->Check($NATS->DB); 26: if ($session) 27: { 28: header("Location: main.php"); 29: exit(); 30: } 31: Screen_Header("Welcome to FreeNATS",3); 32: ob_end_flush(); 33: ?> 34: <br><center> 35: <?php 36: if (isset($_REQUEST['login_msg'])) echo "<b style=\"color: red; font-size: 14pt;\">".$_REQUEST['login_msg']."</b><br><br>"; 37: else echo "<b style=\"font-size: 14pt;\">Welcome to FreeNATS</b><br><br>"; 38: 39: $t="<b class=\"subtitle\">Login...</b>"; 40: Start_Round("Please Authenticate",300); 41: ?><center><br> 42: <table border=0 width=200> 43: <form action=login.php method=post> 44: <tr><td align=right> 45: <b>Username: </b></td><td><input type=text name=naun size=20 maxlength=32 style="width: 160px;"></td></tr> 46: <tr><td align=right><b>Password: </b></td><td><input type=password name=napw size=21 style="width: 160px;" maxlenth=64></td></tr> 47: </table><br> 48: <input type=submit value="Login to the FreeNATS Interface" style="font-size: 11pt;"> 49: <!-- <br><input type=checkbox name=gotomonitor value=1> Go straight to live monitor</input> --> 50: </form> 51: </center><br> 52: 53: <?php 54: End_Round(); 55: ?> 56: <br><br> 57: </center> 58: <?php 59: Screen_Footer(); 60: ?> 61: