hellofacteurV1/ctrl/admin_posts_maj.php

27 lines
684 B
PHP
Raw Permalink Normal View History

2021-11-02 11:23:49 +01:00
<?php
/**
* Script permettant à un administrateur de gérer les posts pour les enregister, modifier ou supprimer.
*
**/
require_once("../modele/FclFlux_post.php");
$user=new FclFlux_utilisateur();
if(!$user->test_session(true,true))
{
header("Location:".SITE_URL);
exit();
}
else
{
include("../ctrl/admin_posts_a_valider.php");
if(isset($_POST["ancre"]))
{
if(empty($_POST["suppr_ok"]))
include("../ctrl/admin_posts_infos_tests.php");
else
include("../ctrl/admin_posts_suppr_tests.php");
}
elseif(isset($_POST["recherche"]))
include("../ctrl/admin_posts_recherche.php");
include("../ctrl/admin_posts_affiche.php");
include("../vues/admin_posts_maj.php");
}