mirror of
https://github.com/retailcrm/legacy.git
synced 2024-11-23 05:46:03 +03:00
27 lines
522 B
PHP
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();
|
|
}
|