mirror of
https://github.com/NeonGamerBot-QK/saahild.com.git
synced 2025-05-13 17:03:06 +00:00
feat: curl (#12)
This commit is contained in:
parent
6f50b72003
commit
af763b0fa1
5 changed files with 77 additions and 0 deletions
10
public/index.php
Normal file
10
public/index.php
Normal 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';
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue