mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
parent
33cb20ac9d
commit
c605dc814f
1 changed files with 10 additions and 0 deletions
|
@ -145,6 +145,16 @@ if(!empty(\$_SERVER['SERVER_NAME']) && \$_SERVER['SERVER_NAME']!=='localhost' &&
|
|||
\$global['ddosSecondTimeout'] = 5;
|
||||
\$global['strictDDOSprotection'] = 0;
|
||||
\$global['noDebug'] = 0;
|
||||
\$global['webSiteRootPath'] = '';
|
||||
if(empty(\$global['webSiteRootPath'])){
|
||||
preg_match('/https?:\/\/[^\/]+(.*)/i', \$global['webSiteRootURL'], \$matches);
|
||||
if(!empty(\$matches[1])){
|
||||
\$global['webSiteRootPath'] = \$matches[1];
|
||||
}
|
||||
}
|
||||
if(empty(\$global['webSiteRootPath'])){
|
||||
die('Please configure your webSiteRootPath');
|
||||
}
|
||||
|
||||
\$mysqlHost = '{$_POST['databaseHost']}';
|
||||
\$mysqlPort = '{$_POST['databasePort']}';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue