Source for file oldfuncs.php
Documentation is available at oldfuncs.php
* Zikula Application Framework
* @copyright (c) 2001, Zikula Development Team
* @link http://www.zikula.org
* @version $Id: oldfuncs.php 24342 2008-06-06 12:03:14Z markwest $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @subpackage Zikula_legacy
// Needed for some old modules
// More needed for some old modules
// Yet another one needed for older modules
include('includes/legacy/textsanitizer.php');
* The depreciated parameter was never used in the previous version of this function
// A map of keys we want in the result to keys we get from the API.
$keys = array('uid' => 'uid', 'name' => '_UREALNAME', 'uname' => 'uname', 'email' => 'email', 'femail' => '_UFAKEMAIL',
'url' => '_YOURHOMEPAGE', 'user_avatar' => '_YOURAVATAR', 'user_icq' => '_YICQ', 'user_occ' => '_YOCCUPATION', 'user_from' => '_YLOCATION',
'user_intrest' => '_YINTERESTS', 'user_sig' => '_SIGNATURE', 'user_viewemail' => 'user_viewemail', 'user_theme' => 'theme',
'user_aim' => '_YAIM', 'user_yim' => '_YYIM', 'user_msnm' => '_YMSNM', 'pass' => 'pass', 'storynum' => 'storynum',
'umode' => 'umode', 'uorder' => 'uorder', 'thold' => 'thold', 'noscore' => 'noscore', 'bio' => 'bio',
'ublockon' => 'ublockon', 'ublock' => 'ublock', 'theme' => 'user_theme', 'commentmax' => 'commentmax', 'timezone_offset' => 'timezone_offset');
foreach ($keys as $key => $val) {
if (isset ($vars[$val])) {
$userinfo[$key] = $vars[$val];
// Set some sensible defaults for values that don't exist anymore...
|