/** * Displays details about the logged in user and the privileges he/she has * $param integer User ID from Joomla user table */ function RSGalleryUserInfo($id) { global $rsgConfig; $my = JFactory::getUser(); if ($my->usertype == "Super Administrator" or $my->usertype == "Administrator") { $maxcat = JText::_('COM_RSGALLERY2_UNLIMITED'); $max_images = JText::_('COM_RSGALLERY2_UNLIMITED'); } else { $maxcat = $rsgConfig->get('uu_maxCat'); $max_images = $rsgConfig->get('uu_maxImages'); } ?> <table class="adminform" border="1"> <tr> <th colspan="2"><?php echo JText::_('User information'); ?> </th> </tr> <tr> <td width="250"><?php echo JText::_('Username'); ?> </td> <td><?php echo $my->username; ?> </td> </tr> <tr> <td><?php echo JText::_('User level'); ?> </td> <td><?php echo $my->usertype; ?> </td> </tr> <tr> <td><?php echo JText::_('Maximum usergalleries'); ?> </td> <td><?php echo $maxcat; ?> (<font color="#008000"><strong><?php echo galleryUtils::userCategoryTotal($my->id); ?> </strong></font> <?php echo JText::_('created)'); ?> </td> </tr> <tr> <td><?php echo JText::_('Maximum images allowed'); ?> </td> <td><?php echo $max_images; ?> (<font color="#008000"><strong><?php echo galleryUtils::userImageTotal($my->id); ?> </strong></font> <?php echo JText::_('uploaded)'); ?> </td> </tr> <tr> <th colspan="2"></th> </tr> </table> <br><br> <?php }