1: <?php
2: /**
3: * user/member handlers
4: *
5: * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org)
6: * @license GNU GPL 2 (https://www.gnu.org/licenses/gpl-2.0.html)
7: * @author Taiwen Jiang <phppp@users.sourceforge.net>
8: * @since 1.00
9: * @package Frameworks
10: * @subpackage art
11: */
12: if (!defined('FRAMEWORKS_ART_FUNCTIONS_USER')):
13: define('FRAMEWORKS_ART_FUNCTIONS_USER', true);
14:
15: xoops_load('XoopsUserUtility');
16:
17: /**
18: * @param bool $asString
19: *
20: * @return mixed
21: */
22: function mod_getIP($asString = false)
23: {
24: $GLOBALS['xoopsLogger']->addDeprecated('Function ' . __FUNCTION__ . ' is deprecated, use XoopsUserUtility::getIP() instead');
25:
26: return XoopsUserUtility::getIP($asString);
27: }
28:
29: /**
30: * @param $uid
31: * @param bool $usereal
32: * @param bool $linked
33: *
34: * @return array
35: */
36: function &mod_getUnameFromIds($uid, $usereal = false, $linked = false)
37: {
38: $GLOBALS['xoopsLogger']->addDeprecated('Function ' . __FUNCTION__ . ' is deprecated, use XoopsUserUtility::getUnameFromIds() instead');
39: $ids = XoopsUserUtility::getUnameFromIds($uid, $usereal, $linked);
40:
41: return $ids;
42: }
43:
44: /**
45: * @param $uid
46: * @param int $usereal
47: * @param bool $linked
48: *
49: * @return string
50: */
51: function mod_getUnameFromId($uid, $usereal = 0, $linked = false)
52: {
53: $GLOBALS['xoopsLogger']->addDeprecated('Function ' . __FUNCTION__ . ' is deprecated, use XoopsUserUtility::getUnameFromId() instead');
54:
55: return XoopsUserUtility::getUnameFromId($uid, $usereal, $linked);
56: }
57:
58: endif;
59: