mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-04-22 19:02:10 +00:00
pouet
This commit is contained in:
parent
1d015448cd
commit
c121381775
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,4 +6,3 @@ build/
|
|||||||
ops/terraform/secrets.tf
|
ops/terraform/secrets.tf
|
||||||
.DS_Store
|
.DS_Store
|
||||||
**/.idea
|
**/.idea
|
||||||
yarn.lock
|
|
||||||
|
14
index.html
14
index.html
@ -1,14 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<title>Page Title</title>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<link rel="stylesheet" type="text/css" media="screen" href="main.css">
|
|
||||||
<script src="main.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
ACTIVE APACHE CONNARD
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -36,26 +36,35 @@ Options All -Indexes
|
|||||||
|
|
||||||
# lorsque qu'une url va correspondre a un fichier finissant par .php ou .html on interdit l'acces (retourne une erreur 403 (ensuite geré par notre ligne plus haut))
|
# lorsque qu'une url va correspondre a un fichier finissant par .php ou .html on interdit l'acces (retourne une erreur 403 (ensuite geré par notre ligne plus haut))
|
||||||
<FilesMatch ".*\.(php|html)$">
|
<FilesMatch ".*\.(php|html)$">
|
||||||
# Order Allow,Deny
|
<IfVersion < 2.4>
|
||||||
# Deny from all
|
Order Allow,Deny
|
||||||
|
Deny from all
|
||||||
Require all denied
|
</IfVersion>
|
||||||
|
<IfVersion >= 2.4>
|
||||||
|
Require all denied
|
||||||
|
</IfVersion/>
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
# on donne l'autorisation d'acceder au fichier handler.php (sinon le site ne sera pas foncitonnel)
|
# on donne l'autorisation d'acceder au fichier handler.php (sinon le site ne sera pas foncitonnel)
|
||||||
<FilesMatch "handler.php">
|
<FilesMatch "handler.php">
|
||||||
# Order Allow,Deny
|
<IfVersion < 2.4>
|
||||||
# Allow from all
|
Order Allow,Deny
|
||||||
|
Allow from all
|
||||||
Require all granted
|
</IfVersion>
|
||||||
|
<IfVersion >= 2.4>
|
||||||
|
Require all granted
|
||||||
|
</IfVersion/>
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
# on donne acces au fichiers webmanifest et svg
|
# on donne acces au fichiers webmanifest et svg
|
||||||
<FilesMatch ".*\.(webmanifest|svg)$">
|
<FilesMatch ".*\.(webmanifest|svg)$">
|
||||||
# Order Allow,Deny
|
<IfVersion < 2.4>
|
||||||
# Allow from all
|
Order Allow,Deny
|
||||||
|
Allow from all
|
||||||
Require all granted
|
</IfVersion>
|
||||||
|
<IfVersion >= 2.4>
|
||||||
|
Require all granted
|
||||||
|
</IfVersion/>
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
# si le serveur apache a le module mod_deflate.c
|
# si le serveur apache a le module mod_deflate.c
|
||||||
|
@ -31,7 +31,7 @@ if(sizeof(explode("/", $_GET["page"])) > 1) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// $_get[page] = $_get[page][0]
|
// $_get[page] = $_get[page][0]
|
||||||
$_GET['page'] = "/" . explode('/', $_GET['page'])[0];
|
$_GET['page'] = "/" . $_GET['page'];
|
||||||
|
|
||||||
// si len $_get[page] > 1 (mot ou autre) on rajoute le slash de fin
|
// si len $_get[page] > 1 (mot ou autre) on rajoute le slash de fin
|
||||||
if(strlen($_GET['page']) > 1) {
|
if(strlen($_GET['page']) > 1) {
|
||||||
|
@ -18,7 +18,7 @@ $post = function () {
|
|||||||
return file_get_contents("../html/post.html");
|
return file_get_contents("../html/post.html");
|
||||||
};
|
};
|
||||||
|
|
||||||
$router->addRoute("/^\/post\/" + $postCharacters + "+\/*$/", $post); // route "/post/*"
|
$router->addRoute("/^\/post\/" . $postCharacters . "+\/*$/", $post); // route "/post/*"
|
||||||
|
|
||||||
//page de recherche
|
//page de recherche
|
||||||
$search = function () {
|
$search = function () {
|
||||||
@ -31,4 +31,4 @@ $post = function() {
|
|||||||
var_dump("tst");
|
var_dump("tst");
|
||||||
};
|
};
|
||||||
|
|
||||||
$router->addRoute("/^\/post\/" + $postCharacters + "+\/edit\/*$/", $post);
|
$router->addRoute("/^\/post\/" . $postCharacters . "+\/edit\/*$/", $post);
|
||||||
|
@ -283,21 +283,21 @@ while($lst = $list->item(0)) {
|
|||||||
$tg = new $tgs($dom, $lst, false);
|
$tg = new $tgs($dom, $lst, false);
|
||||||
|
|
||||||
$tg->render();
|
$tg->render();
|
||||||
var_dump("--------- 1 ---------");
|
// var_dump("--------- 1 ---------");
|
||||||
for ($i=0; $i < $list->count(); $i++) {
|
// for ($i=0; $i < $list->count(); $i++) {
|
||||||
var_dump($list->item($i)->getAttribute("type"));
|
// var_dump($list->item($i)->getAttribute("type"));
|
||||||
}
|
// }
|
||||||
echo (htmlspecialchars($dom->saveHTML()));
|
// echo (htmlspecialchars($dom->saveHTML()));
|
||||||
|
|
||||||
// var_dump($list[0]->parentNode->nodeName);
|
// var_dump($list[0]->parentNode->nodeName);
|
||||||
|
|
||||||
$lst->parentNode->removeChild($lst);
|
$lst->parentNode->removeChild($lst);
|
||||||
|
|
||||||
var_dump("--------- 2 ---------");
|
// var_dump("--------- 2 ---------");
|
||||||
for ($i=0; $i < $list->count(); $i++) {
|
// for ($i=0; $i < $list->count(); $i++) {
|
||||||
var_dump($list->item($i)->getAttribute("type"));
|
// var_dump($list->item($i)->getAttribute("type"));
|
||||||
}
|
// }
|
||||||
echo (htmlspecialchars($dom->saveHTML()));
|
// echo (htmlspecialchars($dom->saveHTML()));
|
||||||
|
|
||||||
$list = $dom->getElementsByTagName("tag");
|
$list = $dom->getElementsByTagName("tag");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user