saahildcom/public/index.php

10 lines
190 B
PHP
Raw Normal View History

2024-12-21 23:00:57 -05:00
<?php
// get useragent header
$user_agent = $_SERVER['HTTP_USER_AGENT'];
if(strpos($user_agent, 'curl') !== false) {
include 'php/curl.php';
} else {
include 'index.html';
}
?>