PHP Classes

File: htdocs/Frameworks/art/functions.user.php

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/Frameworks/art/functions.user.php   Download  
File: htdocs/Frameworks/art/functions.user.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change: Merge pull request #1589 from mambax7/feature/session_for_PHP8.4

fix for https://github.com/XOOPS/XoopsCore25/issues/1588
copyright update
standardization on addDeprecated()
Merge branch 'feature/php8_templates' of https://github.com/mambax7/XoopsCore25 into feature/php8_templates

# Conflicts:
# htdocs/themes/xswatch4/modules/publisher/publisher_item.tpl
Merge xswatch4
Date: 1 month ago
Size: 1,737 bytes
 

Contents

Class file image Download
<?php
/**
 * user/member handlers
 *
 * @copyright (c) 2000-2025 XOOPS Project (https://xoops.org)
 * @license GNU GPL 2 (https://www.gnu.org/licenses/gpl-2.0.html)
 * @author Taiwen Jiang <phppp@users.sourceforge.net>
 * @since 1.00
 * @package Frameworks
 * @subpackage art
 */
if (!defined('FRAMEWORKS_ART_FUNCTIONS_USER')):
   
define('FRAMEWORKS_ART_FUNCTIONS_USER', true);

   
xoops_load('XoopsUserUtility');

   
/**
     * @param bool $asString
     *
     * @return mixed
     * @deprecated
     */
   
function mod_getIP($asString = false)
    {
       
$GLOBALS['xoopsLogger']->addDeprecated('Function ' . __FUNCTION__ . ' is deprecated, use XoopsUserUtility::getIP() instead');

        return
XoopsUserUtility::getIP($asString);
    }

   
/**
     * @param $uid
     * @param bool $usereal
     * @param bool $linked
     *
     * @return array
     * @deprecated
     */
   
function &mod_getUnameFromIds($uid, $usereal = false, $linked = false)
    {
       
$GLOBALS['xoopsLogger']->addDeprecated('Function ' . __FUNCTION__ . ' is deprecated, use XoopsUserUtility::getUnameFromIds() instead');
       
$ids = XoopsUserUtility::getUnameFromIds($uid, $usereal, $linked);

        return
$ids;
    }

   
/**
     * @param $uid
     * @param int $usereal
     * @param bool $linked
     *
     * @return string
     * @deprecated
     */
   
function mod_getUnameFromId($uid, $usereal = 0, $linked = false)
    {
       
$GLOBALS['xoopsLogger']->addDeprecated('Function ' . __FUNCTION__ . ' is deprecated, use XoopsUserUtility::getUnameFromId() instead');

        return
XoopsUserUtility::getUnameFromId($uid, $usereal, $linked);
    }

endif;