27 lines
684 B
PHP
Executable File
27 lines
684 B
PHP
Executable File
<?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");
|
|
} |