Documentación GVHIDRA 3.1.5
Referencia del Archivo AuthBasic.php

Ir al código fuente de este archivo.

Estructuras de datos

class  AuthBasic

Namespaces

namespace  gvHIDRA

Funciones

 loginFunction ($username=null, $status=null, &$auth=null)

Documentación de las funciones

loginFunction ( username = null,
status = null,
&$  auth = null 
)

Definición en la línea 91 del archivo AuthBasic.php.

                                                                        {
                $status_desc = '';
            if (!empty($status) && $status == AUTH_EXPIRED) {
            $status_desc = '<i>Tu sesión ha expirado. Por favor conectate de nuevo!</i>'."\n";
        } else if (!empty($status) && $status == AUTH_IDLED) {
            $status_desc = '<i>Has estado inactivo mucho tiempo. Por favor conectate de nuevo!</i>'."\n";
        } else if (!empty ($status) && $status == AUTH_WRONG_LOGIN) {
            $status_desc = '<i>Credenciales incorrectas!</i>'."\n";
        } else if (!empty ($status) && $status == AUTH_SECURITY_BREACH) {
            $status_desc = '<i>Problema de seguridad detectado. </i>'."\n";
        }
        $custom = ConfigFramework::getCustomDirName();
        
                echo <<<EOF
<html>
<head>
<title>Acceso personalizado a aplicaciones</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel='stylesheet' href='igep/custom/$custom/css/aplicacion.css' type='text/css' />
<link rel='stylesheet' href='igep/custom/$custom/css/layersmenu-cit.css' type='text/css' />
<script>
  document.onkeypress = processKey;

  function processKey(e)
  {
    if (null == e)
      e = window.event ;
    if (e.keyCode == 13)  {
      document.forms[0].submit();
    }
  }
</script>
</head>
<body>
<br/><br/><br/>
<table width="40%" border="0" cellspacing="0" cellpadding="0" align="center">
<tbody>
  <tr align="center"> 
   <td width="20%">
      <img src="igep/custom/$custom/images/logos/logo.gif" width="35%" height="35%"><br/><br/> 
    </td>
</tr>
  <tr>
    <td width="20%" class="tablaModificar">
        <form method="post" action="" AUTOCOMPLETE="OFF">
        <table border="0" cellpadding="3" width="100%" align=center>
          <tr>
            <td class="cabecerainicial" colspan="2">
              INTRODUCE TUS DATOS
            </td>
          </tr>
          <tr class="formularios">
            <td align="right">Usuario:</td>
            <td><input type="text" name="username" size=15 class="formularios editable" value="$username"></td>
          </tr>
          <tr class="formularios">
            <td align="right">Password:</td>
            <td><input type="password" name="password" size=15 class="formularios editable"></td>
          </tr>
          <tr class="formularios">
            <td colspan="2" align="center">
                <button style='cursor:pointer; display:inline; ' id='aceptar' name='aceptar' value="aceptar" type='button' class=boton onmouseover="this.className='boton_on';" onmouseout="this.className='boton';" onClick="javascript:this.form.submit();">
                  <img src='igep/custom/$custom/images/acciones/08.gif' style='border-style:none;' alt='Aceptar' title='Aceptar' /> Aceptar 
                </button>
            </td>
          </tr>
          <tr class="formularios">
            <td colspan="2" align="center">
            $status_desc
            </td>
          </tr>
            </table>
    </form>
   </td>
  </tr>
</tbody>
</table>

</body>
</html>
EOF;
}