This repository has been archived by the owner on May 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
timeline.php
39 lines (36 loc) · 1.5 KB
/
timeline.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
define('cabeca', true);
$Uri = ($_SERVER['REQUEST_URI']);
$datamod = date ("c", getlastmod());
$PageRating = "General";
$RobotsParameters = "noindex,follow";
$GoogleBotDirectives = "";
$PageTemplate = "timeline";
$PageTitle = "All posts";
$PageKeywords = "posts,timeline,texts,list";
$PageDescription = "";
$PageAuthor = "John";
$PageAuthorBio = "about.php";
$PageAuthorJob = "Boss";
$PageAuthorCompany = "JS Inc.";
$DatePub = "2019-12-03T16:49:05-03:00";
$Comments="off";
$ShowMeta="off";
$Image="android-chrome-512x512.png";
require_once __DIR__.'/001.php';
$conteudot1 = '<table class="timeline"><thead><tr><td>Article</td><td>Year Month Day</td></tr></thead>';
echo html_entity_decode($conteudot1, ENT_HTML5);
foreach(array_reverse(glob('2*.php')) as $NomedoArquivo) {
$divisao = explode('.', $NomedoArquivo);
$parte = explode('_', $divisao[0]);
$titulo = $parte[1];
$data = $parte[0];
$titulo = str_replace('-',' ',$titulo);
$data = str_replace('-',' ',$data);
$conteudot2 = '<tr><td><a href="'. htmlentities($NomedoArquivo, ENT_QUOTES, "utf-8") . '">' . htmlentities($titulo, ENT_QUOTES, "utf-8") . '</a></td><td>' . htmlentities($data, ENT_QUOTES, "utf-8") . '</td></tr>';
echo html_entity_decode($conteudot2, ENT_HTML5);
}
$conteudot3 = '<tfoot><tr><td>Tip: You can place a link here pointing to a zip archive with old posts if the list gets too long. Or delete it</td><td>ARCHIVE.ZIP</td></tr></tfoot></table>';
echo html_entity_decode($conteudot3, ENT_HTML5);
define('rodape', true);
require_once __DIR__.'/003.php';?>