|
|
@ -15,7 +15,6 @@ class ControllerAdmin {
|
|
|
|
switch($action) {
|
|
|
|
switch($action) {
|
|
|
|
case "goToAdminConnexion":
|
|
|
|
case "goToAdminConnexion":
|
|
|
|
require($vues['adminConnexion']);
|
|
|
|
require($vues['adminConnexion']);
|
|
|
|
header("location:".$vues['adminConnexion']);
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case "goToAdministration":
|
|
|
|
case "goToAdministration":
|
|
|
|
$gatewaySources = new GatewaySources(new Connection($dsn,$user,$pass));
|
|
|
|
$gatewaySources = new GatewaySources(new Connection($dsn,$user,$pass));
|
|
|
@ -89,7 +88,7 @@ class ControllerAdmin {
|
|
|
|
$gate = new GatewaySources(new Connection($dsn, $user, $pass));
|
|
|
|
$gate = new GatewaySources(new Connection($dsn, $user, $pass));
|
|
|
|
$gate->deleteSources($_REQUEST["idSource"]);
|
|
|
|
$gate->deleteSources($_REQUEST["idSource"]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
header("location: ".$vues['administration']);
|
|
|
|
header("location: index.php?action=goToAdministration");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function setNbArticlesParPage(){
|
|
|
|
function setNbArticlesParPage(){
|
|
|
|