File: 0.02.16a/server/web/index.php (View as HTML)

  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 Foobar.  If not, see www.gnu.org/licenses
 19: 
 20: For more information see www.purplepixie.org/freenats
 21: -------------------------------------------------------------- */
 22: 
 23: require("include.php");
 24: $NATS->Start();
 25: $NATS_Session->Check($NATS->DB);
 26: Screen_Header("Welcome to FreeNATS");
 27: ?>
 28: <br>
 29: <?php
 30: if (isset($_REQUEST['login_msg'])) echo "<b style=\"color: red;\">".$_REQUEST['login_msg']."</b><br>";
 31: ?>
 32: <table border=0>
 33: <form action=login.php method=post>
 34: <tr><td>
 35: <b>Username: </b></td><td><input type=text name=naun size=20 maxlength=32></td></tr>
 36: <tr><td><b>Password: </b></td><td><input type=password name=napw size=21 maxlenth=64></td></tr>
 37: <tr><td colspan=2><input type=submit value="Login to FreeNATS Interface"></td></tr></form>
 38: </table>
 39: <br><br>
 40: 
 41: <?php
 42: Screen_Footer();
 43: ?>
 44: