]> git.bts.cx Git - cx.git/blob - public/index.php
allow html in body of posts
[cx.git] / public / index.php
1 <?php
2
3 /*
4  ,-----,--.   ,--.    ,-----. ,--.
5 '  .--./\  `.'  /     |  |) /_|  |,---. ,---.,--.   ,--.,--,--,--.--.,---.
6 |  |     .'    \      |  .-.  |  | .-. | .-. |  |.'.|  ' ,-.  |  .--| .-. :
7 '  '--'\/  .'.  \     |  '--' |  ' '-' ' '-' |   .'.   \ '-'  |  |  \   --.
8  `-----'--'   '--'    `------'`--'`---'.`-  /'--'   '--'`--`--`--'   `----'
9                                        `---'
10  */
11
12 define('CX_PHP_VERSION', '8.0.0');
13
14 if (version_compare(phpversion(), CX_PHP_VERSION) < 0) {
15     echo('Requires PHP version ' . CX_PHP_VERSION . ' or later');
16     exit;
17 }
18
19 $main_file = join(DIRECTORY_SEPARATOR, array(__DIR__, '..', 'cx', 'cx.php'));
20 $db_file = join(DIRECTORY_SEPARATOR, array(__DIR__, '..', 'db', 'btscx.db'));
21 $data_folder = join(DIRECTORY_SEPARATOR, array(__DIR__, '..', 'data'));
22 $public_data_folder = join(DIRECTORY_SEPARATOR, array(__DIR__, 'data'));
23 require_once($main_file);
24 cx($db_file, $data_folder, $public_data_folder);