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.
flux_rss/ControllerAdmin.php

61 lines
1.5 KiB

<?php
require_once("gatewaySources.php");
class controllerAdmin {
function __construct() {
session_start();
try
{
$action=$_REQUEST['action'];
switch($action) {
case NULL:
break;
case "ajoutSource":
$this->ajoutSource();
break;
case "suprimerSource":
$this->suprimerSource();
break;
case "setNbArticlesParPage":
$this->setNbArticlesParPage();
break;
}
}
catch (PDOException $e)
{
// $dataVueEreur[] = "Erreur inattendue!!! ";
// require(__DIR__.'/../vues/erreur.php');
}
catch (Exception $e2)
{
// $dataVueEreur[] = "Erreur inattendue!!! ";
// require ($rep.$vues['erreur']);
}
}
function ajoutSource() {
$user= 'jeducourth';
$pass='achanger';
$dsn='mysql:host=localhost;dbname=dbjeducourth';
$con = new Connection($dsn,$user,$pass);
$mdl = new GatewaySources($con);
$mdl->addSources("bonjour.com");
//require('menuAdmin.php');
}
function suprimerSource() {
//$mdl = new GatewaySource();
//$mdl->suprSource();
//require('menuAdmin.php');
}
function setNbArticlesParPage(){
//require('menuAdmin.php');
}
}
?>