fixed changed log constants in examples

git-svn-id: svn://netflint.net/xmpphp@32 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
temp 2008-05-05 18:34:23 +00:00
parent 99f91b0e17
commit 521d21d414
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
error_reporting(E_ALL & E_STRICT);
include("XMPPHP/XMPP.php");
$conn = new XMPPHP_XMPP('talk.google.com', 5222, 'user', 'password', 'xmpphp', 'gmail.com', $printlog=true, $loglevel=Logging::LEVEL_INFO);
$conn = new XMPPHP_XMPP('talk.google.com', 5222, 'user', 'password', 'xmpphp', 'gmail.com', $printlog=true, $loglevel=XMPPHP_Log::LEVEL_INFO);
$conn->connect();
while(!$conn->isDisconnected()) {
$payloads = $conn->processUntil(array('message', 'presence', 'end_stream', 'session_start'));

View File

@ -5,7 +5,7 @@ error_reporting(E_ALL & E_STRICT);
include("XMPPHP/XMPP.php");
$conn = new XMPP('talk.google.com', 5222, 'username', 'password', 'xmpphp', 'gmail.com', $printlog=false, $loglevel=Logging::LEVEL_INFO);
$conn = new XMPP('talk.google.com', 5222, 'username', 'password', 'xmpphp', 'gmail.com', $printlog=false, $loglevel=XMPPHP_Log::LEVEL_INFO);
$conn->connect();
$conn->processUntil('session_start');
$conn->presence();