$site = "http://www.uchmag.ru";
$suffix = "?".$_SERVER['QUERY_STRING'];
function js_write($text)
{
$s = "";
if (!isset($_GET['php']))
$s = "document.write('";
$s .= $text;
if (!isset($_GET['php']))
$s .= "');";
return $s;
}
$arResult = array(
"NEWS" => array(),
"SITE" => SITE_ID,
"CNT" => Array("nPageSize"=>5),
);
if(CModule::IncludeModule("iblock"))
{
GLOBAL $site, $suffix;
if(strpos($data[1], 'http') === false)
$data[1] = $site.$data[1];
if(strpos($data[3], 'http') === false)
$data[3] = $site.$data[3];
$arFilter = Array(
"SITE_ID"=>$arResult["SITE"],
"IBLOCK_TYPE"=>"news",
"ACTIVE"=>"Y",
"ACTIVE_DATE"=>"Y",
">DATE_ACTIVE_FROM"=>date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,8,22,2011)),
);
$res = CIBlo |