Код |
---|
$arFields = Array( "USER_ID" => (!$USER->IsAuthorized()? $USER->GetID():false), "FORMAT" => ($FORMAT <> "html"? "text":"html"), "EMAIL" => $sub_Email, "RUB_ID" => array($sub_id), "ACTIVE" => "Y" ); //Including module... CModule::IncludeModule("subscribe"); //Creating class... $sub = new CSubscription; //Calling to sub procedure... $result = $sub->Add($arFields); |