Commit 663ba409 authored by Corentin Bettiol's avatar Corentin Bettiol 💻

uncomment some header()

parent e7ffa7e6
......@@ -38,7 +38,7 @@ function writeAdminPage($pageName){
case 'blogsubmit':
if(isset($_POST['title'])){
$admin->sendBlogPost();
//header('Location:/patate');
header('Location:/patate');
}
else
require('site/view/private/createBlogView.php');
......
......@@ -87,8 +87,8 @@ function writeBlogPage($pageName){
$blogpost = $blog->get($title);
if($blogpost != false)
require('site/view/public/blogPostView.php');
//else
// header('Location:/404');
else
header('Location:/404');
}
// si on affiche la liste des posts
else{
......@@ -109,8 +109,8 @@ function writeProjectPage($pageName){
if($project != false){
require('site/view/public/projectView.php');
}
//else
// header('Location:/404');
else
header('Location:/404');
}
// si on affiche la liste des projets
else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment