making wefra fully customisable by external addons (cont.)

This commit is contained in:
David Drapeau 2020-11-26 14:14:58 +01:00
parent 29dc1043cf
commit 8af6cbec61
3 changed files with 1186 additions and 3 deletions

1177
install/install-v1.0.0.sql Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,10 @@
<?php <?php
interface InterfaceConfig { interface InterfaceConfig {
//URLs //URLs & paths kernel
const URL_ROOT = "http://localhost/wefra/"; const PATH_ROOT = "/var/www/html/wefra/";
const URL_ROOT = "/wefra/";
const URL_SCRIPT = "http://localhost/wefra/scripts/"; const URL_SCRIPT = "http://localhost/wefra/scripts/";
// URLs & paths customs
const PATH_CUSTOM = "/var/www/customs/wefra/"; // <== CONFIG the path to your custom directory
} }

View File

@ -1,8 +1,10 @@
var urlRoot = "http://localhost/wefra/"; var urlRoot = "/wefra/";
// needed for AJAX calls within D3JS
var config_requestArguments = { var config_requestArguments = {
method: 'POST', method: 'POST',
mode: "same-origin", mode: "same-origin",
credentials: "same-origin", credentials: "same-origin",
headers: new Headers(), headers: new Headers(),
}; };