-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
43 lines (23 loc) · 1.43 KB
/
index.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
<?php
DEFINE('ROOT' ,dirname(__FILE__) ); // Root directory of site
DEFINE('URLFORREPO', 'https://github.com/CommonAccord/Cmacc-Org'); // The repo home
DEFINE('LANDING_MD', 'S/About/Landing3.md'); // The website home moved because some bot keeps overwriting Landing.md
DEFINE('SOURCE_TAB_MESSAGE', 'Source'); // Tab
DEFINE('EDIT_TAB_MESSAGE', 'Edit'); // Tab
DEFINE('COMPLETE_TAB_MESSAGE', 'Missing'); // Tab
DEFINE('IPLD_TAB_MESSAGE', 'IPLD'); // Tab
DEFINE('JAW_TAB_MESSAGE', 'JAW'); // Tab
DEFINE('DOC_TAB_MESSAGE', 'Document'); // Tab
DEFINE('PRINT_TAB_MESSAGE', 'Print'); // Tab
DEFINE('LIB_PATH', ROOT . '/vendor/cmacc-app'); // Create global variable to our library
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . LIB_PATH . DIRECTORY_SEPARATOR); // Include it in PHP include/require search
DEFINE('ASSETS_PATH', 'vendor/png'); // Create global variable to our css and js assets
// Note - Adjust for whether the repo is at the Site root /Doc/ or not.
// URLFORREPO . "/blob/main/Doc/"
// URLFORDOCSINREPOOFFSET 0
DEFINE('URLFORDOCSINREPO', URLFORREPO . "/blob/master/Doc/"); // Docs in the repo
DEFINE('URLFORDOCSINREPOOFFSET' , 0);
DEFINE('TEXT_EDIT_WINDOW_SIZE', 'cols=120 rows=30'); //Sets the size of the text edit window in both edit.php and openedit.php
DEFINE('TEXT_EDIT_AREA_STYLE', 'font-size: 16px; padding:10px;'); //Sets the font size in both edit.php and openedit.php
include("cmacc_helpers.php");
?>