-
Notifications
You must be signed in to change notification settings - Fork 10
/
log.php
43 lines (32 loc) · 811 Bytes
/
log.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
<?PHP
//SET UP
include("class/session.php");
$title="PAGINA DE PRUEBA";
$level="";
include("template/head.php");
include("template/header-user.php");
include("template/sidebar-rp.php");
//CONTENT
?>
<div class="intro-pu-wrapper">
<?PHP include("samplemenu.php"); ?>
<?php
if(isset($_POST['submit']))
{
$user = $_POST['user'];
$password = $_POST['password'];
//$database->insertValues("users","(NULL,'$user','$password','$deparment')");
//echo "Su USUARIO A SIDO INSERTADO!";
$sessiones -> validarSession($user,$password);
}
?>
<form action="<?=($_SERVER['PHP_SELF'])?>" method="post">
Usuario: <input type="text" name="user">
Contrasena: <input type="text" name="password">
<input type="submit" name="submit">
</form>
</div>
<?PHP
//FOOTER
include("template/footer.php");
?>