[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 /* 3 + ----------------------------------------------------------------------------+ 4 | e107 website system 5 | 6 | ©Steve Dunstan 2001-2002 7 | http://e107.org 8 | jalist@e107.org 9 | 10 | Released under the terms and conditions of the 11 | GNU General Public License (http://gnu.org). 12 | 13 | $Source: /cvsroot/e107/e107_0.7/e107_handlers/user_func.php,v $ 14 | $Revision: 1.6 $ 15 | $Date: 2005/12/28 14:03:36 $ 16 | $Author: sweetas $ 17 +----------------------------------------------------------------------------+ 18 */ 19 20 if (!defined('e107_INIT')) { exit; } 21 22 function e107_userGetuserclass($user_id) 23 { 24 global $cachevar; 25 $key = 'userclass_'.$user_id; 26 $val = getcachedvars($key); 27 if ($val) 28 { 29 return $cachevar[$key]; 30 } 31 else 32 { 33 $uc_sql = new db; 34 if ($uc_sql->db_Select("user", "user_class, user_admin", "user_id=".intval($user_id))) 35 { 36 $row = $uc_sql->db_Fetch(); 37 $uc = $row['user_class']; 38 $uc .= ",".e_UC_MEMBER; 39 if($row['user_admin']) 40 { 41 $uc .= ",".e_UC_ADMIN; 42 } 43 return $uc; 44 } 45 else 46 { 47 return ""; 48 } 49 } 50 } 51 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |