mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Update
This commit is contained in:
parent
6b74bb6548
commit
bfdc4cc540
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue