-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.php
46 lines (39 loc) · 1.14 KB
/
start.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
<?php
/**
*
* @name Start
* @abstract Starting point of application
* @author Rohan Sakhale
* @copyright saiashirwad.com
* @since WillingTree v1
*
*/
/**
* Define Constants that can be used globally in entire application
*/
if(!defined('DS')){
define('DS', DIRECTORY_SEPARATOR);
}
if(!defined('SAI_MAILBANDYA_PATH')){
define('SAI_MAILBANDYA_PATH', __DIR__ . DS);
}
header("Developed-By: Sai Ashirwad Informatia");
header("X-Powered-By: Sai Ashirwad Informatia");
header("Server: Sai Ashirwad Informatia Private Server");
// Tell PHP that we're using UTF-8 strings until the end of the script
mb_internal_encoding('UTF-8');
// Tell PHP that we'll be outputting UTF-8 to the browser
mb_http_output('UTF-8');
/**
* Turn on output buffering with the gzhandler
* This will help send compressed data from server to client
* Note: `zlib` module is required to run gzhandler
*/
ini_set("zlib.output_compression", "On");
/*
* if (function_exists('ob_start')) { ob_start('ob_gzhandler'); }
*/
if (file_exists('vendor' . DS . 'autoload.php')) {
require_once 'vendor/autoload.php';
}
require_once 'src/Autoload.php';