[ PHPXref.com ] [ Generated: Sun Jul 20 20:04:03 2008 ] [ PMtool 1.2.2 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> login.php (source)

   1  <?PHP
   2  /***************************************************************************

   3   * $Source: /cvsroot/pmtool/pmtool/login.php,v $

   4   * $Revision: 1.4 $

   5   * $Date: 2003/11/18 01:46:54 $

   6   * $Author: willuhn $

   7   * $Locker:  $

   8   * $State: Exp $

   9   *

  10   * Copyright (c) by willuhn.webdesign

  11   * All rights reserved

  12   *

  13   *  This program is free software; you can redistribute it and/or modify

  14   *  it under the terms of the GNU General Public License as published by

  15   *  the Free Software Foundation; either version 2 of the License, or

  16   *  (at your option) any later version.

  17   *

  18   *  This program is distributed in the hope that it will be useful,

  19   *  but WITHOUT ANY WARRANTY; without even the implied warranty of

  20   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

  21   *  GNU General Public License for more details.

  22   *

  23   *  You should have received a copy of the GNU General Public License

  24   *  along with this program; if not, write to the Free Software

  25   *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

  26   ***************************************************************************/
  27  ?>
  28  
  29  <?PHP
  30  if (!isset($loginInst->id) || $loginInst->id == "") {
  31    session_destroy();
  32  }
  33  ?>
  34  <div>
  35  <h1><?PHP echo $lang['common_login'];?></h1>
  36  <form method="post" name="form1" action="<?PHP echo $toolInst->encodeUrl("index.php");?>">
  37  <table border="0" cellpadding="0" cellspacing="0" width="100%">
  38    <tr>
  39      <td><img src="grafx/dummy.gif" width="1" height="300" border="0"></td>
  40      <td>
  41        <table border="0" cellpadding="1" cellspacing="2" width="100%">
  42          <tr>
  43            <td align="right"><?PHP echo $lang['common_username'];?>:&nbsp;</td>
  44            <td><?PHP
  45            $selected = "";
  46            if (tool::securePost('loginname') && tool::securePost('loginname') != "") $selected = tool::securePost('loginname');
  47            ?>
  48            <input type="text" name="loginname" value="<?PHP echo $selected?>" size="<?PHP echo $htmlconfig['text_size3'];?>"></td>
  49            </td>
  50          </tr><tr>
  51            <td align="right"><?PHP echo $lang['common_password'];?>:&nbsp;</td>
  52            <td><input type="password" name="password" size="<?PHP echo $htmlconfig['text_size3'];?>"></td>
  53          </tr><tr>
  54            <td>&nbsp;</td>
  55            <td><input type="submit" class="submit" value="<?PHP echo $lang['common_login'];?>"></td>
  56          </tr>
  57          <?php if (DEMO_MODE) { ?>
  58            <tr>
  59              <td colspan="2">&nbsp;</td>
  60            </tr>
  61            <tr>
  62              <td colspan="2">
  63                You can use the following accounts to
  64                log into the demo. Leave the password field blank.
  65                <br><b>Please note:</b>
  66                The database will be resetted to the&quot;Factory defaults&quot; once a week (on monday).
  67                <br><br>
  68              </td>
  69            </tr>
  70            <tr>
  71              <th>username</th><th>description</th>
  72            </tr>
  73            <tr>
  74              <td>customer</td><td>Customer: is allowed to create new requests.</td>
  75            </tr>
  76            <tr>
  77              <td>user</td><td>User: can create new tasks and post jobs.</td>
  78            </tr>
  79            <tr>
  80              <td>manager</td><td>Manager: can create new projects and assigns requests to the users.</td>
  81            </tr>
  82            <tr>
  83              <td>admin</td><td>Administrator: Can do everything ;)</td>
  84            </tr>
  85            <tr>
  86              <td colspan="2">&nbsp;</td>
  87            </tr>
  88          <?php } ?>
  89        </table>
  90      </td>
  91    </tr>
  92  </table>
  93  </div>
  94  <script language="javascript">
  95    <!--
  96      <?PHP if ($selected) {?>
  97        document.form1.password.focus();
  98      <?PHP } else { ?>
  99        document.form1.loginname.focus();
 100      <?PHP } ?>
 101    //-->

 102  </script>
 103  
 104  <?PHP
 105  /***************************************************************************

 106   * $Log: login.php,v $
 107   * Revision 1.4  2003/11/18 01:46:54  willuhn
 108   * *** empty log message ***
 109   *

 110   * Revision 1.3  2003/09/27 19:15:50  willuhn

 111   * @B fix on logon page (empty passwords enabled again)

 112   * @N added DEMO_MODE

 113   *

 114   * Revision 1.2  2003/09/27 18:23:44  willuhn

 115   * *** empty log message ***

 116   *

 117   * Revision 1.1.1.1  2003/07/28 19:22:30  willuhn

 118   * reimport

 119   *

 120   * Revision 1.13  2002/04/17 19:54:43  willuhn

 121   * @B a lot of fixes for "register_globals=off"

 122   *

 123   * Revision 1.12  2002/04/01 23:17:22  willuhn

 124   * @N added some language stuff

 125   *

 126   * Revision 1.11  2002/02/09 19:38:27  willuhn

 127   * @N added CVS log

 128   * @N added french language file

 129   *

 130   *

 131   ***************************************************************************/
 132  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]