ActionApps PHP Cross Reference Groupware Applications

Source: /include/loginform.inc - 95 lines - 3116 bytes - Summary - Text - Print

Description: PHP versions 4 and 5

   1  <?php
   2  /**
   3   *
   4   * PHP versions 4 and 5
   5   *
   6   * LICENSE: This program is free software; you can redistribute it and/or modify
   7   * it under the terms of the GNU General Public License as published by
   8   * the Free Software Foundation; either version 2 of the License, or
   9   * (at your option) any later version.
  10   *
  11   * This program is distributed in the hope that it will be useful,
  12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14   * GNU General Public License for more details.
  15   *
  16   * You should have received a copy of the GNU General Public License
  17   * along with this program (LICENSE); if not, write to the Free Software
  18   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  19   *
  20   * @package   Include
  21   * @version   $Id: loginform.inc 2404 2007-05-09 15:10:58Z honzam $
  22   * @author    Honza Malik <honza.malik@ecn.cz>
  23   * @license   http://opensource.org/licenses/gpl-license.php GNU Public License
  24   * @copyright Copyright (C) 1999, 2000 Association for Progressive Communications
  25   * @link      http://www.apc.org/ APC
  26   *
  27  */
  28  
  29  bind_mgettext_domain(AA_INC_PATH."lang/".DEFAULT_LANG_INCLUDE);
  30  require_once  AA_INC_PATH."util.php3";
  31  
  32  HtmlPageBegin();
  33  
  34  echo '<title>ActionApps - '.ORG_NAME.'</title>';
  35  ?>
  36  </head>
  37  <body bgcolor="<?php echo COLOR_TABTITBG ?>" link="#D20000" vlink="#D20000">
  38  <center>
  39  <h1><?php echo _m("Welcome!") ?></h1>
  40  
  41  <?php echo _m("Welcome! Please identify yourself with a username and a password:") ?>
  42  </center>
  43  <?php
  44   $qs= eregi_replace( "\&relogin=true","",$this->url());
  45   $qs= eregi_replace( "relogin=true","",$qs);
  46  ?>
  47  <form action="<?php echo $qs ?>" method=post>
  48  <center><table border="0" bgcolor="<?php echo COLOR_TABBG ?>" cellspacing=0 cellpadding=4>
  49   <tr valign="top" align="left">
  50    <td><?php echo _m("Username:") ?></td>
  51    <td><input type="text" name="username"
  52    value="<?php if (isset($this->auth["uname"])) { htmlspecialchars(print $this->auth["uname"]); }?>"
  53    size="16" maxlength="32"><br><small><?php echo _m("Type your username or mail") ?></small></td>
  54   </tr>
  55   <tr valign="top" align="left">
  56    <td><?php echo _m("Password:") ?></td>
  57    <td><input type="password" name="password" size="16" maxlength="32"></td>
  58   </tr>
  59   <tr>
  60    <td colspan="2" align="center"><input type="submit" name="submit" value="<?php echo _m("Login now") ?>"></td>
  61   </tr>
  62  </table>
  63  
  64  <?php if ( isset($username) ) { ?>
  65   <!-- failed login code -->
  66  
  67   <p>
  68   <table>
  69    <tr align="center">
  70     <td><font color="red"><b><?php echo _m("Either your username or your password is not valid.") ?></b></font></td>
  71    </tr>
  72    <tr align="center">
  73     <td><?php echo _m("Please try again!") ?></td>
  74    </tr>
  75    <tr align="center">
  76     <td><?php echo _m("If you are sure you have typed the correct password, please e-mail <a href=mailto:%1>%1</a>.", array(ERROR_REPORTING_EMAIL)) ?></td>
  77    </tr>
  78   </table>
  79  
  80  <?php } ?>
  81  
  82  </table>
  83  </center>
  84  </form>
  85  </body>
  86  <script language="JavaScript">
  87  <!--
  88    if (document.forms[0][0].value != '') {
  89        document.forms[0][2].focus();
  90    } else {
  91        document.forms[0][0].focus();
  92    }
  93  // -->
  94  </script>
  95  </html>

title

Description

title

Description

title

Description

title

title

Body