mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
This commit is contained in:
parent
f338ebfffe
commit
9754ef1aef
1 changed files with 2 additions and 2 deletions
|
@ -297,10 +297,10 @@ class Configuration {
|
|||
$global['salt'] = uniqid();
|
||||
}
|
||||
$content = "<?php
|
||||
\$global['configurationVersion'] = 1;
|
||||
\$global['configurationVersion'] = 2;
|
||||
\$global['disableAdvancedConfigurations'] = 0;
|
||||
\$global['videoStorageLimitMinutes'] = 0;
|
||||
if(!empty(\$_SERVER['SERVER_NAME']) && \$_SERVER['SERVER_NAME']!=='localhost') {
|
||||
if(!empty(\$_SERVER['SERVER_NAME']) && \$_SERVER['SERVER_NAME']!=='localhost' && !filter_var(\$_SERVER['SERVER_NAME'], FILTER_VALIDATE_IP)) {
|
||||
// get the subdirectory, if exists
|
||||
\$subDir = str_replace(array(\$_SERVER[\"DOCUMENT_ROOT\"], 'videos/configuration.php'), array('',''), __FILE__);
|
||||
\$global['webSiteRootURL'] = \"http\".(!empty(\$_SERVER['HTTPS'])?\"s\":\"\").\"://\".\$_SERVER['SERVER_NAME'].\$subDir;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue