legacy/retailcrm/app.php
2015-11-23 09:31:55 -05:00

27 lines
522 B
PHP

<?php
if (
function_exists('date_default_timezone_set')
&&
function_exists('date_default_timezone_get')
) {
date_default_timezone_set(@date_default_timezone_get());
}
require_once 'bootstrap.php';
$options = getopt('dluce:m:p:r:h:');
if (!$options || $options == -1) {
$options = DataHelper::getOpt();
}
if (isset($options['e'])) {
$command = new Command($options);
$command->run();
} elseif (!$options) {
CommandHelper::notWorkGetOptNotice();
} else {
CommandHelper::runHelp();
}