File: /www/exchange0old/exchange/admin/cron/update_bank_adjustments.php
<?php
/**
* Created by PhpStorm.
* User: Admin
* Date: 05.12.2018
* Time: 12:00
*/
if (php_sapi_name() != 'cli') {
// exit();
}
$folders = explode(DIRECTORY_SEPARATOR, pathinfo(__FILE__, PATHINFO_DIRNAME));
array_pop($folders);
array_pop($folders);
include(implode(DIRECTORY_SEPARATOR, $folders) . '/Bin/init.php');
require_once(ROOT_FOLDER . 'Bin/Security.php');
include(ROOT_FOLDER . '/Bin/constants.php');
chdir(ROOT_FOLDER);
include_once(ROOT_FOLDER . 'admin/cron/trading_platform_reports_v2.php');
$date = new DateTime(date('Y-m-d', strtotime(array_get(getopt('d:'), 'd', 'today'))));
if (!empty($_REQUEST['date'])) {
$date = new DateTime($_REQUEST['date']);
}
Platform_reports::getBankAdjustments($date);