-
Notifications
You must be signed in to change notification settings - Fork 4
/
config-inc.sample.php
54 lines (48 loc) · 1.99 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
<?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 Creative Intellectual Property Policy (https://wiki.ivao.aero/en/home/ivao/intellectual-property-policy)
* @author Donat Marko
* @copyright 2024 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.
*/
define('SITE_URL', 'https://booking.hu.ivao.aero/');
/**
* 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["login_bypass_api"] = false;
/**
* IVAO SSO parameters.
* Can be requested through https://developers.ivao.aero/
*/
define('IVAOSSO_CLIENT_ID', 'your-client-id');
define('IVAOSSO_CLIENT_SECRET', 'your-client-secret');
define('IVAOSSO_REDIRECT_URI', 'https://booking.hu.ivao.aero/auth/callback');
/**
* Email settings.
*/
$config["mail_enabled"] = true;
$config["mail_from_name"] = 'IVAO Vatican booking system';
$config["mail_from_email"] = 'events@ivao.va';
$config["mail_smtp_server"] = 'mail.example.com';
$config["mail_smtp_port"] = 587;
$config["mail_smtp_auth"] = true;
$config["mail_smtp_secure"] = 'tls';
$config["mail_smtp_username"] = 'smtp@api.example.com';
$config["mail_smtp_password"] = 'ITSYOURPASSWORD';