Файл: controllers/notifier.php
Строк: 27
<?php
include('sms.class.php');
function send_mail($subject, $message)
{
if (SANTI_INFO_EMAIL)
{
$address = "Web-antivirus SANTI <alerts@santivi.com>";
$mes = "<table width=100%><tr><td><img src='http://santivi.com/Images/logo.png' align = left style='margin: 3px;'><p>".$message."</p></td></tr><tr><td><br><b>Интернет-антивирус <a href='http://santivi.com'>САНТИ</a></b><br></td></tr></table>";
$send = mail(SANTI_EMAIL, $subject, $mes,"Content-type:text/html; charset = utf-8rnFrom: $address");
return 1;
}
}
function send_sms($message)
{
if(SANTI_INFO_SMS)
{
$login = SANTI_AVISO_USER;
$password = SANTI_AVISO_PASSWORD;
$msg = array(
'Phone' => trim(SANTI_PHONE),
'Text' => $message
);
$sms = new SMSClass($login, $password);
$result = $sms->SendSMS(array($msg));
if ($result['Error'])
return 0;
else
return 1;
}
}
?>