-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.php
executable file
·110 lines (83 loc) · 2.69 KB
/
config.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
/**
* SwiftyEdit default Configuration file
* this file will be replaced with every update
*
* you can expand/overwrite this config file
* by adding your own config.php to SE_CONTENT_DIR (/content/config.php)
*/
/* default Language */
$languagePack = "en";
$lang = array();
/* allowed image uploads at the backend */
$se_upload_img_types = array('gif','jpg','jpe','jpeg','png','ico','webp');
/* allowed file uploads at the backend */
$se_upload_file_types = array('pdf','doc','docx','ppt','pptx','xls','xlsx','mp3','mp4','m4a','wav','mpg','mov','avi','epub','ogg');
/* allowed uploads at the frontend */
$se_upload_frontend_types = array('jpg','jpeg','png');
/* page types */
$se_page_types = array('normal', 'register', 'profile', 'search', 'password', '404', 'display_post', 'display_product', 'display_event', 'imprint', 'privacy_policy', 'legal', 'checkout', 'orders');
/* define Folder structure */
const SE_ROOT = __DIR__ . DIRECTORY_SEPARATOR;
const SE_CONTENT = SE_ROOT . "content";
const SE_ACP = "acp";
/* database files if we use sqlite */
$se_db_content = SE_CONTENT . "/SQLite/content.sqlite3";
$se_db_posts = SE_CONTENT . "/SQLite/posts.sqlite3";
$se_db_user = SE_CONTENT . "/SQLite/user.sqlite3";
$se_db_index = SE_CONTENT . "/SQLite/index.sqlite3";
/**
* folders for uploaded content
* images and other files
*/
$img_path = "content/images";
$img_tmb_path = "content/images_tmb";
$files_path = "content/files";
/* deactivate the addons upload function */
$se_upload_addons = false;
$se_include_path = dirname($_SERVER['SCRIPT_NAME']);
if($se_include_path == "/") {
$se_include_path = "";
}
if($se_include_path != "") {
$se_include_path = "/$se_include_path";
$se_include_path = str_replace('//','/',$se_include_path);
}
define('SE_INCLUDE_PATH', $se_include_path);
/**
* $se_mode 0 = self-hosting
* 1 = self-hosting multisite
* 2 = multisite hosting provided
*/
$se_mode = 0;
/**
* $se_environment p = production
* d = development
*/
$se_environment = 'p';
/**
* limits
* only relevant if you offer multisite hosting
* limit the number of pages, snippets, posts ... that can be created
* empty or integer values
*/
$se_limit_pages = '';
$se_limit_snippets = '';
$se_limit_shortcodes = '';
$se_limit_posts = '';
$se_limit_products = '';
$se_limit_features = '';
$se_limit_events = '';
$se_limit_uploads = '';
$se_limit_uploads_dir = ''; // filesize in MB
$se_limit_inbox = '';
$se_limit_users = '';
$se_limit_groups = '';
$se_limit_categories = '';
$se_limit_labels = '';
if(is_file(SE_CONTENT . '/config.php')) {
include SE_CONTENT . '/config.php';
}
if(is_file(SE_CONTENT . '/config_smtp.php')) {
include SE_CONTENT . '/config_smtp.php';
}