Blog_IMIE/project/assets/php/handler.php
Florian Bouillon 49d539ee72 remove files from .gitignore
added .html files
edited handler and tagHandler
2018-11-26 14:01:19 +01:00

15 lines
389 B
PHP

<?php
/* Fichier qui va gerer la creation de la page et la redirection au cas ou */
$_GET['page'] = trim($_GET['page'], '/');
$_GET['page'] = explode('/', $_GET['page'])[0];
if($_GET['page'] == '') $_GET['page'] = 'index';
// var_dump($_POST);
// var_dump($_GET);
include_once "tagHandler.php";
$file = file_get_contents("../html/".$_GET["page"].".html");
echo loadTags($file, false);