-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
80 lines (70 loc) · 2.69 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
try {
require_once("conexion/funciones.php");
$func = new funciones();
$ip_real=$func->getRealIP();
$emp = $func->cargaEmpresas();
session_start();
$_SESSION['SESS_ROOTFOLDER']="";
$_SESSION['SESS_INDEXPAGE'] = $_SERVER['REQUEST_URI'];
$_SESSION['SESS_VERSION']="1.3.12";
} catch (Exception $e) {
echo 'Excepción capturada: ', $e->getMessage(), "\n";
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Gestión Administrativa - Software On Line">
<meta name="author" content="Netcode Osorno">
<title>SISTEMA | Login Gestión Administrativa</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<script src="js/bootstrap.js" type="text/javascript"></script>
<link href="css/bootstrap.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" href="css/estilo_index.css" rel="stylesheet">
</head>
<body >
<div class="logo">
<img src="img/logo.png" width="190" height="145">
</div>
<div class="titulo">DEMO WEB | Sistema de Gestión Administrativo</div>
<div style="height: 5px;width: 100%;"></div>
<div style="width: 320px" class="container contenido">
<form class="form-signin" method="post" action="login_.php" novalidate="novalidate">
<h2 class="form-signin-heading">Accede a tu cuenta</h2>
<?php
if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 ) {
echo '<ul class="err">';
foreach($_SESSION['ERRMSG_ARR'] as $msg) {
echo '<li>',$msg,'</li>';
}
echo '</ul>';
unset($_SESSION['ERRMSG_ARR']);
}
?>
<?php date_default_timezone_set("Chile/Continental");?>
<input name="login" id="login" type="text" autofocus="" placeholder="Usuario" class="form-control" required autocomplete="off">
<input name="clave" id="clave" type="password" placeholder="Contraseña" class="form-control" required autocomplete="off">
<select name="empresa" id="empresa" class="form-control" required>
<option value="0">-Seleccione</option>
<?php
for ($e=0;$e<sizeof($emp);$e++){
?>
<option value="<?=$emp[$e]["IDEmpresa"]?>"><?=$emp[$e]["RazonSocial"]?></option>
<?php
}
?>
</select>
<div style="height: 5px;width: 100%;"></div>
<button type="submit" class="btn btn-lg btn-primary btn-block">Entrar</button>
<div style="height: 5px;width: 100%;"></div>
</form>
</div>
<h4>Versión <?=$_SESSION['SESS_VERSION']?></h4>
<h4>Desarrollado por NETCODE </h4>
<h4>San Antonio 19 Oficina 907 - Santiago Chile</h4>
<div class="footer"></div>
</body>
</html>