Merge branch 'master' of https://codefirst.iut.uca.fr/git/celles-qui-obtiendront-la-recompense/phpProject
commit
ec05e97a74
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
@ -0,0 +1,13 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
class VisitorModel{
|
||||||
|
public $gw;
|
||||||
|
|
||||||
|
public function __construct(){
|
||||||
|
$co = new Connection();
|
||||||
|
$this->gw = new ListeGateway($co);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
@ -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>
|
|
Loading…
Reference in new issue