-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinit.php
More file actions
27 lines (20 loc) · 663 Bytes
/
Copy pathinit.php
File metadata and controls
27 lines (20 loc) · 663 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
<?php
if ( ! posix_isatty(STDOUT)) {
trigger_error('wrong terminal');
exit;
}
function my_error_handler( $errno, $errstr, $errfile, $errline )
{
$msg = 'ERROR #'.$errno.': '.$errstr.'(FILE:'.$errfile.',LINE:'.$errline.')' . PHP_EOL;
file_put_contents(__DIR__ . '/error.log', $msg, FILE_APPEND);
}
set_error_handler('my_error_handler');
require_once __DIR__ . '/App/Conf.php';
require_once __DIR__ . '/App/FS.php';
require __DIR__ . '/Lib/Ncurses.php';
require __DIR__ . '/Lib/Cursor.php';
require __DIR__ . '/Lib/Window.php';
require __DIR__ . '/Lib/Listbox.php';
require_once __DIR__ . '/App/Main.php';
$main = new Main();
$main->start();