<?
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
define("STOP_STATISTICS", true);
define("NO_KEEP_STATISTIC", true);
define("NO_AGENT_STATISTIC", true);

function __AddWPButton()
{
if($GLOBALS["USER"]->IsAdmin())
$GLOBALS["APPLICATION"]->AddPanelButton(array(
"HREF"=>"/bitrix/admin/wizard_install.php?lang=ru&wizardName=bitrix:government&".bitrix_sessid_get(),
"ID"=>"portal_wizard",
"SRC" => "/bitrix/images/edit.png",
"ALT"=>"Запустить мастер смены дизайна и настройки cайта медицинской организации",
"TEXT"=>"Мастер <br> настройки",
"MAIN_SORT"=>"325",
"SORT"=>20,
'TYPE' => 'BIG'
));
}

// чем выше установен уровень отладки, тем больше информации в логе
define("LOG_LEVEL_RANGE",0);



if (LOG_LEVEL_RANGE>0) {
$dt = getdate();
define("LOG_FILENAME", $_SERVER["DOCUMENT_ROOT"]."/".
sprintf("%4d-%02d-%02d.txt",$dt["year"],$dt["mon"],$dt["mday"]));
}

function myDbgLog($msg,$log_level = 5) {
if ($log_level<LOG_LEVEL_RANGE) {
$strFunctionStack = "";
if (function_exists("debug_backtrace"))
{
$arBacktrace = debug_backtrace();
$strFunctionStack = "called from:\n";
$iterationsCount = min(count($arBacktrace), 4);
for ($i = 1; $i < $iterationsCount; $i++)
{
if (strlen($strFunctionStack)>0)
{
$strFunctionStack .= "\n";
}
if (strlen($arBacktrace[$i]["class"])>0)
{
$strFunctionStack .= $arBacktrace[$i]["class"]."::";
}
$strFunctionStack .= $arBacktrace[$i]["function"]."\n";
$strFunctionStack .= " in file: ".$arBacktrace[$i]["file"]."\n";
$strFunctionStack .= " at line: ".$arBacktrace[$i]["line"]."\n";
}
}
AddMessage2Log(
"*** Log level: ".$log_level."\n"
.$msg."\n"
.$strFunctionStack
);
}
}

function showCounter()
{
global $USER;
$arGroups = $USER->GetUserGroupArray();
$filter = Array
(
    "STRING_ID" => "PORTAL_ADMINISTRATION",    
);
$edit=false;
$rsGroups = CGroup::GetList(($by="c_sort"), ($order="desc"), $filter); // выбираем группы
if($arGropusVio=$rsGroups->GetNext()) 
{
if(in_array($arGropusVio['ID'],$arGroups))
$edit=true;
}
if(in_array(1,$arGroups))
$edit=true;
return $edit;
}

/*function getIcons($extention, $returnClass)
{
if($returnClass)
$arrIcons=array(
"doc"=>"icdoc",
"docx"=>"icdoc",
"ppt"=>"icppt",
"pptx"=>"icppt",
"xls"=>"icxls",
"xlsx"=>"icxls",
"rtf"=>"icrtf",
"zip"=>"iczip",
"rar"=>"iczip",
"gz"=>"iczip",
"tar"=>"iczip",
"pdf"=>"icpdf",
);
else
$arrIcons=array(
"doc"=>"/images/icons/icdoc.gif",
"docx"=>"/images/icons/icdoc.gif",
"ppt"=>"/images/icons/icppt.gif",
"pptx"=>"/images/icons/icppt.gif",
"xls"=>"/images/icons/icxls.gif",
"xlsx"=>"/images/icons/icxls.gif",
"rtf"=>"/images/icons/icrtf.gif",
"zip"=>"/images/icons/iczip.gif",
"rar"=>"/images/icons/iczip.gif",
"gz"=>"/images/icons/iczip.gif",
"tar"=>"/images/icons/iczip.gif",
"pdf"=>"/images/icons/icpdf.gif",
);
if($arrIcons[$extention])
return $arrIcons[$extention];
elseif($returnClass)
return "icundef";
else
return "/images/icons/icundef.gif";
}*/
?>

include_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/wsrubi.smtp/classes/general/wsrubismtp.php");


Fatal error: Call to a member function CanDoOperation() on null in /home/bitrix/www/bitrix/modules/main/include/epilog_after.php on line 15