-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.php
42 lines (34 loc) · 1.76 KB
/
config.example.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
<?php
namespace{
@date_default_timezone_set(@date_default_timezone_get()); // this is just to get rid of pesky errors
header('Content-Type: text/plain');
require_once('libs/load.php');
define('libAuroraTemplateNavigationNoStrictID', true);
use Aurora\Addon\WebAPI;
use Aurora\Addon\WebAPI\Configs;
use Aurora\Addon\MapAPI;
$configs = Configs::i();
$configs[] = WebUI::r(
'http://localhost:8007/WEBUI',
'Username'
'API Access Token'
);
// $configs[$configs->count() - 1]->attachAPI(MapAPI::r(
// 'http://localhost:8007/mapapi'
// ));
Globals::i()->baseURI = 'http://localhost/';
Globals::i()->linkStyle = 'query'; // mod_rewrite or query
Globals::i()->registrationPostalRequired = false; // TRUE if postal address info is required for registration, FALSE otherwise.
Globals::i()->registrationActivationRequired = false; // TRUE if activation is required for registration, FALSE otherwise. NOTE: we're not specifying activation method here for a reason.
Globals::i()->registrationEmailRequired = false; // TRUE if emails are required, FALSE if they're optional.
Globals::i()->regexUsername = '^[A-z]{1}[A-z0-9]*\ [A-z]{1}[A-z0-9]*$';
Globals::i()->regexPassword = '^.{8}.*$';
// Globals::i()->DBLink = new libAurora\DataManager\MySQLDataLoader('', 'WebUIGPL', false, true, '5.5');
// Globals::i()->Nonces = libAurora\Nonces::r(Globals::i()->DBLink);
//! In order to use the reCAPTCHA lib, you must get public and private keys from https://www.google.com/recaptcha/admin/create
// Globals::i()->recaptcha = true;
// Globals::i()->recaptchaPublicKey = 'foo' ;
// Globals::i()->recaptchaPrivateKey = 'bar' ;
// Globals::i()->recaptchaEnableJavaScript = false ; // set to TRUE to enable the prettier but JavaScript-powered reCAPTCHA input
}
?>