From 7845745834b9df45f985ff3bf26228b626133454 Mon Sep 17 00:00:00 2001 From: Connor Thomson Date: Sat, 19 Sep 2026 11:48:10 -0700 Subject: Update some more stuff --- app.php | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100755 app.php (limited to 'app.php') diff --git a/app.php b/app.php deleted file mode 100755 index 6a4b41e..0000000 --- a/app.php +++ /dev/null @@ -1,45 +0,0 @@ -. - */ - -ini_set('display_errors', 1); -error_reporting(E_ALL); - -define('ROOT_DIR', __DIR__ . '/'); -define('HTML_DIR', __DIR__ . '/html/'); -define('PHP_DIR', __DIR__ . '/php/'); - -require_once PHP_DIR . 'replace.php'; -require_once PHP_DIR . 'execute.php'; -require_once PHP_DIR . 'path-clean.php'; - -$file = path_clean($_GET['file'] ?? 'index.html'); - -$device = 'desktop'; - -$targets = [ - '{{header}}' => file_get_contents(HTML_DIR . 'header.html'), - '{{content}}' => file_get_contents(ROOT_DIR . $file), - '{{footer}}' => execute(PHP_DIR . 'footer.php'), - '{{device}}' => $device -]; - -$app_html = replace(HTML_DIR . 'app.html', $targets); - -echo $app_html; -?> -- cgit v1.2.3