parent
3213fb20e6
commit
a2acad71ca
@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
class UserModel{
|
||||||
|
public $listgw;
|
||||||
|
public $usergw;
|
||||||
|
|
||||||
|
public function __construct(){
|
||||||
|
$co = new Connection();
|
||||||
|
$this->usergw = new UserGateway($co);
|
||||||
|
$this->listgw = new ListeGateway($co);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function deconnection(){
|
||||||
|
session_unset();
|
||||||
|
session_destroy();
|
||||||
|
$_SESSION = array();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function creerListePv($nom,$idCeator){
|
||||||
|
$this->listgw->creerListe($nom,$idCreator);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function desinscription($login){
|
||||||
|
$this->usergw->delUtilisateur($login);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
@ -1,27 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>connection</title>
|
|
||||||
<link rel="stylesheet" href="styles/commonStyles.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<header>
|
|
||||||
<h1>You are back ?!</h1>
|
|
||||||
</header>
|
|
||||||
<div>
|
|
||||||
<h4>Username</h4>
|
|
||||||
<input type="text"/>
|
|
||||||
<h4>Password</h4>
|
|
||||||
<input type="password"/>
|
|
||||||
<br/>
|
|
||||||
<br/>
|
|
||||||
<input type="button" value="Log In"/>
|
|
||||||
<br/>
|
|
||||||
<br/>
|
|
||||||
<p>You are new here?</p>
|
|
||||||
<a href="./signUp.html">
|
|
||||||
<input type="button" value="Sign Up"/>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,8 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<div>
|
|
||||||
<h3>Error!</h3>
|
|
||||||
<p>There was an error in the fields you filled...</p>
|
|
||||||
<p>Please enter correct values</p>
|
|
||||||
</div>
|
|
||||||
</html>
|
|
@ -1,27 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>connection</title>
|
|
||||||
<link rel="stylesheet" href="styles/commonStyles.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<header>
|
|
||||||
<h1>Join the good side of the force</h1>
|
|
||||||
|
|
||||||
</header>
|
|
||||||
<div>
|
|
||||||
<p>Please enter all the informations :</p>
|
|
||||||
<h4>Username</h4>
|
|
||||||
<input type="text"/>
|
|
||||||
<h4>Password</h4>
|
|
||||||
<input type="password"/>
|
|
||||||
<h4>Email</h4>
|
|
||||||
<input type="email"/>
|
|
||||||
<h4>Date Of Birth</h4>
|
|
||||||
<input type="date"/>
|
|
||||||
<br/>
|
|
||||||
<br/>
|
|
||||||
<input type="button" value="Sign Up"/>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,26 +0,0 @@
|
|||||||
header{
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
background-color: #0971C9;
|
|
||||||
}
|
|
||||||
body{
|
|
||||||
background-color: #0D2350;
|
|
||||||
|
|
||||||
}
|
|
||||||
h1,h2,h3,h4,p{
|
|
||||||
font-family: sans-serif;
|
|
||||||
font-weight: bolder;
|
|
||||||
color: #6da8e2;
|
|
||||||
}
|
|
||||||
.button{
|
|
||||||
width: 150%;
|
|
||||||
height: 75%;
|
|
||||||
background-color: #FFFEFD;
|
|
||||||
border-radius: 20%;
|
|
||||||
border-color: #0971C9;
|
|
||||||
color: #0D2350;
|
|
||||||
|
|
||||||
}
|
|
||||||
.button:hover{
|
|
||||||
background-color: grey;
|
|
||||||
}
|
|
Loading…
Reference in new issue