-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathsettings.php
More file actions
79 lines (60 loc) · 1.82 KB
/
Copy pathsettings.php
File metadata and controls
79 lines (60 loc) · 1.82 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
$setting["version"] = "2.03.5";
############# Configuration #############
// Set to false to bring the site offline.
$setting["live"] = true;
// Set to true to see PHP errors, warnings and notices.
$setting["errors"] = false;
// Server time zone, for database records. (use: http://www.php.net/manual/en/timezones.php)
//$setting["time_zone"] = "Europe/London";
// The default input value.
$setting["input"] = "example.com";
// The domains to be use by autocomplete.
$setting["auto_domains"] = array(
"4chan.org",
"12chan.org",
"anontalk.com",
"bbc.co.uk",
"ebay.com",
"example.com",
"facebook.com",
"flickr.com",
"fmylife.com",
"gmail.com",
"google.com",
"imgur.com",
"isitup.org",
"mylifeisaverage.com",
"paypal.com",
"reddit.com",
"slashdot.org",
"thepiratebay.org",
"twitter.com",
"wikileaks.org",
"wikipedia.com",
"youtube.com");
// The max time to check if a site is working for.
$setting["timeout"] = 3;
// Static content override. No trailing slash.
//$setting["static"] = "http://static.im/isitup";
// Folder of script, no trailing slash.
$setting["folder"] = "";
#########################################
# Don't edit, this processes the settings
// ?admin will always work
if ( isset($_COOKIE["admin"]) ) { $setting["live"] = true; }
// sets the error level
if ($setting["errors"] == true) {
error_reporting(E_ALL); }
else {
error_reporting(0); }
// sets the time zone
date_default_timezone_set($setting["time_zone"]);
// sets the timeout
ini_set("default_socket_timeout", $setting["timeout"]);
// sets the host domain
$setting["host"] = $_SERVER["SERVER_NAME"];
if ($setting["folder"] != "") {
$setting["host"] = $setting["host"] . $setting["folder"]; }
if ($setting["static"] == "") {
$setting["static"] = 'http://' . $setting["host"] . '/static'; }