-
Notifications
You must be signed in to change notification settings - Fork 27
/
config-sample.php
37 lines (27 loc) · 948 Bytes
/
config-sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
function is_https() {
if (isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on' || $_SERVER['HTTPS'] == 1)) {
return TRUE;
}
// Nginx 专用方法检测
if (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443') {
return TRUE;
}
return FALSE;
}
$base_url = is_https() ? "https" : "http";
$base_url .= "://".$_SERVER["HTTP_HOST"];
$base_url .= ($directory = trim(dirname($_SERVER["SCRIPT_NAME"]), "/\,")) ? "/$directory/" : "/";
define('BASE_URL', $base_url);
define('ENCRYPTION_KEY', 'putyourinfohere');
define('OAUTH_KEY', 'putyourinfohere');
define('OAUTH_SECRET', 'putyourinfohere');
define('EMBEDLY_KEY', 'putyourinfohere');
define('NPT_TITLE', 'putyourinfohere');
define('API_ROOT', 'https://api.twitter.com/1.1/');
define('LANG', 'zh_CN');
define('INVITE', 0);
define('INVITE_CODE', 'putyourinfohere');
define('IMGPROXY', 0);
define('IMGTHUMB', 0);
define('GA_ACCOUNT', 'putyourinfohere');