|
|
|
@ -46,7 +46,9 @@ class controllerAdmin {
|
|
|
|
|
|
|
|
|
|
function ajoutSource() {
|
|
|
|
|
global $dsn,$user,$pass,$vues;
|
|
|
|
|
if(isset($_REQUEST["linkSource"])) {
|
|
|
|
|
$error =[];
|
|
|
|
|
$link = $_REQUEST["linkSource"];
|
|
|
|
|
if(isset($_REQUEST["linkSource"]) && Validation::url_form($link,$error)) {
|
|
|
|
|
$gate = new GatewaySources(new Connection($dsn,$user,$pass));
|
|
|
|
|
$source = new Sources($_REQUEST["linkSource"]);
|
|
|
|
|
$gate->addSources($source);
|
|
|
|
|