-
Notifications
You must be signed in to change notification settings - Fork 4
/
settings.php
55 lines (47 loc) · 1.3 KB
/
settings.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?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)
// Unique Salt
// Please set your own salt
$__salt = NULL; // $__salt = "PUT RANDOM LETTERS HERE";
if(!isset($__salt)){$__salt = hash("sha512",$_SERVER['DOCUMENT_ROOT'].$_SERVER['SERVER_SOFTWARE']);}
// DATABASE CONFIG
// CHOOSE YOUR MODE
$settingMode = "mysql";
// FILL YOUR DB SETTINGS HERE
switch($settingMode){
case "mysql":
$dbType = "mysql";
$dbHost = "localhost";
$dbName = "anonyPM";
$dbuser = "root";
$dbpass = "";
$dbConnection = "host=".$dbHost.";dbname=".$dbName;
break;
case "sqlite":
$dbType = "sqlite";
$dbuser = "";
$dbpass = "";
$dbConnection = "tasks.sq3";
break;
}
$config = array(
"homepage" =>array(
"tasks_to_show" => 10
)
,
"tasks" =>array(
"lifespan" => 1
)
,
"database" =>array(
"dsn" => $dbType.":".$dbConnection
,
"username" =>$dbuser
,
"password" =>$dbpass
)
);