You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
760 B
24 lines
760 B
<?php
|
|
require('../dal/Connection.php');
|
|
require('../dal/GatUser.php');
|
|
require('../model/ModelUser.php');
|
|
$con = new Connection('mysql:host=localhost;dbname=dbanboudoul', 'anboudoul', 'achanger');
|
|
|
|
// Test Gateway User
|
|
|
|
// $gat = new GatUser($con);
|
|
// $gat->create('Nicolas', 'tranquilloubilou');
|
|
// $gat->updateLogin('Nicolas', 'RicharlisonR9');
|
|
// $gat->updateMdp('RicharlisonR9', 'hexachampion');
|
|
// $tab = $gat->find('RicharlisonR9', 'login');
|
|
// $gat->delete('RicharlisonR9');
|
|
|
|
// Test Modèle User
|
|
|
|
// $mdl = new ModelUser($con);
|
|
// $mdl->ajouter('Anna', 'unmdptrescomplique');
|
|
// $mdl->modifLogin('Anna', 'Aeryn');
|
|
// $mdl->modifMdp('Aeryn', 'wtfmec');
|
|
// $mdl->supprimer('Aeryn');
|
|
|
|
?>
|