-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.example.php
32 lines (32 loc) · 1.46 KB
/
config.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
<?php
require 'vendor/phpmailer/src/Exception.php';
require 'vendor/phpmailer/src/PHPMailer.php';
require 'vendor/phpmailer/src/SMTP.php';
class Config {
public function __construct() {
/* Database Configuration */
$this->db_host = 'localhost';
$this->db_user = 'X';
$this->db_pass = 'X';
$this->db_name = 'X';
/* System Configuration */
$this->systemURL = 'https://X/'; //example https://kb.example.com/ or https://example.com/kb/
$this->updateCheck = 'yes'; //change this to no if you wish to disable the update check.
/* Email Configuration */
$this->mailHost = 'X'; //Set the SMTP server to send through
$this->mailSMTPAuth = true; //Enable SMTP authentication
$this->mailUsername = 'X'; //SMTP username
$this->mailPassword = 'X'; //SMTP password
$this->mailSMTPSecure = 'tls'; //Enable implicit TLS encryption
$this->mailPort = 587; //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`
$this->mailFrom = 'noreply@X';
}
}
require_once('classes/Database.php');
require_once('classes/Search.php');
require_once('classes/Email.php');
require_once('classes/Article.php');
require_once('classes/Category.php');
require_once('classes/Setting.php');
require_once('classes/User.php');
?>