-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.php.default
More file actions
52 lines (45 loc) · 1.99 KB
/
config.php.default
File metadata and controls
52 lines (45 loc) · 1.99 KB
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
<?php
namespace WorldlangDict;
define('WL_CODE_SHORT', 'wld');
define('WL_CODE_FULL', 'art-x-worldlang');
define('OFFICIAL_SOURCE_NATLANGS', array('English', 'Elvish', 'Klingon'));
/* App config */
$config->siteUri = 'http://test.globasa.net/';
$config->siteName = 'Worldlang Dictionary';
$config->custom_id = 'default'; // the ID for customizations of CSS and views (recommend slugified worldlang name)
$config->setWorldlang('wld');
$config->setLang('eng', 'eng');
$config->worldlang_name = 'Worldlang';
$config->site_logo_url = 'https://cdn.globasa.net/graphics/flower/globasa-flower.svg';
$config->setWorldlang('wld');
$config->setUserLangs(['eng'=>'English','spa'=>'español','epo'=>'Esperanto']);
$config->setTemplate('w3css', 'templates');
$config->grammar_url_template = "https://example.com/%s/url";
$config->grammar_notes_url_template = "https://example.com/%s/url"; /* App adds `/`, page slug, `#`, anchor name */
/* API Config */
$config->api2Path = '/home/user/path/data/';
$config->i18nFile = $config->api2Path.'i18n.yaml';
$config->stats_location = $config->api2Path.'stats.yaml';
$config->tag_location = $config->api2Path.'tags.yaml';
$config->basic_location = $config->api2Path.'basic_';
$config->index_location = $config->api2Path.'index.yaml';
$config->min_location = $config->api2Path.'min_';
$config->search_terms_location = $config->api2Path.'search_terms_';
$config->examples_location = $config->api2Path.'examples/';
/* DB Config */
$config->db_user = 'user';
$config->db_pass = 'password';
$config->db_database = 'db';
$config->db_dsn = 'mysql:host=localhost;dbname=db';
$config->db_prefix = '';
/* Load app data */
$config->trans = yaml_parse_file($config->i18nFile);
$config->maintenance_message = false;
$config->maintenance_message = "Data file update in progress. There may be some glitches over the next 10 minutes.";
// Debug mode
if (false) {
$config->debugging = true;
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
}