From 8a6897e3fd2efceacf8d020dfbf8b742a68f96cd Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Fri, 19 Jul 2024 17:20:26 +0200 Subject: Add development server and refactor building --- expand.php | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'expand.php') diff --git a/expand.php b/expand.php index fb83625..bbe1a3b 100644 --- a/expand.php +++ b/expand.php @@ -1,21 +1,4 @@ (.*?);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); +require_once __DIR__ . "/common.php"; +echo hzcom_expand(file_get_contents("php://stdin")); -- cgit v1.2.3