2016-12-22 03:15:02 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
define("DIALOG_PROGRESS", "progress");
|
|
|
|
define("DIALOG_CONFIRM", "confirm");
|
|
|
|
define("DIALOG_WARNING", "warning");
|
|
|
|
define("DIALOG_MESSAGE", "message");
|
|
|
|
define("DIALOG_ERROR", "error");
|
|
|
|
define("DIALOG_OPENFILE", "openfile");
|
|
|
|
define("DIALOG_SAVEFILE", "savefile");
|
|
|
|
|
|
|
|
require_once __DIR__."/../vendor/autoload.php";
|
|
|
|
|
|
|
|
use VfxApply\Application;
|
2017-01-13 02:18:46 +01:00
|
|
|
|
|
|
|
// Find the actual root, follow links, and strip the bin part if local
|
|
|
|
if (!($script = dirname(@readlink($_SERVER['SCRIPT_NAME']))))
|
|
|
|
$script = dirname($_SERVER['SCRIPT_NAME']);
|
|
|
|
if (basename($script)=='bin')
|
|
|
|
$script = dirname($script);
|
2017-02-12 16:40:53 +01:00
|
|
|
$script = realpath($script);
|
2017-01-13 02:18:46 +01:00
|
|
|
|
|
|
|
define("APP_ROOT", $script);
|
|
|
|
|
2016-12-22 03:15:02 +01:00
|
|
|
$app = new Application();
|
2017-01-13 02:18:46 +01:00
|
|
|
$app->run();
|