From 3b9bb27ab9179334fe3c96ae8dbc249061649aff Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Fri, 19 Jul 2024 13:09:00 +0200 Subject: Initial commit --- expand.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 expand.php (limited to 'expand.php') diff --git a/expand.php b/expand.php new file mode 100644 index 0000000..41d4dc7 --- /dev/null +++ b/expand.php @@ -0,0 +1,17 @@ +(.*?);i', function(array $matches) use(&$title): string { + $title = $matches[1]; + return ""; +}, $__page); +$page = SRCDIR . "/pages/" . bin2hex(random_bytes(8)) . ".tmp"; +file_put_contents($page, $__page); +unset($__page); + +include SRCDIR . "/template.php"; + +unlink($page); -- cgit v1.2.3