function SendFileWithLog($member_id, $file) { $arControllerLog = array('NAME' => 'SEND_FILE', 'CONTROLLER_MEMBER_ID' => $member_id, 'DESCRIPTION' => $command, 'STATUS' => 'Y'); $res = CControllerMember::SendFile(); if ($res === false) { $e = $GLOBALS['APPLICATION']->GetException(); $arControllerLog['DESCRIPTION'] = $e->GetString() . "\r\n" . $arControllerLog['DESCRIPTION']; $arControllerLog['STATUS'] = 'N'; } CControllerLog::Add($arControllerLog); return $res; }
public static function SendFileWithLog($member_id, $file) { /** @global CMain $APPLICATION */ global $APPLICATION; $arControllerLog = array('NAME' => 'SEND_FILE', 'CONTROLLER_MEMBER_ID' => $member_id, 'DESCRIPTION' => "sendfile", 'STATUS' => 'Y'); $res = CControllerMember::SendFile(); if ($res === false) { $e = $APPLICATION->GetException(); $arControllerLog['DESCRIPTION'] = $e->GetString() . "\n" . $arControllerLog['DESCRIPTION']; $arControllerLog['STATUS'] = 'N'; } CControllerLog::Add($arControllerLog); return $res; }