From eb61c1bae2ffad114e17393d91d86fb00d7ac8cd Mon Sep 17 00:00:00 2001 From: Hannah Isopod Date: Sat, 10 May 2025 03:03:58 -0600 Subject: Initialer commit Just remade the repo because I don't *need* need a comprehensive source history for my personal website and this is easier than getting filter-repo to work good --- blog/posts/post.php | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 blog/posts/post.php (limited to 'blog/posts/post.php') diff --git a/blog/posts/post.php b/blog/posts/post.php new file mode 100644 index 0000000..e6b13b6 --- /dev/null +++ b/blog/posts/post.php @@ -0,0 +1,105 @@ +entry as $entry) { + if($entry->id == $cwd) { + $pdate = preg_replace('/T.*$/', ' ', $entry->published); + $udate = preg_replace('/T.*$/', ' ', $entry->updated); + $title = $entry->title; + $descr = $entry->summary; + break; + } +} +?> + + + + + + + + $title"); + $bgfile = glob('bg.*')[0]; + if(!is_null($bgfile)) { + echo(""); + } + ?> + + + + + isoblog

$title

Posted on $pdate$udates

"); + include("../../../Parsedown.php"); + $Parsedown = new Parsedown(); + echo $Parsedown->text(file_get_contents("index.md")); + $Parsedown->setSafeMode(true); + $return = $_GET["return"]; + ?> +
+

Comments

+
+ "; ?> + + + + + + + + + + + Name required!"; + break; + case 'nomessage': + echo ""; + break; + case 'botcheckfailed': + echo ""; + break; + case 'success': + echo ""; + break; + default: + echo ""; + break; + } + ?> + + +
Message required!You failed the bot check!Successfully posted!
+
+ entry == preg_replace("/^.*\//","",getcwd())) { + $output = ""; + $date = date("Y-m-d h:iA", $post->date); + $name = $post->name; + $message = $Parsedown->text(html_entity_decode($post->message)); + + $output = $output."
".$name."".$date."
".$message."
"; + $totaloutput = $output.$totaloutput; + } + } + echo $totaloutput; ?> + + -- cgit v1.2.3