source: admin/WebConsole/acceso_eng.php @ 3fef8e1

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since 3fef8e1 was a6b881e, checked in by alonso <alonso@…>, 15 years ago

primeros archivos de administración

git-svn-id: https://opengnsys.es/svn/trunk@520 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 4.3 KB
Line 
1<?
2// *************************************************************************************************************************************************
3// Aplicación WEB: ogAdmWebCon
4// Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla
5// Fecha Creación: Diciembre-2003
6// Fecha Última modificación: Febrero-2005
7// Nombre del fichero: acceso.php
8// Descripción : Presenta la pantalla de login de la aplicación
9// *************************************************************************************************************************************************
10if(isset($_SESSION)){   // Si existe algua sesión ...
11        session_unset(); // Elimina variables
12        session_destroy(); // Destruye sesión
13}
14$herror=0;
15if (isset($_GET["herror"])) $herror=$_GET["herror"];
16
17$TbErr=array();
18$TbErr[0]="NO ERRORS";
19$TbErr[1]="WARNING:You must access to aplication through login pag";
20$TbErr[2]="WARNING:Aplication without access to Server Data Base";
21$TbErr[3]="WARNING: There are some problem to recovery the record, must be it is removed";
22//________________________________________________________________________________________________________
23?>
24<HTML>
25<TITLE> Administración web de aulas</TITLE>
26<HEAD>
27        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
28        <LINK rel="stylesheet" type="text/css" href="estilos.css">
29</HEAD>
30<SCRIPT LANGUAGE="JAVASCRIPT">
31//________________________________________________________________________________________________________
32function confirmar(){
33        if (comprobar_datos()){
34                var usu=document.fdatos.usu.value;
35                var pss=document.fdatos.pss.value;
36                var ifr=document.getElementById("iframes_comodin"); // Toma objeto Iframe
37                var wurl="controlacceso.php?usu="+usu+"&pss="+pss
38                ifr.src=wurl; // LLama a la página gestora
39        }
40}
41//________________________________________________________________________________________________________
42function comprobar_datos(){
43        if (document.fdatos.usu.value==""){
44                alert("You must introduce a User name")
45                document.fdatos.usu.focus()
46                return(false)
47        }
48        if (document.fdatos.pss.value==""){
49                alert("You must introduce a Password")
50                document.fdatos.pss.focus()
51                return(false)
52        }
53        return(true)
54}
55//______________________________________________________________________________________________________
56function resultado_acceso(resul){
57        if (!resul){
58                alert('WARNING: You are not authorized to access this aplication')
59                return
60        }
61        location.href="frames.php";
62}
63//______________________________________________________________________________________________________
64function PulsaEnter(oEvento){
65    var iAscii;
66    if (oEvento.keyCode)
67        iAscii = oEvento.keyCode;
68    else{
69                if (oEvento.which)
70                        iAscii = oEvento.which;
71                else
72                        return false;
73        }
74    if (iAscii == 13)  confirmar();
75        return true;
76}
77//________________________________________________________________________________________________________
78</SCRIPT>
79</HEAD>
80<BODY>
81<DIV style="POSITION:absolute;top:90;left:212">
82        <FORM action="controlacceso.php" name="fdatos" method="post">
83                <DIV align="center">
84                        <IMG src="./images/login_eng.jpg" >
85                        <INPUT onkeypress="PulsaEnter(event)" name="usu"  style="POSITION:absolute;top:160;left:455;width=130;height:20;COLOR: #999999; FONT-FAMILY: Verdana; FONT-SIZE: 12px;">
86                        <INPUT onkeypress="PulsaEnter(event)"  name="pss" type="password"  style="POSITION:absolute;top:190;left:455;width=130;height:20;COLOR: #999999; FONT-FAMILY: Verdana; FONT-SIZE: 12px;">
87                        <IMG onclick="confirmar()" src="./images/botonok.gif" style="POSITION:absolute;top:215;left:555;CURSOR: hand">
88                </DIV>
89        </FORM>
90</DIV>
91<?
92//________________________________________________________________________________________________________
93echo '<DIV  style="POSITION: absolute;LEFT: 20px;TOP:300px;visibility=hidden" height=300 width=300>';
94echo '<IFRAME scrolling=yes height=300 width=310 id="iframes_comodin" src="./nada.php"></IFRAME>';
95echo '</DIV>';
96//________________________________________________________________________________________________________
97// Posiciona cursor en campo usuario y muestra mensaje de error si lo hubiera
98echo '<SCRIPT LANGUAGE="javascript">';
99if (!empty($herror))
100        echo "  alert('".$TbErr[$herror]."');";
101echo 'document.fdatos.usu.focus()';
102echo '</SCRIPT>';
103//________________________________________________________________________________________________________
104?>
105</BODY>
106</HTML>
Note: See TracBrowser for help on using the repository browser.