diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2005-04-10 18:07:12 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2005-04-10 18:07:12 +0000 |
commit | 557d09bb72f7e9848b6fc50ed4e2ba651b89e743 (patch) | |
tree | 9db78285f2e35af8f70dfbb240712164b45bcfd2 /phpBB/includes/functions_jabber.php | |
parent | c9478353171267a3ebc5d87b43d759d22684b21e (diff) | |
download | forums-557d09bb72f7e9848b6fc50ed4e2ba651b89e743.tar forums-557d09bb72f7e9848b6fc50ed4e2ba651b89e743.tar.gz forums-557d09bb72f7e9848b6fc50ed4e2ba651b89e743.tar.bz2 forums-557d09bb72f7e9848b6fc50ed4e2ba651b89e743.tar.xz forums-557d09bb72f7e9848b6fc50ed4e2ba651b89e743.zip |
- added updated coding guidelines
- introduced is_registered and is_bot flags for correct determinition of guest/registered/bot users
- changed bot code to act on useragent || ip
git-svn-id: file:///svn/phpbb/trunk@5117 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_jabber.php')
-rw-r--r-- | phpBB/includes/functions_jabber.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions_jabber.php b/phpBB/includes/functions_jabber.php index a679b1508a..f1e7b130f0 100644 --- a/phpBB/includes/functions_jabber.php +++ b/phpBB/includes/functions_jabber.php @@ -389,7 +389,7 @@ class jabber { $temp = $this->_split_incoming($incoming); - for ($a = 0; $a < count($temp); $a++) + for ($a = 0, $size = sizeof($temp); $a < $size; $a++) { $this->packet_queue[] = $this->xmlize($temp[$a]); } @@ -957,7 +957,7 @@ class make_xml extends jabber $temp = @explode('/', $string); - for ($a = 0; $a < count($temp); $a++) + for ($a = 0, $size = sizeof($temp); $a < $size; $a++) { $temp[$a] = preg_replace('#^[@]{1}([a-z0-9_]*)$#i', '["@"]["\1"]', $temp[$a]); $temp[$a] = preg_replace('#^([a-z0-9_]*)\(([0-9]*)\)$/i', '["\1"][\2]', $temp[$a]); @@ -1001,7 +1001,7 @@ class make_xml extends jabber } elseif (is_array($value)) { - for ($a = 0; $a < count($value); $a++) + for ($a = 0, $size = sizeof($value); $a < $size; $a++) { $text .= "<$key"; |