-
Notifications
You must be signed in to change notification settings - Fork 22
/
config.php
33 lines (29 loc) · 1.26 KB
/
config.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
<?php
// ensure DataTables.php was included
// this file must not be included when installed using composer
if (!defined('DATATABLES')) {
exit(1);
}
// Enable error reporting for debugging (remove for production)
error_reporting(\E_ALL);
ini_set('display_errors', '1');
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Database user / pass
*/
$sql_details = [
'type' => 'Mysql', // Database type: "Mysql", "Postgres", "Sqlserver", "Sqlite" or "Oracle"
'user' => '', // Database user name
'pass' => '', // Database password
'host' => 'localhost', // Database host
'port' => '', // Database connection port (can be left empty for default)
'db' => '', // Database name
'dsn' => '', // PHP DSN extra information. Set as `charset=utf8mb4` if you are using MySQL
'pdoAttr' => [], // PHP PDO attributes array. See the PHP documentation for all options
];
// This is included for the development and deploy environment used on the DataTables
// server. You can delete this block - it just includes my own user/pass without making
// them public!
if (is_file($_SERVER['DOCUMENT_ROOT'] . '/datatables/pdo.php')) {
include $_SERVER['DOCUMENT_ROOT'] . '/datatables/pdo.php';
}
// /End development include