home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 May / INTERNET103.ISO / pc / software / windows / building / php_nuke / html / blocks / block-login.php < prev    next >
Encoding:
PHP Script  |  2002-09-16  |  1.7 KB  |  35 lines

  1. <?php
  2.  
  3. /************************************************************************/
  4. /* PHP-NUKE: Web Portal System                                          */
  5. /* ===========================                                          */
  6. /*                                                                      */
  7. /* Copyright (c) 2002 by Francisco Burzi                                */
  8. /* http://phpnuke.org                                                   */
  9. /*                                                                      */
  10. /* This program is free software. You can redistribute it and/or modify */
  11. /* it under the terms of the GNU General Public License as published by */
  12. /* the Free Software Foundation; either version 2 of the License.       */
  13. /************************************************************************/
  14.  
  15. if (eregi("block-Login.php", $PHP_SELF)) {
  16.     Header("Location: index.php");
  17.     die();
  18. }
  19.  
  20. global $admin, $user;
  21.  
  22. $content = "<form action=\"modules.php?name=Your_Account\" method=\"post\">";
  23. $content .= "<center><font class=\"content\">"._NICKNAME."<br>";
  24. $content .= "<input type=\"text\" name=\"uname\" size=\"10\" maxlength=\"25\"><br>";
  25. $content .= ""._PASSWORD."<br>";
  26. $content .= "<input type=\"password\" name=\"pass\" size=\"10\" maxlength=\"20\"><br>";
  27. $content .= "<input type=\"hidden\" name=\"op\" value=\"login\">";
  28. $content .= "<input type=\"submit\" value=\""._LOGIN."\"></font></center></form>";
  29. $content .= "<center><font class=\"content\">"._ASREGISTERED."</font></center>";
  30.  
  31. if (is_admin($admin) AND is_user($user)) {
  32.     $content = "<center>"._ADMIN."<br>[ <a href=\"admin.php?op=logout\">"._LOGOUT."</a> ]</center>";
  33. }
  34.  
  35. ?>