forked from donatmarko/ivao-booking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-inc.sample.php
59 lines (53 loc) · 2.09 KB
/
config-inc.sample.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
56
57
58
59
<?php
/**
* Flight booking system for RFE or similar events.
* Created by Donat Marko (IVAO VID 540147)
* Any artwork/content displayed on IVAO is understood to comply with the IVAO Intellectual Property Policy (https://doc.ivao.aero/rules2:ipp)
* @author Donat Marko
* @copyright 2021 Donat Marko | www.donatus.hu
*/
/**
* SQL server settings.
* We're using separate database for booking and navigational (airlines, airfields, aircraft) data.
* The database user shall have read/write access to the booking, and at least read access to the navigational database.
*/
define('SQL_SERVER', 'localhost');
define('SQL_USERNAME', 'booking');
define('SQL_PASSWORD', 'ITSYOURPASSWORD');
define('SQL_DATABASE', 'booking');
define('SQL_DATABASE_NAV', 'booking_nav');
/**
* URL of the booking system (full path).
* Needed for the IVAO login API and to the emails.
*/
$config["url"] = 'https://rfe.ivao.hu';
/**
* Maintenance mode.
* In this mode enabled, AJAX requests could happen through both GET and POST requests for testing purposes.
* Normally this mode should be disabled, this way only accepts POST requests.
*/
$config["maintenance"] = false;
$config["login_bypass_api"] = false;
/**
* Email settings.
* "mail_driver" can be 'api' or 'smtp'.
* API mode: using github.com/donatmarko/my-smtp-api
* SMTP mode: using PHPMailer class with direct SMTP sending
*/
$config["mail_driver"] = 'api';
$config["mail_from_name"] = 'IVAO Vatican booking system';
$config["mail_from_email"] = 'events@ivao.va';
/**
* donatmarko/my-smtp-api specific settings
*/
$config["mail_api_url"] = 'https://api.apiprovider.com/smtp';
$config["mail_api_key"] = 'ITSYOURAPIKEYFORTHESMTPAPI';
/**
* PHPMailer specific settings
*/
$config["mail_smtp_server"] = 'mail.example.com';
$config["mail_smtp_port"] = 465;
$config["mail_smtp_auth"] = true;
$config["mail_smtp_secure"] = 'tls';
$config["mail_smtp_username"] = 'smtp@api.example.com';
$config["mail_smtp_password"] = 'ITSYOURPASSWORD';