blob: a8b474e1c263c7b1fbcf2585e6c4ed9a864bd47f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
/**
* Implements EjabberdAuthBridge.
*/
class BridgeSMF2 extends EjabberdAuthBridge {
function isuser($username, $server) {
$query_where = 'member_name = {string:name}';
$query_where_params = array(
'name' => $username,
);
return 1 == count(smf_ssi('queryMembers', $query_where, $query_where_params, 1, 'id_member DESC', NULL));
}
function auth($username, $server, $password) {
return smf_ssi('checkPassword', $username, $password, TRUE);
}
}
|