mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-06-14 02:59:19 +00:00
dbrfb
This commit is contained in:
@ -27,7 +27,7 @@ $search = function () {
|
||||
|
||||
$router->addRoute("/^\/search\/$/", $search); // route "/search/*"
|
||||
|
||||
$post = function() {
|
||||
$edit = function() {
|
||||
$_POST = array_merge($_POST, $_GET); //debug uniquement
|
||||
var_dump($_POST);
|
||||
/*
|
||||
@ -78,4 +78,4 @@ $post = function() {
|
||||
$prepared->execute();
|
||||
};
|
||||
|
||||
$router->addRoute("/^\/post\/" . $postCharacters . "+\/edit\/*$/", $post);
|
||||
$router->addRoute("/^\/post\/" . $postCharacters . "+\/edit\/*$/", $edit);
|
||||
|
@ -273,34 +273,18 @@ function loadTags($ctnt) {
|
||||
$head->item(0)->appendChild($t);
|
||||
}
|
||||
|
||||
$test = array();
|
||||
|
||||
$list = $dom->getElementsByTagName("tag");
|
||||
|
||||
//charge et supprimme les tags
|
||||
while($lst = $list->item(0)) {
|
||||
|
||||
$tgs = ucfirst($lst->getAttribute("type"));
|
||||
array_push($test, $tgs);
|
||||
$tg = new $tgs($dom, $lst, false);
|
||||
|
||||
$tg->render();
|
||||
// var_dump("--------- 1 ---------");
|
||||
// for ($i=0; $i < $list->count(); $i++) {
|
||||
// var_dump($list->item($i)->getAttribute("type"));
|
||||
// }
|
||||
// echo (htmlspecialchars($dom->saveHTML()));
|
||||
|
||||
// var_dump($list[0]->parentNode->nodeName);
|
||||
|
||||
$lst->parentNode->removeChild($lst);
|
||||
|
||||
// var_dump("--------- 2 ---------");
|
||||
// for ($i=0; $i < $list->count(); $i++) {
|
||||
// var_dump($list->item($i)->getAttribute("type"));
|
||||
// }
|
||||
// echo (htmlspecialchars($dom->saveHTML()));
|
||||
|
||||
$list = $dom->getElementsByTagName("tag");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user