saahildcom/public/index.php
2024-11-26 19:05:45 -05:00

10 lines
No EOL
190 B
PHP

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