| 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 | $q="select email from users where user_id=$user_id"; |
| 7 | |
| 8 | $set=$db->query($q); |
| 9 | $set->next(); |
| 10 | $email=$set->getString('email'); |
| 11 | // $icq=$set->getString('icq'); |
| 12 | // $www=$set->getString('www'); |
| 13 | $smarty->assign('get_user_email',$email); |
| 14 | // $smarty->assign('get_user_icq',$icq); |
| 15 | // $smarty->assign('get_user_www',$www); |
| 16 | } |
| 17 | ?> |