parent
3f9f52f9b0
commit
ee688b5366
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
//préfixe
|
||||
$rep='../';
|
||||
|
||||
//BD
|
||||
$dsn = 'mysql:host=londres.uca.local; dbname=dbnogarnier1';
|
||||
$user = 'nogarnier1';
|
||||
$password = 'achanger';
|
||||
|
||||
//View
|
||||
$vues['erreurSignUp']='View/Error/ErreurSignUp.php';
|
||||
$vues['erreur']='View/Error/Erreur.php';
|
||||
$vues['erreurBd']='View/Error/ErreurBd.php';
|
||||
$vues['erreurLoginEmail']='View/Error/ErreurLoginEmail.php';
|
||||
$vues['erreurLoginMdp']='View/Error/ErreurLoginMdp.php';
|
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
class InvalidMdpException extends Exception {
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Error on line '.$this->getLine().' in '.$this->getFile()
|
||||
.': <b>'.$this->getMessage().'</b> Mdp invalide';
|
||||
return $errorMsg;
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
class JoueurNotFoundException extends Exception {
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Error on line '.$this->getLine().' in '.$this->getFile()
|
||||
.': <b>'.$this->getMessage().'</b> Joueur not found';
|
||||
return $errorMsg;
|
||||
}
|
||||
}
|
@ -1,12 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<?php
|
||||
require 'Controller.php';
|
||||
$dsn = 'mysql:host=londres.uca.local; dbname=dbnogarnier1';
|
||||
$user = 'nogarnier1';
|
||||
$password = 'achanger';
|
||||
require_once 'Controller.php';
|
||||
require_once '../Config/Config.php';
|
||||
|
||||
$con = new Connection($dsn, $user, $password);
|
||||
$control = new Controller($con)
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
$control = new Controller($con);
|
@ -0,0 +1,11 @@
|
||||
<html>
|
||||
<body>
|
||||
<h1>ERREUR</h1>
|
||||
<p>Erreur inatendu</p>
|
||||
<?php
|
||||
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php
|
@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<body>
|
||||
<h1>ERREUR</h1>
|
||||
<p>Erreur avec la base de donnée</p>
|
||||
<?php
|
||||
|
||||
?>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<body>
|
||||
<h1>ERREUR</h1>
|
||||
<p>Joueur introuvable</p>
|
||||
<?php
|
||||
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<body>
|
||||
<h1>ERREUR</h1>
|
||||
<p>Mot de passe invalide</p>
|
||||
<?php
|
||||
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<body>
|
||||
<h1>ERREUR</h1>
|
||||
<p>E-mail invalide</p>
|
||||
<?php
|
||||
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in new issue