[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/administrator/templates/mambo_admin/ -> login.php (source)

   1  <?php
   2  /**
   3  * @package Mambo
   4  * @author Mambo Foundation Inc see README.php
   5  * @copyright (C) 2000 - 2009 Mambo Foundation Inc.
   6  * See COPYRIGHT.php for copyright notices and details.
   7  * @license GNU/GPL Version 2, see LICENSE.php
   8  *
   9  * Redistributions of files must retain the above copyright notice.
  10  *
  11  * Mambo is free software; you can redistribute it and/or
  12  * modify it under the terms of the GNU General Public License
  13  * as published by the Free Software Foundation; version 2 of the License.
  14  */
  15  
  16  /** ensure this file is being included by a parent file */
  17  defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
  18  
  19  $tstart = mosProfiler::getmicrotime();
  20  ?>
  21  <?php echo "<?xml version=\"1.0\"?>\r\n"; ?>
  22  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  23  <html xmlns="http://www.w3.org/1999/xhtml">
  24  <head>
  25  <title><?php echo $mosConfig_sitename; ?> - <?php echo T_('Administration') ?> [Mambo]</title>
  26  <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
  27  <style type="text/css">
  28  @import url(templates/mambo_admin/css/admin_login.css);
  29  </style>
  30  <script type="text/javascript">
  31  	function setFocus() {
  32          document.loginForm.usrname.select();
  33          document.loginForm.usrname.focus();
  34      }
  35  </script>
  36  </head>
  37  <body onload="setFocus();">
  38  <div id="wrapper">
  39      <div id="header">
  40             <div id="mambo"><img src="templates/mambo_admin/images/mambo.gif" alt="<?php echo T_('Mambo Logo') ?>" /></div>
  41      </div>
  42  </div>
  43  <div id="ctr" align="center">
  44      <div class="login">
  45          <div class="login-form">
  46              <img src="templates/mambo_admin/images/login.gif" alt="<?php echo T_('Login') ?>" />
  47              <form action="index.php" method="post" name="loginForm" id="loginForm">
  48              <div class="form-block">
  49                  <div class="inputlabel"><?php echo T_('Username') ?></div>
  50                  <div><input name="usrname" type="text" class="inputbox" size="15" /></div>
  51                  <div class="inputlabel"><?php echo T_('Password') ?></div>
  52                  <div><input name="pass" type="password" class="inputbox" size="15" /></div>
  53                  <input type="hidden" name="option" value="login" />
  54                  <div align="left"><input type="submit" name="submit" class="button" value="<?php echo T_('Login') ?>" /></div>
  55              </div>
  56              </form>
  57          </div>
  58          <div class="login-text">
  59              <div class="ctr"><img src="templates/mambo_admin/images/security.png" width="64" height="64" alt="security" /></div>
  60              <p><?php echo T_('Welcome to Mambo!') ?></p>
  61              <p><?php echo T_('Use a valid username and password to gain access to the administration console.') ?></p>
  62          </div>
  63          <div class="clr"></div>
  64      </div>
  65      
  66  </div>
  67  <div id="break"></div>
  68  <noscript>
  69  !Warning! Javascript must be enabled for proper operation of the Administrator
  70  </noscript>
  71  <div class="footer" align="center">
  72  <?php
  73      include  ($mosConfig_absolute_path . "/includes/footer.php");
  74  ?>
  75  </div>
  76  </body>
  77  </html>