-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
77 lines (57 loc) · 2.81 KB
/
config.php
File metadata and controls
77 lines (57 loc) · 2.81 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
<?php
// PHP PEAR DB compatible database engine:
// mysql, mysqli, pgsql, odbc and others supported by PHP PEAR DB
$core_config['db']['type'] = 'mysql'; // database engine
$core_config['db']['host'] = 'localhost'; // database host/server
$core_config['db']['port'] = '3306'; // database port
$core_config['db']['user'] = 'root'; // database username
$core_config['db']['pass'] = 'ilab'; // database password
$core_config['db']['name'] = 'playsms00'; // database name
// alternatively you can pass DSN and connect options
// ref:
// - http://pear.php.net/manual/en/package.database.db.intro-dsn.php
// - http://pear.php.net/manual/en/package.database.db.intro-connect.php
//$core_config['db']['dsn'] = 'mysql://root:password@localhost/playsms';
//$core_config['db']['options'] = $options = array('debug' => 2, 'portability' => DB_PORTABILITY_ALL);
// SMTP configuration
$core_config['smtp']['relm'] = ''; // yes, not realm, it's relm
$core_config['smtp']['user'] = '';
$core_config['smtp']['pass'] = '';
$core_config['smtp']['host'] = 'localhost';
$core_config['smtp']['port'] = '25';
// Do not change anything below this line unless you know what to do
// -----------------------------------------------------------------
// you can turn on or off PHP error reporting
// on production level you should turn off PHP error reporting (set to 0), by default it's on
//error_reporting(0);
//error_reporting(E_ALL ^ (E_NOTICE | E_WARNING | E_DEPRECATED));
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT);
// logs directories
$core_config['apps_path']['logs'] = '/var/log/playsms';
// log level: 0=disabled, 1=info, 2=warning, 3=debug, 4=verbose
// WARNING: log level 3 and 4 will also save sensitive information such as password for used gateway
$core_config['logstate'] = 2;
// log file
$core_config['logfile'] = 'playsms.log';
// WARNING: will log almost anything but passwords
$core_config['logaudit'] = true;
// log audit file
$core_config['logauditfile'] = 'audit.log';
// are we using http or https ? the default is using http instead https
$core_config['ishttps'] = false;
// are we using dlrd or not. the default is using dlrd
$core_config['isdlrd'] = true;
// limit the number of DLR processed by dlrd in one time
$core_config['dlrd_limit'] = 100;
// are we using recvsmsd or not. the default is using recvsmsd
$core_config['isrecvsmsd'] = true;
// limit the number of incoming SMS processed by recvsmsd in one time
$core_config['recvsmsd_limit'] = 200;
// are we using sendsmsd or not. the default is using sendsmsd
$core_config['issendsmsd'] = true;
// limit the length of each queue processed by sendsmsd in one time
$core_config['sendsmsd_limit'] = 1000;
// limit the number of queue processed by sendsmsd in one time
$core_config['sendsmsd_queue'] = 30;
// webservices require username
$core_config['webservices_username'] = true;