1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00
This commit is contained in:
Daniel Neto 2024-08-28 22:45:56 -03:00
parent 6b74bb6548
commit bfdc4cc540

View file

@ -233,12 +233,12 @@ function is_ssl_certificate_valid($port = 443, $domain = '127.0.0.1', $timeout =
function isBot($returnTrueIfNoUserAgent=true)
{
global $_isBot;
if (empty($_SERVER['HTTP_USER_AGENT'])) {
return $returnTrueIfNoUserAgent;
}
if (isCommandLineInterface()) {
return false;
}
if (empty($_SERVER['HTTP_USER_AGENT'])) {
return $returnTrueIfNoUserAgent;
}
if (isAVideoEncoder()) {
return false;
}