[ Index ]
 

Code source de PHP NUKE 7.9

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/blocks/ -> block-Login.php (source)

   1  <?php
   2  
   3  /************************************************************************/

   4  /* PHP-NUKE: Web Portal System                                          */

   5  /* ===========================                                          */

   6  /*                                                                      */

   7  /* Copyright (c) 2005 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 ( !defined('BLOCK_FILE') ) {
  16      Header("Location: ../index.php");
  17      die();
  18  }
  19  
  20  global $admin, $user, $sitekey, $gfx_chk, $admin_file;
  21  
  22  mt_srand ((double)microtime()*1000000);
  23  $maxran = 1000000;
  24  $random_num = mt_rand(0, $maxran);
  25  $content = "<form onsubmit=\"this.submit.disabled='true'\" action=\"modules.php?name=Your_Account\" method=\"post\">";
  26  $content .= "<center><font class=\"content\">"._NICKNAME."<br>";
  27  $content .= "<input type=\"text\" name=\"username\" size=\"10\" maxlength=\"25\"><br>";
  28  $content .= ""._PASSWORD."<br>";
  29  $content .= "<input type=\"password\" name=\"user_password\" size=\"10\" maxlength=\"20\"><br>";
  30  if (extension_loaded('gd') AND ($gfx_chk == 2 OR $gfx_chk == 4 OR $gfx_chk == 5 OR $gfx_chk == 7)) {
  31      $content .= ""._SECURITYCODE.": <img src='?gfx=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'><br>\n";
  32      $content .= ""._TYPESECCODE."<br><input type=\"text\" NAME=\"gfx_check\" SIZE=\"7\" MAXLENGTH=\"6\">\n";
  33      $content .= "<input type=\"hidden\" name=\"random_num\" value=\"$random_num\"><br>\n";
  34  } else {
  35      $content .= "<input type=\"hidden\" name=\"random_num\" value=\"$random_num\">";
  36      $content .= "<input type=\"hidden\" name=\"gfx_check\" value=\"$code\">";
  37  }
  38  $content .= "<input type=\"hidden\" name=\"op\" value=\"login\">";
  39  $content .= "<input type=\"submit\" value=\""._LOGIN."\"></font></center></form>";
  40  $content .= "<center><font class=\"content\">"._ASREGISTERED."</font></center>";
  41  
  42  if (is_admin($admin) AND is_user($user)) {
  43      $content = "<center>"._ADMIN."<br>[ <a href=\"".$admin_file.".php?op=logout\">"._LOGOUT."</a> ]</center>";
  44  }
  45  
  46  ?>


Généré le : Sun Apr 1 11:11:59 2007 par Balluche grâce à PHPXref 0.7