Пример #1
0
    $imp = new Importer();
    $imp->run();
    exit(0);
}
//Test if LODSPeaKr is configured
if (!file_exists('settings.inc.php')) {
    echo 'Need to configure lodspeakr first. Please run "install.sh". Alternatively, you can <a href="import">import an existing application</a>';
    exit(0);
}
include_once 'common.inc.php';
//Debug output
$conf['logfile'] = null;
if ($conf['debug']) {
    include_once 'classes/Logging.php';
    if (isset($_GET['q']) && $_GET['q'] == 'logs') {
        Logging::init();
        exit(0);
    } else {
        $conf['logfile'] = Logging::createLogFile($_GET['q']);
        //error_reporting(E_ALL);
    }
} else {
    error_reporting(E_ERROR);
}
include_once 'classes/HTTPStatus.php';
include_once 'classes/Utils.php';
include_once 'classes/Queries.php';
include_once 'classes/Endpoint.php';
include_once 'classes/Convert.php';
$results = array();
$firstResults = array();