inc/users.inc.php
changeset 4 55ed92aa7cf5
parent 1 58094faf794d
child 8 47dd15d8bb8c
equal deleted inserted replaced
3:64525a2eb098 4:55ed92aa7cf5
    19 // Description: all user modifications etc. are done here
    19 // Description: all user modifications etc. are done here
    20 //
    20 //
    21 // $Id: users.inc.php,v 1.8 2003/01/01 22:33:47 azurazu Exp $
    21 // $Id: users.inc.php,v 1.8 2003/01/01 22:33:47 azurazu Exp $
    22 //
    22 //
    23 
    23 
    24 
    24 // Added next line to enable i18n on following definitions. Don't know 
       
    25 // if this is the best (or at least a proper) location for this. /RZ.
       
    26 require_once("inc/i18n.inc.php");
    25 
    27 
    26 /*
    28 /*
    27  * Retrieve all users.
    29  * Retrieve all users.
    28  * Its to show_users therefore the odd name. Has to be changed.
    30  * Its to show_users therefore the odd name. Has to be changed.
    29  * return values: an array with all users in it.
    31  * return values: an array with all users in it.
   106  * Gives a textdescribed value of the given levelid
   108  * Gives a textdescribed value of the given levelid
   107  * return values: the text associated with the level
   109  * return values: the text associated with the level
   108  */
   110  */
   109 function leveldescription($id)
   111 function leveldescription($id)
   110 {
   112 {
   111 	// Fixed descriptions for each user level (feel free to edit, anyway..)
       
   112 	// Will get moved to the config file soon.
       
   113 	switch($id)
   113 	switch($id)
   114 	{
   114 	{
   115 		case 1:
   115 		case 1:
   116 			global $NAME_LEVEL_1;
   116 			global $NAME_LEVEL_1;
   117 			return $NAME_LEVEL_1;
   117 			return $NAME_LEVEL_1;
   147 	{
   147 	{
   148         	return true;
   148         	return true;
   149 	}
   149 	}
   150         else
   150         else
   151         {
   151         {
   152         	error(ERR_UNKOWN);
   152         	error(ERR_UNKNOWN);
   153 	}
   153 	}
   154 }
   154 }
   155 
   155 
   156 
   156 
   157 /*
   157 /*