five

This the second topic. The first one written with the new topic form

收藏
dev.apboard.de2025-03-25 收录
下载链接:
https://dev.apboard.de/topic/view/2/
下载链接
链接失效反馈
官方服务:
资源简介:
Okay, what to say? Lets see, if that works. Maybe some testing formattings here?? Also some code snippet? /** * Gets all available information of user * * @param int $userid The ID of the user * @since 3.0.0 * @version 0.9 * @access private * @return array|bool * @author Christin Löhner <christin@apboard.de> * @copyright 1999 - 2023 by Christin Löhner <christin@apboard.de> * @license GNU General Public License v3 */ function apb_GetUserInfo(int $userid) { if ((int)$userid <= 0) return false; $query = "SELECT * FROM `" . $GLOBALS['CONFIG']['db_tableprepend'] . "user` WHERE `id` = " . $userid . ""; $user = $GLOBALS['db']->unbuffered_query_first($query); if (trim($user['profilepic']) == "") { $user['profilepic'] = $GLOBALS['apb_style_url'] . '/images/noProfilePic.png'; } else { $user['profilepic'] = $GLOBALS['apb_uploads_url'] . "/" . $user['userhash'] . '/' . $user['profilepic']; } $user['profilelink'] = $GLOBALS['apb_AbsoluteRootUrl'] . "/user/" . $user['id']; return $user; }

何以为言?且观其成效。或许可在此处添加一些测试格式?亦或是一些代码片段? /** * 获取用户所有可用信息 * * @param int $userid 用户ID * @since 3.0.0 * @version 0.9 * @access 私有 * @return array|bool * @author 克里斯汀·洛恩纳(Christin Löhner)<christin@apboard.de> * @copyright 1999 - 2023 由克里斯汀·洛恩纳(Christin Löhner)<christin@apboard.de> 所有版权 * @license GNU通用公共许可证v3 */ function apb_GetUserInfo(int $userid) { if ((int)$userid <= 0) return false; $query = "SELECT * FROM `" . $GLOBALS['CONFIG']['db_tableprepend'] . "user` WHERE `id` = " . $userid . "
提供机构:
dev.apboard.de
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作