-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathrakit
More file actions
46 lines (38 loc) · 1.75 KB
/
rakit
File metadata and controls
46 lines (38 loc) · 1.75 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
#!/usr/bin/env php
<?php
// --------------------------------------------------------------
// Activate output buffering
// --------------------------------------------------------------
// ob_start();
// --------------------------------------------------------------
// Record the start timer (for benchmark)
// --------------------------------------------------------------
define('RAKIT_START', microtime(true));
// --------------------------------------------------------------
// Define some useful constants
// --------------------------------------------------------------
define('DS', DIRECTORY_SEPARATOR);
define('CRLF', "\r\n");
define('TAB', "\t");
define('CR', "\r");
define('LF', "\n");
// --------------------------------------------------------------
// Include the framework's path constants
// --------------------------------------------------------------
require __DIR__ . DS . 'paths.php';
// --------------------------------------------------------------
// Include the framework's initialization file
// --------------------------------------------------------------
require path('system') . 'init.php';
// --------------------------------------------------------------
// Include the framework's core file
// --------------------------------------------------------------
require path('system') . 'core.php';
// --------------------------------------------------------------
// Ensure the script is run via the console.
// --------------------------------------------------------------
is_cli() or exit('Please run this script from your console.');
// --------------------------------------------------------------
// Run the console application
// --------------------------------------------------------------
require path('system') . 'console' . DS . 'boot.php';