mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
- 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
This commit is contained in:
@@ -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";
|
||||
|
||||
|
Reference in New Issue
Block a user