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();