| 1 |
<?php |
<?php |
| 2 |
// $Id: xmpp_server.module,v 1.4 2008/09/25 08:23:37 t0talmeltd0wn Exp $ |
// $Id: xmpp_server.module,v 1.5 2008/09/25 21:55:22 t0talmeltd0wn Exp $ |
| 3 |
|
|
| 4 |
$xmpp_server_xml_router = array(); |
$xmpp_server_xml_router = array(); |
| 5 |
|
|
| 162 |
if($rules['protocol'] && $rules['protocol'] != $client->protocol) { |
if($rules['protocol'] && $rules['protocol'] != $client->protocol) { |
| 163 |
return FALSE; |
return FALSE; |
| 164 |
} |
} |
| 165 |
|
|
| 166 |
|
if ($rules['permissions']) { |
| 167 |
|
foreach ($rules['permissions'] as $perm) { |
| 168 |
|
$acct->uid = $session['uid']; |
| 169 |
|
if (!user_access($perm, $acct, TRUE)) { |
| 170 |
|
return false; |
| 171 |
|
} |
| 172 |
|
} |
| 173 |
|
} |
| 174 |
} |
} |
| 175 |
|
|
| 176 |
//If our tag doesn't match the node's tag, return false. |
//If our tag doesn't match the node's tag, return false. |