n/oldblog
Archived
1
0
Fork 0
This repository has been archived on 2024-02-13. You can view files and clone it, but cannot push or open issues or pull requests.
oldblog/include/jabber.inc.php

25 lines
690 B
PHP
Raw Permalink Normal View History

2023-04-30 21:28:42 +02:00
<?php
require('class.jabber.php');
function sendviajabber($message);
$JABBER = new Jabber;
$JABBER->server = 'tourmentine.com';
$JABBER->port = 5222;
$JABBER->username = 'n';
$JABBER->password = 'gbzm@jaber';
$JABBER->resource = 'ClassJabberPHP';
$JABBER->Connect() or die('Could not connect!');
$JABBER->SendAuth() or die('Could not authenticate!');
$JABBER->SendPresence(NULL,NULL,'online');
// $JABBER->SendMessage('xxx@jabber.de.cw.net', 'chat', NULL, array( 'body' => 'Call from '.$agi['callerid'].' on '.$agi['dnid'] ));
$JABBER->SendMessage('n@tourmentine.com', 'chat', NULL, array( 'body' => $message ));
$JABBER->Disconnect();
fclose($in);
fclose($err);
?>