From a0f0173d55a665c6b3eedf1141a2fa3891f78d4c Mon Sep 17 00:00:00 2001 From: temp Date: Thu, 1 May 2008 14:29:48 +0000 Subject: [PATCH] added a class prefix, refactored log-class, finished scopes for methods in xmlstream and xmpp git-svn-id: svn://netflint.net/xmpphp@30 ef36c318-a008-4979-b6e8-6b496270793b --- cli_longrun_example.php | 3 +-- sendmessage_example.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cli_longrun_example.php b/cli_longrun_example.php index d8bb158..ae5c741 100644 --- a/cli_longrun_example.php +++ b/cli_longrun_example.php @@ -4,8 +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('jabber.wentz.it', 5222, 'dev', 'd3vd3v', 'xmpphp', 'jabber.wentz.it', $printlog=true, $loglevel=XMPPHP_Log::LEVEL_VERBOSE); +$conn = new XMPPHP_XMPP('talk.google.com', 5222, 'user', 'password', 'xmpphp', 'gmail.com', $printlog=true, $loglevel=Logging::LEVEL_INFO); $conn->connect(); while(!$conn->isDisconnected()) { $payloads = $conn->processUntil(array('message', 'presence', 'end_stream', 'session_start')); diff --git a/sendmessage_example.php b/sendmessage_example.php index c1cfee0..ba10dd3 100644 --- a/sendmessage_example.php +++ b/sendmessage_example.php @@ -5,8 +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 XMPPHP_XMPP('jabber.wentz.it', 5222, 'dev', 'd3vd3v', 'xmpphp', 'jabber.wentz.it', $printlog=true, $loglevel=XMPPHP_Log::LEVEL_VERBOSE); +$conn = new XMPP('talk.google.com', 5222, 'username', 'password', 'xmpphp', 'gmail.com', $printlog=false, $loglevel=Logging::LEVEL_INFO); $conn->connect(); $conn->processUntil('session_start'); $conn->presence();