<?php

include_once "../constants/constants.php";
include_once $_SERVER['DOCUMENT_ROOT'] . DIRCLASS . "/user/user.class.php";
?>
<!doctype html>
<html>
    <head>
		<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
		<link rel='stylesheet' type='text/css' href="css/estil.css" >
        <script type="text/javascript" src="../js/ajax.js"></script>
        <script type="text/javascript" src="../js/user.js"></script>
		<title>User</title>
	</head>
	<body>
    <?php 
if (isset($_POST['dni'])) {
    $user = new user($_POST);
    $user->insertar($_POST);
} else {
    include_once "../class/user/UIuser.class.php";
    UIuser::fEntrarUsuari();
}
?>
    </body>
</html>
Exemple #2
0
<?php

include_once "../constants/constants.php";
include_once $_SERVER['DOCUMENT_ROOT'] . DIRCLASS . "/user/UIuser.class.php";
if (isset($_GET['type'])) {
    switch ($_GET['type']) {
        case 'dni':
            UIuser::ajaxCheckDNI($_GET['id']);
            break;
        default:
    }
}