quiqqer.php 472 Bytes
Newer Older
1 2 3 4 5
<?php

/**
 * This file contains the quiqqer access for the api, cron and console
 */
6
if (!\defined('CMS_DIR')) {
7 8 9
    exit;
}

10 11
\define('QUIQQER_SYSTEM', true);
require \dirname(\dirname(\dirname(__FILE__))).'/header.php';
12

13
// no console
14
if (\php_sapi_name() != 'cli') {
15 16 17
    exit;
}

18
$conf = ETC_DIR.'conf.ini.php';
19

20
if (!\file_exists($conf)) {
21 22 23 24
    exit(1);
}

// Console aufbauen
25
\define('QUIQQER_CONSOLE', true);
26

27
$Console = new \QUI\System\Console();
28
$Console->start();