From 611652911a5c22b0bda3136a3e9959b69f8e1990 Mon Sep 17 00:00:00 2001 From: Lucas Date: Fri, 23 Apr 2021 11:11:49 +0000 Subject: [PATCH] =?UTF-8?q?A=C3=B1adir=20'public=5Fhtml/blog.php'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public_html/blog.php | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 public_html/blog.php diff --git a/public_html/blog.php b/public_html/blog.php new file mode 100644 index 0000000..57a898a --- /dev/null +++ b/public_html/blog.php @@ -0,0 +1,44 @@ +";}else{$custom_css="";}}else{$custom_css="";} +$style="body{text-align:center;font-family:monospace;}p{font-size:large;}a#logo{color:black;text-decoration:none;}.notlogo{margin:25px 0px;}#article{text-align:left;margin:1px 30%;font-size:large;}@media screen and (max-width: 600px){#article{margin:1px 10%;}}footer{margin:1em 0 0 0;}"; +$footer=""; +if(isset($_GET["p"])){ + function notfound($errno, $errstr){die("Error!\nPost not found");} + set_error_handler("notfound"); + header("Content-type: text/html"); + $post=$_GET["p"]-1; + echo "".$posts[$post][1]." | $title$custom_css