40 lines
997 B
PHP
Executable File
40 lines
997 B
PHP
Executable File
<?php
|
|
/**
|
|
* Script permettant à un administrateur
|
|
* d'ajouter / modifier ou encore supprimer
|
|
* les informations concernant un hub
|
|
*
|
|
**/
|
|
require_once("../modele/FclFlux_hub.php");
|
|
$user=new FclFlux_utilisateur();
|
|
if(!$user->test_session(true,true))
|
|
{
|
|
header("Location:".SITE_URL);
|
|
exit();
|
|
}
|
|
else
|
|
{
|
|
include("../ctrl/admin_hub_a_valider.php");//hubs à valider.
|
|
if(isset($_POST["nom"]))
|
|
{
|
|
if((empty($_POST["suppr_ok"]))&&(empty($_POST["suppr_ok_tot"])))
|
|
include("../ctrl/admin_hub_infos_tests.php");
|
|
else
|
|
include("../ctrl/admin_hub_suppr_tests.php");
|
|
}
|
|
elseif(isset($_POST["recherche"]))
|
|
include("../ctrl/admin_hub_recherche.php");
|
|
elseif(!empty($_GET["id_hub"]))
|
|
include("../ctrl/admin_hub_affiche.php");
|
|
else
|
|
{//formulaire en mode saisie d'un nouveau hub
|
|
$form["nom"]="";
|
|
$form["description"]="";
|
|
$form["mots_cles"]="";
|
|
$form["langue"]="fr";
|
|
$form["publication_ok"]=0;
|
|
$form["index_ok"]=0;
|
|
$form["memo"]="";
|
|
}
|
|
include("../vues/admin_hub_maj.php");
|
|
} |