Repository navigation
Expand file tree
/
Copy pathsettings.php
More file actions
82 lines (64 loc) · 2.36 KB
/
Copy pathsettings.php
File metadata and controls
82 lines (64 loc) · 2.36 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
80
81
82
<?php //Import settings via require("settings.php");
// Settings
// General configuration
$__initEnable = true; // Disable After Install (set to 'false' rather than 'true')
$__debug = false; // Dev mode
$__hiddenServer = false; // Hidden server should not use IP tracking as users all appear local (e.g. in tor)
// What Boards to support by default
$__defaultTags = array("NorthAmerica", "SouthAmerica", "MiddleEast", "Africa", "Asia", "Europe", "Oceania");
// SuperTrip moderators (temporary moderation system... until we actually have a proper system going
// If not using it, make it an empty array then by typing array() instead
$__superModeratorByTrip = array(
'VtCZ.WGmDw' => 'admin'
);
// Unique Salt
// Please set your own salt
// $__salt = "PUT RANDOM LETTERS HERE"
if(!isset($__salt)){$__salt = sha1($_SERVER['DOCUMENT_ROOT'].$_SERVER['SERVER_SOFTWARE']);}
// DATABASE CONFIG
$settingMode = "mysql";
switch($settingMode){
case "mysql":
$dbType = "mysql";
$dbHost = "localhost";
$dbName = "taskboard";
$dbuser = "root";
$dbpass = "";
$dbConnection = "host=".$dbHost.";dbname=".$dbName;
break;
case "sqlite":
$dbType = "sqlite";
$dbuser = "";
$dbpass = "";
$dbConnection = "tasks.sq3";
break;
}
// ADMIN ANNOUNCEMENT
/*Annoucements for each tag. "Home" is the tag for the front page */
$__tagPageArray = array(
"home" => "This is a development preview of TaskBoard. <br/>
Please help to make it better by contributing to our <a href='https://github.com/corneyflorex/TaskBoard'>github repo</a>"
,
"anonymous" => "Hey anons, well this is just a short message from admin"
);
// There was a problem with using parse_ini_string, when using it with MySQL
// Basically it borked at the string "dsn = ' mysql:host=HOSTNAME;dbname=DBNAME' "
// NOTE: This is fine, as long as you provide good comments so noobs dont bork it up
// or maybe we should move this to settings.php so we can easily back it up?
$config = array(
"homepage" =>array(
"tasks_to_show" => 10
)
,
"tasks" =>array(
"lifespan" => 1
)
,
"database" =>array(
"dsn" => $dbType.":".$dbConnection
,
"username" =>$dbuser
,
"password" =>$dbpass
)
);