-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdbConfig.example.php
50 lines (36 loc) · 1.62 KB
/
dbConfig.example.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
<?php
/* Copyright 2010 Yeri "Tuinslak" Tiete (http://yeri.be), and others
This file is part of iRail.
iRail is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
iRail is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with iRail. If not, see <http://www.gnu.org/licenses/>.
http://project.irail.be - http://irail.be
Source available at http://github.com/Tuinslak/iRail
*/
// API MySQL logging
// Documentation at http://project.irail.be/cgi-bin/trac.fcgi/wiki/ApiMySqlLogging
// API DB config
$api_host = "localhost"; // db host
$api_user = "irail"; // db user
$api_password = "passwd"; // passwd
$api_database = "irail"; // db name
$api_table = "apilog"; // table name
// API server name
$api_server_name = "0"; // set a name, name < 5 chars in iRail DB
// database columns
$api_c1 = "id"; // unique ID
$api_c2 = "time"; // request unix time
$api_c3 = "useragent"; // UA, if any
$api_c4 = "fromstation"; // from station
$api_c5 = "tostation"; // to station
$api_c6 = "errors"; // catch error output
$api_c7 = "ip"; // request IP address
$api_c8 = "server"; // server name of iRail server, usually 0[.irail.be], 1[.irail.be], dev, etc
?>