profiles.php
782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: profiles.php 35024 2014-10-14 07:43:43Z nemohou $
*/
if (!defined('IN_MOBILE_API')) {
exit('Access Denied');
}
include_once 'misc.php';
class mobile_api {
function common() {
global $_G;
$uids = explode(',', $_GET['uids']);
if(!$uids) {
mobile_core::result(mobile_core::variable(array()));
}
$profiles = C::t('common_member')->fetch_all_username_by_uid($uids);
$return = array();
foreach($uids as $uid) {
$return[] = array('uid' => $uid, 'username' => $profiles[$uid]);
}
mobile_core::result(mobile_core::variable(array('profiles' => $return)));
}
function output() {
}
}
?>