aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_jabber.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-02-22 19:32:00 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-02-22 19:32:00 +0000
commita8f6aafa43bd255ecd56a8bfb1b78a76e966f3f8 (patch)
tree1c34f1bf9f2254cfc4f9127e9ab0b2e19c71e72f /phpBB/includes/functions_jabber.php
parent97a8eb40139ddb299754a883508c9250ef544f36 (diff)
downloadforums-a8f6aafa43bd255ecd56a8bfb1b78a76e966f3f8.tar
forums-a8f6aafa43bd255ecd56a8bfb1b78a76e966f3f8.tar.gz
forums-a8f6aafa43bd255ecd56a8bfb1b78a76e966f3f8.tar.bz2
forums-a8f6aafa43bd255ecd56a8bfb1b78a76e966f3f8.tar.xz
forums-a8f6aafa43bd255ecd56a8bfb1b78a76e966f3f8.zip
small bugfix...
git-svn-id: file:///svn/phpbb/trunk@7035 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_jabber.php')
-rw-r--r--phpBB/includes/functions_jabber.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/phpBB/includes/functions_jabber.php b/phpBB/includes/functions_jabber.php
index b0a7e09c08..184a1f89a4 100644
--- a/phpBB/includes/functions_jabber.php
+++ b/phpBB/includes/functions_jabber.php
@@ -20,7 +20,7 @@
* last modified: 24.03.2004 13:01:53
*
* Modified by phpBB Development Team
-* version: v0.4.3a1
+* version: v0.4.3
*
* @package phpBB3
*/
@@ -59,6 +59,9 @@ class jabber
var $connector;
+ var $version;
+ var $show_version;
+
/**
* Constructor
*/
@@ -73,6 +76,9 @@ class jabber
$this->enable_logging = true;
$this->log_array = array();
+ $this->version = '1.0';
+ $this->show_version = false;
+
$this->packet_queue = array();
$this->iq_sleep_timer = $this->delay_disconnect = 1;
@@ -113,7 +119,7 @@ class jabber
if ($this->connector->open_socket($this->server, $this->port))
{
$this->send_packet("<?xml version='1.0' encoding='UTF-8' ?" . ">\n");
- $this->send_packet("<stream:stream to='{$this->server}' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='0.9'>\n");
+ $this->send_packet("<stream:stream to='{$this->server}' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'" . (($this->show_version) ? " version='{$this->version}'" : '') . ">\n");
sleep(2);
@@ -890,7 +896,7 @@ class jabber
socket_set_blocking($this->connector->active_socket, $meta['blocked']);
$this->send_packet("<?xml version='1.0' encoding='UTF-8' ?" . ">\n");
- $this->send_packet("<stream:stream to='{$this->server}' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>\n");
+ $this->send_packet("<stream:stream to='{$this->server}' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'" . (($this->show_version) ? " version='{$this->version}'" : '') . ">\n");
sleep(2);
if (!$this->_check_connected(true))