Compare commits

...

4 Commits
v1.1 ... master

Author SHA1 Message Date
Lucas a28b7ceea8 Actualizar 'README.md' 2021-04-20 23:57:54 +00:00
Lucas b6a2c7562f Actualizar 'index.php' 2021-04-11 15:43:55 +00:00
Lucas 5f1b5bed16 Actualizar 'index.php' 2021-04-10 22:29:19 +00:00
Lucas ed88a4952b Actualizar 'index.php' 2021-04-10 22:28:33 +00:00
2 changed files with 7 additions and 5 deletions

View File

@ -6,7 +6,7 @@
2. Upload to a PHP server
3. Edit "blog_config.php"
4. Enjoy!
## Use
## Post
1. Open "blog_config.php" in a editor
2. Put a "," on the last publication (the post at the bottom of the document)
3. Add something like:
@ -16,4 +16,6 @@
"Hello!", // Title
"Lorem Ipsum" // Body
]
```
```
## Delete
To delete an article just leave in blank the three sections of the thing you want to delete.

View File

@ -7,8 +7,8 @@ if(isset($_GET["p"])){
set_error_handler("notfound");
header("Content-type: text/html");
$post=$_GET["p"]-1;
echo "<!DOCTYPE html><html><head><!--~weblogs v1.1--><title>".$posts[$post][1]." | $title</title><style>$style</style>$custom_css</head><body><a id='logo' href='?'><h1>$title</h1></a><div class='notlogo'>";
if(strpos($posts[$post][1],"\n")){$html_log=str_replace("\n","<br>",$posts[$post][2]);}else{$html_log=$posts[$post][1];}
echo "<!DOCTYPE html><html><head><!--~weblogs v1.1.1--><meta name='viewport' content='width=device-width,initial-scale=1'><title>".$posts[$post][1]." | $title</title><style>$style</style>$custom_css</head><body><a id='logo' href='?'><h1>$title</h1></a><div class='notlogo'>";
if(strpos($posts[$post][2],"\n")){$html_log=str_replace("\n","<br>",$posts[$post][2]);}else{$html_log=$posts[$post][2];}
echo "<h1>".$posts[$post][1]."</h1>".$posts[$post][0]."<br><br><div id='article'>$html_log</div>";
if($utterances!=False){echo "<br>$utterances";}
echo $footer;
@ -34,7 +34,7 @@ while($ao < count($posts)){
header("Content-type: text/html");
if($website!=False){$website="<a href='$website'>Website</a> - ";}else{$website="";}
if($description!=False){$description="<p>$description</p>";}
echo "<!DOCTYPE html><html><head><title>$title</title><style>$style</style>$custom_css</head><body><a id='logo' href='?'><h1>$title</h1></a>$description$website<a href='?rss'>RSS Feed</a><br><div class='notlogo'>";
echo "<!DOCTYPE html><html><head><meta name='viewport' content='width=device-width,initial-scale=1'><title>$title</title><style>$style</style>$custom_css</head><body><a id='logo' href='?'><h1>$title</h1></a>$description$website<a href='?rss'>RSS Feed</a><br><div class='notlogo'>";
$a=count($posts)-1;$ao=0;$next=$a+1;
while($ao < count($posts)){
echo "<p><b><a href='?p=$next'>".$posts[$a][1]."</a></b> ".$posts[$a][0]."</p>";