23 function skebbySend( $testo, $to, $user = NULL, $pasw = NULL, $from = NULL, $type =
'TI', $url =
'https://api.skebby.it/API/v1.0/REST/' ) {
30 $url .
'login?username=' . $user .
'&password=' . $pasw,
39 $auths = explode(
';', $auth );
50 logWrite(
'autenticazione su Skebby effettuata con successo: ' . $auth,
'skebby', LOG_NOTICE );
54 'returnCredits' =>
true,
57 'message_type' => $type,
63 'user_key' => $auths[0],
64 'Session_key' => $auths[1]
79 logWrite(
'esito invio: ' . print_r(
$result,
true ),
'skebby', LOG_NOTICE );
85 if(
$result[
'result'] ==
'OK' ) {
88 logWrite(
'fallito invio: ' . print_r(
$result,
true ),
'skebby', LOG_CRIT );
95 logWrite(
'errore di autenticazione su Skebby: ' . $auth,
'skebby', LOG_CRIT );
logWrite( $m, $f='site', $l=LOG_NOTICE, $d=DIRECTORY_LOG, $t=CURRENT_LOG_LEVEL, $s=SITE_STATUS)
scrive un messaggio nei log del sito