|
|
@ -84,9 +84,9 @@ class ControllerAdmin {
|
|
|
|
|
|
|
|
|
|
|
|
function supprimerSource() {
|
|
|
|
function supprimerSource() {
|
|
|
|
global $dsn,$user,$pass,$vues;
|
|
|
|
global $dsn,$user,$pass,$vues;
|
|
|
|
if(isset($_REQUEST["idSource"])) {
|
|
|
|
if(isset($_REQUEST["source"])) {
|
|
|
|
$gate = new GatewaySources(new Connection($dsn, $user, $pass));
|
|
|
|
$gate = new GatewaySources(new Connection($dsn, $user, $pass));
|
|
|
|
$gate->deleteSources($_REQUEST["idSource"]);
|
|
|
|
$gate->deleteSources($_REQUEST["source"]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
header("location: index.php?action=goToAdministration");
|
|
|
|
header("location: index.php?action=goToAdministration");
|
|
|
|
}
|
|
|
|
}
|
|
|
|