mirror of
https://github.com/retailcrm/legacy.git
synced 2024-11-29 00:36:02 +03:00
30 lines
577 B
PHP
30 lines
577 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';
|
|
|
|
$shortopts = 'dluce:m:p:r:h:';
|
|
|
|
$options = getopt($shortopts);
|
|
|
|
if (!$options || $options == -1) {
|
|
$opt = new OptHelper($shortopts);
|
|
$options = $opt->get();
|
|
}
|
|
|
|
if (isset($options['e'])) {
|
|
$command = new Command($options);
|
|
$command->run();
|
|
} elseif (!$options) {
|
|
CommandHelper::notWorkGetOptNotice();
|
|
} else {
|
|
CommandHelper::runHelp();
|
|
}
|