forked from YetiForceCompany/YetiForceCRM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfile.php
More file actions
24 lines (18 loc) · 625 Bytes
/
file.php
File metadata and controls
24 lines (18 loc) · 625 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/**
* Basic file to handle files
* @package YetiForce.Files
* @copyright YetiForce Sp. z o.o.
* @license YetiForce Public License 2.0 (licenses/License.html or yetiforce.com)
* @author Mariusz Krzaczkowski <m.krzaczkowski@yetiforce.com>
*/
define('ROOT_DIRECTORY', __DIR__ !== DIRECTORY_SEPARATOR ? __DIR__ : '');
require 'include/main/WebUI.php';
\App\Config::$requestMode = 'File';
try {
$webUI = new App\Main\File();
$webUI->process(App\Request::init());
} catch (Exception $e) {
\App\Log::error($e->getMessage() . ' => ' . $e->getFile() . ':' . $e->getLine());
header('HTTP/1.1 400 Bad Request');
}