From 9e768198f62b57cc4296612c2bc80e5e4537021d Mon Sep 17 00:00:00 2001 From: AkisYTB3 Date: Thu, 25 Jan 2024 12:48:58 +0100 Subject: [PATCH] doing php (please work) --- index.php | 16 ++++++++++++---- pages/user/index.html | 2 ++ templates/skeleton.html | 2 +- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 6f12925..ff6276b 100644 --- a/index.php +++ b/index.php @@ -82,16 +82,24 @@ if (isset($_SESSION['user_id'])) { $page_regex = '//s'; +$page_style_regex = '//s'; -if(preg_match($page_regex, $page_data, $matches)){ +if (preg_match($page_regex, $page_data, $matches)) { $page_name = $matches[1]; $page_data = preg_replace($page_regex, '', $page_data); -} -else{ +} else { $page_name = ucfirst($page); } -$output = str_replace('