We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1661a1d commit 6c86efbCopy full SHA for 6c86efb
server/config.php
@@ -4,11 +4,16 @@
4
5
if (!empty($_SERVER['SERVER_NAME']))
6
{
7
- define("WEBROOT", 'http://' . $_SERVER['SERVER_NAME']);
+ $protocol = 'http';
8
+ if ($_SERVER['SERVER_PORT'] == 443)
9
+ {
10
+ $protocol .= 's';
11
+ }
12
+ define("WEBROOT", $protocol . '://' . $_SERVER['SERVER_NAME']);
13
}
14
else
15
- define("WEBROOT", 'http://www.swoole.com');
16
+ define("WEBROOT", 'https://www.swoole.com');
17
18
19
define("TABLE_PREFIX", 'st');
@@ -23,7 +28,7 @@
23
28
define('LOGIN_TABLE','user_login');
24
29
25
30
require __DIR__.'/libs/lib_config.php';
26
-require __DIR__.'/admin/func.php';
31
+require __DIR__.'/apps/include/func.php';
27
32
33
if (get_cfg_var('env.name') == 'dev')
34
0 commit comments