feat: curl

This commit is contained in:
Saahil dutta 2024-11-26 19:05:45 -05:00
parent 6f50b72003
commit 6edf06812e
Signed by: neon
GPG key ID: 8A8B64515254CFC6
3 changed files with 50 additions and 0 deletions

10
public/index.php Normal file
View file

@ -0,0 +1,10 @@
<?php
// get useragent header
$user_agent = $_SERVER['HTTP_USER_AGENT'];
if(strpos($user_agent, 'curl') !== false) {
include 'php/curl.php';
} else {
include 'index.html';
}
?>