connection
This commit is contained in:
6
public/css/bootstrap.min.css
vendored
Normal file
6
public/css/bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
10
public/css/styles.css
Normal file
10
public/css/styles.css
Normal file
@@ -0,0 +1,10 @@
|
||||
#formLogin{
|
||||
background-color: rgb(232, 238, 239);
|
||||
border:1px solid darkcyan;
|
||||
border-radius: 10px;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
td a {
|
||||
color: white !important;;
|
||||
}
|
31
public/index.php
Normal file
31
public/index.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
session_start();
|
||||
require_once __DIR__."/../controleurs/ControleurAuthentification.php";
|
||||
// index.php?route=maRoute¶m1=truc
|
||||
// => route reçue en get
|
||||
define("BASE_URL","/contribsavantrouteur/");
|
||||
$route = isset($_GET["route"])? $_GET["route"] : null;
|
||||
$pdo = new PDO("mysql:host=mysqlsrv;dbname=contrib",
|
||||
"contrib_root",
|
||||
"123abc");
|
||||
|
||||
if ($route=="coucou"){
|
||||
$ctr = new ControleurAuthentification;
|
||||
$ctr->coucou();
|
||||
exit();
|
||||
}
|
||||
|
||||
if ($route=="afficherFromCo"){
|
||||
$ctr = new ControleurAuthentification;
|
||||
$ctr->afficherFromCo();
|
||||
exit();
|
||||
}
|
||||
|
||||
if ($route=="traiterFromCo"){
|
||||
echo "Je suis là";
|
||||
$ctr = new ControleurAuthentification;
|
||||
$ctr->traiterFromCo($pdo,$_POST["login"],$_POST["pass"]);
|
||||
exit();
|
||||
}
|
||||
|
||||
echo "Route inconnue";
|
7
public/js/bootstrap.bundle.min.js
vendored
Normal file
7
public/js/bootstrap.bundle.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user