From 67e4b234d31626976ad630043814235c936f8bbf Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Sat, 9 Mar 2024 21:29:25 -0700 Subject: finish static page --- html/public/index.php | 54 +++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 42 insertions(+), 12 deletions(-) (limited to 'html/public/index.php') diff --git a/html/public/index.php b/html/public/index.php index 3ed5805..004a131 100644 --- a/html/public/index.php +++ b/html/public/index.php @@ -1,19 +1,49 @@ you are at my tilde.club page right now! hi!

-$ch = curl_init(); -$url = "http:/localhost"; -$unix = "/home/simponic/http.sock"; +a penguin +

this is a penguin

-if (defined('CURLOPT_UNIX_SOCKET_PATH')) { - curl_setopt($ch, CURLOPT_UNIX_SOCKET_PATH, $unix); - curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); +

here you can:

- $response = curl_exec($ch); - echo $response; -} + -curl_close($ch); +
+
+ +

+here are some stuffs i like: +

+

+ +

+here are some stuffs i don\'t like: +

+

+'; + +$template = file_get_contents('template.html'); + +echo str_replace("{{content}}", $content, $template); ?> -- cgit v1.2.3-70-g09d2