This repository was archived by the owner on Jan 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathconfig.php
executable file
·78 lines (55 loc) · 1.89 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
<?php
/**
* flatCore 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 FC_CONTENT_DIR (/content/config.php)
* but make sure you do not destroy the folder structure
*/
/* Default Language -> de|en */
$languagePack = "de";
$lang = array();
/* mod_rewrite -> off|permalink */
$fc_mod_rewrite = "permalink";
/* time offset for rss feeds in seconds */
$fc_rss_time_offset = '1800';
/* allow image uploads in acp */
$fc_upload_img_types = array('gif','jpg','jpe','jpeg','png','ico','webp');
/* allow file uploads in acp */
$fc_upload_file_types = array('pdf','doc','docx','ppt','pptx','xls','xlsx','mp3','mp4','m4a','wav','mpg','mov','avi','epub','ogg');
/* define Folder structure */
define('FC_CORE_DIR', dirname(__FILE__) . DIRECTORY_SEPARATOR);
define('FC_CONTENT_DIR', FC_CORE_DIR."content");
define('FC_ACP_DIR', "acp");
/* Database Files */
$fc_db_content = FC_CONTENT_DIR . "/SQLite/content.sqlite3";
$fc_db_posts = FC_CONTENT_DIR . "/SQLite/posts.sqlite3";
$fc_db_user = FC_CONTENT_DIR . "/SQLite/user.sqlite3";
$fc_db_stats = FC_CONTENT_DIR . "/SQLite/flatTracker.sqlite3";
$fc_db_index = FC_CONTENT_DIR . "/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 */
$fc_upload_addons = false;
$fc_inc_dir = dirname($_SERVER['SCRIPT_NAME']);
if($fc_inc_dir == "/") {
$fc_inc_dir = "";
}
if($fc_inc_dir != "") {
$fc_inc_dir = "/$fc_inc_dir";
$fc_inc_dir = str_replace('//','/',$fc_inc_dir);
}
define('FC_INC_DIR', $fc_inc_dir);
if(is_file(FC_CONTENT_DIR . '/config.php')){
include FC_CONTENT_DIR . '/config.php';
}
if(is_file(FC_CONTENT_DIR . '/config_smtp.php')){
include FC_CONTENT_DIR . '/config_smtp.php';
}
?>