switched to loglevel constants in examples.

git-svn-id: svn://netflint.net/xmpphp@26 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
temp 2008-04-28 22:08:02 +00:00
parent 6a45a12535
commit c395c7115b
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
error_reporting(E_ALL & E_STRICT); error_reporting(E_ALL & E_STRICT);
include("xmpp.php"); include("xmpp.php");
$conn = new XMPP('talk.google.com', 5222, 'user', 'password', 'xmpphp', 'gmail.com', $printlog=True, $loglevel=LOGGING_INFO); $conn = new XMPP('talk.google.com', 5222, 'user', 'password', 'xmpphp', 'gmail.com', $printlog=True, $loglevel=Logging::LOG_INFO);
$conn->connect(); $conn->connect();
while(!$conn->disconnected) { while(!$conn->disconnected) {
$payloads = $conn->processUntil(array('message', 'presence', 'end_stream', 'session_start')); $payloads = $conn->processUntil(array('message', 'presence', 'end_stream', 'session_start'));

View File

@ -4,7 +4,7 @@
error_reporting(E_ALL & E_STRICT); error_reporting(E_ALL & E_STRICT);
include("xmpp.php"); include("xmpp.php");
$conn = new XMPP('talk.google.com', 5222, 'username', 'password', 'xmpphp', 'gmail.com', $printlog=False, $loglevel=LOGGING_INFO); $conn = new XMPP('talk.google.com', 5222, 'username', 'password', 'xmpphp', 'gmail.com', $printlog=False, $loglevel=Logging::LOG_INFO);
$conn->connect(); $conn->connect();
$conn->processUntil('session_start'); $conn->processUntil('session_start');
$conn->message('someguy@someserver.net', 'This is a test message!'); $conn->message('someguy@someserver.net', 'This is a test message!');