Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | function smarty_function_get_user_email_icq_www($params,&$smarty) { | |
3 | $user_id = $params['user_id']; | |
4 | global $db; | |
5 | $q="select users.email,icq,www from users where users.user_id=$user_id"; | |
6 | $set=$db->query($q); | |
7 | $set->next(); | |
8 | $email=$set->getString('email'); | |
9 | $icq=$set->getString('icq'); | |
10 | $www=$set->getString('www'); | |
11 | $smarty->assign('get_user_email',$email); | |
12 | $smarty->assign('get_user_icq',$icq); | |
13 | $smarty->assign('get_user_www',$www); | |
14 | } | |
15 | ?> |