Exemplo n.º 1
0
<?
function logArray()
{
	$arArgs = func_get_args();
	$strResult = '';
	foreach ($arArgs as $arArg) {
		$strResult .= "\n\n" . print_r($arArg, true);
	}
	if (!defined('LOG_FILENAME')) {
		define('LOG_FILENAME', $_SERVER['DOCUMENT_ROOT'] . '/bitrix/log.txt');
	}
	AddMessage2Log($strResult, 'logArray -> ');
}

require_once 'include/helper/EnvironmentHelper.php';
include_once sprintf('include/config/%s', EnvironmentHelper::getConfigInitializerFileNameForSite(SITE_ID));

include(dirname(__FILE__) . '/func.php');
include(dirname(__FILE__) . '/include/helper/StringHelper.php');
include(dirname(__FILE__) . '/include/helper/IBlockHelper.php');
include(dirname(__FILE__) . '/include/helper/FormHelper.php');