commit
908ec8ebf4
@ -1,38 +0,0 @@
|
||||
<?php
|
||||
class CtrlUser{
|
||||
function __construct(){
|
||||
$rep=__DIR__.'/../';
|
||||
|
||||
$dVueErreur = array ();
|
||||
try{
|
||||
$action=$_REQUEST['action'];
|
||||
|
||||
switch($action) {
|
||||
case NULL:
|
||||
$this->Reinit();
|
||||
break;
|
||||
case "validationFormulaire":
|
||||
$this->ValidationFormulaire($dVueEreur);
|
||||
break;
|
||||
//mauvaise action
|
||||
default:
|
||||
$dVueEreur[] = "Erreur d'appel php";
|
||||
require ($rep.$vues['vuephp1']);
|
||||
break;
|
||||
}
|
||||
} catch (PDOException $e)
|
||||
{
|
||||
//si erreur BD, pas le cas ici
|
||||
$dVueEreur[] = "Erreur inattendue!!! ";
|
||||
require ($rep.$vues['erreur']);
|
||||
}
|
||||
catch (Exception $e2)
|
||||
{
|
||||
$dVueEreur[] = "Erreur inattendue!!! ";
|
||||
require ($rep.$vues['erreur']);
|
||||
}
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
static $user = 'nifranco';
|
||||
static $user = 'anboudoul';
|
||||
static $pass = 'achanger';
|
||||
?>
|
||||
|
@ -1,14 +1,19 @@
|
||||
<?php
|
||||
echo '<head>
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"
|
||||
rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65"
|
||||
crossorigin="anonymous">
|
||||
</head>';
|
||||
echo '<h1>'.$name.'</h1><center>';
|
||||
echo '<div class="list-group list-group-light">';
|
||||
foreach($TabList as $liste){
|
||||
echo '<button type="button" class="list-group-item list-group-item-action px-3 border-0">'.$liste->get_nom().'</button>';
|
||||
}
|
||||
echo '</div></center>';
|
||||
?>
|
||||
rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65"
|
||||
crossorigin="anonymous">
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
echo '<h1>'.$name.'</h1><center>';
|
||||
echo '<div class="list-group list-group-light">';
|
||||
foreach($TabList as $liste){
|
||||
echo '<button type="button" class="list-group-item list-group-item-action px-3 border-0">'.$liste->get_nom().'</button>';
|
||||
}
|
||||
echo '</div></center>';
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in new issue