Created
February 16, 2016 16:04
-
-
Save chebanenko/f9fe7eb2ef63515a0900 to your computer and use it in GitHub Desktop.
notify
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (IsModuleInstalled("im") && CModule::IncludeModule("im")) | |
{ | |
$arMessageFields = array( | |
"TO_USER_ID" => 9, | |
"FROM_USER_ID" => 8, | |
"NOTIFY_TYPE" => IM_NOTIFY_FROM, | |
"NOTIFY_MODULE" => "blog", | |
"NOTIFY_TAG" => "", | |
"NOTIFY_MESSAGE" => 'FUCK IT ALL', | |
"NOTIFY_MESSAGE_OUT" => 'FUCK IT ALL' | |
); | |
$res = CIMNotify::Add($arMessageFields); | |
var_dump($res); | |
} | |
else | |
{ | |
echo "no module"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment