// ********************************************************************************************************* // Aplicación WEB: ogAdmWebCon // Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla // Fecha Creación: Agosto-2010 // Fecha Última modificación: Agosto-2010 // Nombre del fichero: acceso.php // Descripción : Presenta la pantalla de login de la aplicación // ******************************************************************************************************** # Cambiar a HTTPS if (empty ($_SERVER["HTTPS"])) { header ("Location: https://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"]); exit (0); } include_once("controlacceso.php"); include_once("./includes/CreaComando.php"); include_once("./clases/AdoPhp.php"); include_once("./includes/HTMLSELECT.php"); //________________________________________________________________________________________________________ $cmd=CreaComando($cnx); // Crea objeto comando if (!$cmd) die("Error de acceso"); //________________________________________________________________________________________________________ $herror=0; if (isset($_GET["herror"])) $herror=$_GET["herror"]; if (isset($_POST["herror"])) $herror=$_POST["herror"]; $TbErr=array(); $TbErr[0]="NO ERRORS"; $TbErr[1]="Attention: You must access the application via the homepage"; $TbErr[2]="Attention: The application not have access to the database server"; $TbErr[3]="Attention: There are problems to retrieve the record, it may have been removed"; $TbErr[4]="Attention: You do not have access to this application"; $TbMsg=array(); $TbMsg["ACCESS_TITLE"]="OpenGnSys: Labs web administration"; $TbMsg["ACCESS_OU"]="Organitational Unit"; $TbMsg["ACCESS_NOUSER"]="You must enter a username"; $TbMsg["ACCESS_NOPASS"]="You must enter a password"; $TbMsg["ACCESS_NOUNIT"]='You have not entered any Organizational Unit.\nYou will NOT have access to the system unless that you are a main administrator of the Application.\nDo you want to access with this profile?'; //________________________________________________________________________________________________________ ?>