-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnf.php
More file actions
32 lines (28 loc) · 820 Bytes
/
nf.php
File metadata and controls
32 lines (28 loc) · 820 Bytes
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
<?php
// Runtime paths to framework and content
$nf_dir = __DIR__;
$nf_project_dir = dirname($_SERVER['DOCUMENT_ROOT']);
$nf_uri = '';
$nf_uri_original = '';
$nf_uri_fallback = false;
// Initialize the autoloader early
include('functions/autoloader.php');
spl_autoload_register('nf_autoload');
// Include dependencies
include('functions/define.php');
include('functions/config.php');
include('functions/begin.php');
include('functions/error.php');
include('functions/routing.php');
include('functions/hook.php');
include('functions/i18n.php');
include('functions/db.php');
include('functions/cache.php');
function nf_begin($options = [], $options_deprecated = [])
{
// Small compatibility fix for every older Nin site
if (is_string($options)) {
$options = $options_deprecated;
}
nf_begin_internal($options);
}