kernel
[ class tree: kernel ] [ index: kernel ] [ all elements ]

Source for file error_simple.php

Documentation is available at error_simple.php

  1. <?php
  2. /**
  3.  * @version $Header$
  4.  * @package kernel
  5.  * @subpackage functions
  6.  */
  7. ?>
  8. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  9. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  10.     <head>
  11.         <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  12.         <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
  13.         <link rel="icon" href="/favicon.ico" type="image/x-icon" />
  14.         <style type="text/css">
  15.             body {margin:4em;font-family:monospace;line-height:2em;background:#fff}
  16.             fieldset {border:0px solid #fff;margin:0;padding:0}
  17.             legend {display:none;margin:0;padding:0;line-height:0}
  18.             label {display:block;clear:both}
  19.             input[type='submit'] {margin-left:4em;font-family:monospace}
  20.             hr {border:1px solid #ddd;border-width:1px 0 0 0;background:#fff;height:1px;line-height:1px;margin:1em 0}
  21.         </style>
  22.     </head>
  23.     <body>
  24.  
  25.         <?php
  26.             if (isset($_REQUEST['error']and !is_null($_REQUEST['error'])) {
  27.                 if$gBitSystem->isFeatureActive'site_closed' )){
  28.                     echo $_REQUEST['error']
  29.                 else {
  30.                     echo strip_tags($_REQUEST['error']);
  31.                 }
  32.             else {
  33.                 echo 'There was an unspecified error. Please go back and try again.';
  34.             }
  35.         ?>
  36.         
  37.         <hr />
  38.             
  39.         <form name="loginbox" action="<?php echo USERS_PKG_URL ?>validate.php" method="post">
  40.             <fieldset>
  41.                 <legend>Login</legend>
  42.                 <label for="user">User: <input id="user" name="user" size="20" type="text" /></label>
  43.                 <label for="pass">Pass: <input id="pass" name="pass" size="20" type="password" /></label>
  44.                 <input type="submit" name="login" value="Login" />
  45.             </fieldset>
  46.         </form>
  47.  
  48.     </body>
  49. </html>

Documentation generated on Wed, 29 Jul 2015 13:56:28 +0000 by phpDocumentor 1.5.0-lsces