Overview

Namespaces

  • Composer
    • Autoload
  • Geekwright
    • RegDom
  • League
    • OAuth2
      • Client
        • Provider
  • None
  • Xmf
    • Database
    • Jwt
    • Key
    • Module
      • Helper

Classes

  • ArtObject
  • ArtObjectHandler
  • BloggerApi
  • CGIF
  • CGIFCOLORTABLE
  • CGIFFILEHEADER
  • CGIFIMAGE
  • CGIFIMAGEHEADER
  • CGIFLZW
  • Composer\Autoload\ClassLoader
  • Composer\Autoload\ComposerStaticInit274e5fff219a4f27a346e611b0580d6a
  • ComposerAutoloaderInit274e5fff219a4f27a346e611b0580d6a
  • Config_File
  • Cookie
  • Criteria
  • CriteriaCompo
  • CriteriaElement
  • Database
  • Db_manager
  • ErrorHandler
  • FormDhtmlTextArea
  • FormTextArea
  • Geekwright\RegDom\PublicSuffixList
  • Geekwright\RegDom\RegisteredDomain
  • HTMLPurifier
  • League\OAuth2\Client\Provider\Google
  • MetaWeblogApi
  • ModuleAdmin
  • MovableTypeApi
  • MyTextSanitizer
  • MyTextSanitizerExtended
  • MyTextSanitizerExtension
  • MytsCensor
  • MytsFlash
  • MytsIframe
  • MytsImage
  • MytsLi
  • MytsMms
  • MytsMp3
  • MytsRtsp
  • MytsSoundcloud
  • MytsSyntaxhighlight
  • MytsTextfilter
  • MytsUl
  • MytsWiki
  • MytsWmp
  • MytsYoutube
  • PathStuffController
  • PHPMailer
  • PHPMailerOAuth
  • PHPMailerOAuthGoogle
  • phpthumb
  • phpthumb_bmp
  • phpthumb_filters
  • phpthumb_functions
  • phpthumb_ico
  • phpUnsharpMask
  • PmCorePreload
  • PmMessage
  • PmMessageHandler
  • PmSystemPreload
  • POP3
  • ProfileCategory
  • ProfileCategoryHandler
  • ProfileCorePreload
  • ProfileField
  • ProfileFieldHandler
  • ProfileProfile
  • ProfileProfileHandler
  • ProfileRegstep
  • ProfileRegstepHandler
  • ProfileVisibility
  • ProfileVisibilityHandler
  • Protector
  • Protector_bruteforce_overrun_message
  • Protector_crawler_overrun_message
  • Protector_f5attack_overrun_message
  • Protector_postcommon_post_deny_by_httpbl
  • Protector_postcommon_post_deny_by_rbl
  • Protector_postcommon_post_htmlpurify4everyone
  • Protector_postcommon_post_htmlpurify4guest
  • Protector_postcommon_post_language_match
  • Protector_postcommon_post_need_multibyte
  • Protector_postcommon_post_register_moratorium
  • Protector_postcommon_post_stopforumspam
  • Protector_postcommon_register_insert_js_check
  • Protector_postcommon_register_stopforumspam
  • Protector_precommon_badip_errorlog
  • Protector_precommon_badip_message
  • Protector_precommon_badip_redirection
  • Protector_precommon_bwlimit_errorlog
  • Protector_precommon_bwlimit_message
  • Protector_prepurge_exit_message
  • Protector_spamcheck_overrun_message
  • ProtectorCorePreload
  • ProtectorFilterAbstract
  • ProtectorFilterHandler
  • ProtectorMySQLDatabase
  • ProtectorRegistry
  • ReCaptchaResponse
  • RpcArrayHandler
  • RpcBase64Handler
  • RpcBooleanHandler
  • RpcDateTimeHandler
  • RpcDoubleHandler
  • RpcIntHandler
  • RpcMemberHandler
  • RpcMethodNameHandler
  • RpcNameHandler
  • RpcStringHandler
  • RpcStructHandler
  • RpcValueHandler
  • RssAuthorHandler
  • RssCategoryHandler
  • RssChannelHandler
  • RssCommentsHandler
  • RssCopyrightHandler
  • RssDescriptionHandler
  • RssDocsHandler
  • RssGeneratorHandler
  • RssGuidHandler
  • RssHeightHandler
  • RssImageHandler
  • RssItemHandler
  • RssLanguageHandler
  • RssLastBuildDateHandler
  • RssLinkHandler
  • RssManagingEditorHandler
  • RssNameHandler
  • RssPubDateHandler
  • RssSourceHandler
  • RssTextInputHandler
  • RssTitleHandler
  • RssTtlHandler
  • RssUrlHandler
  • RssWebMasterHandler
  • RssWidthHandler
  • SaxParser
  • Smarty
  • Smarty_Compiler
  • SMTP
  • Snoopy
  • SqlUtility
  • SystemAvatar
  • SystemAvatarHandler
  • SystemBanner
  • SystemBannerclient
  • SystemBannerclientHandler
  • SystemBannerFinish
  • SystemBannerfinishHandler
  • SystemBannerHandler
  • SystemBlock
  • SystemBlockHandler
  • SystemBlockLinkModule
  • SystemBlockLinkModuleHandler
  • SystemBreadcrumb
  • SystemCorePreload
  • SystemFineAvatarUploadHandler
  • SystemFineImUploadHandler
  • SystemFineUploadHandler
  • SystemGroup
  • SystemGroupHandler
  • SystemMaintenance
  • SystemMenuHandler
  • SystemSmilies
  • SystemsmiliesHandler
  • SystemUserrank
  • SystemuserrankHandler
  • SystemUsers
  • SystemUsersHandler
  • Tar
  • ThemeSetAuthorHandler
  • ThemeSetDateCreatedHandler
  • ThemeSetDescriptionHandler
  • ThemeSetEmailHandler
  • ThemeSetFileTypeHandler
  • ThemeSetGeneratorHandler
  • ThemeSetImageHandler
  • ThemeSetLinkHandler
  • ThemeSetModuleHandler
  • ThemeSetNameHandler
  • ThemeSetTagHandler
  • ThemeSetTemplateHandler
  • TinyMCE
  • Xmf\Assert
  • Xmf\Database\Migrate
  • Xmf\Database\TableLoad
  • Xmf\Database\Tables
  • Xmf\Debug
  • Xmf\FilterInput
  • Xmf\Highlighter
  • Xmf\IPAddress
  • Xmf\Jwt\JsonWebToken
  • Xmf\Jwt\KeyFactory
  • Xmf\Jwt\TokenFactory
  • Xmf\Jwt\TokenReader
  • Xmf\Key\ArrayStorage
  • Xmf\Key\Basic
  • Xmf\Key\FileStorage
  • Xmf\Key\KeyAbstract
  • Xmf\Language
  • Xmf\Metagen
  • Xmf\Module\Admin
  • Xmf\Module\Helper
  • Xmf\Module\Helper\AbstractHelper
  • Xmf\Module\Helper\Cache
  • Xmf\Module\Helper\GenericHelper
  • Xmf\Module\Helper\Permission
  • Xmf\Module\Helper\Session
  • Xmf\Random
  • Xmf\Request
  • Xmf\StopWords
  • Xmf\Yaml
  • XmlTagHandler
  • XoopsApi
  • xoopsart
  • XoopsAuth
  • XoopsAuthAds
  • XoopsAuthFactory
  • XoopsAuthLdap
  • XoopsAuthProvisionning
  • XoopsAuthXoops
  • XoopsAvatar
  • XoopsAvatarHandler
  • XoopsBlock
  • XoopsBlockHandler
  • XoopsBlockInstance
  • XoopsBlockInstanceHandler
  • XoopsCache
  • XoopsCacheApc
  • XoopsCacheEngine
  • XoopsCacheFile
  • XoopsCacheMemcache
  • XoopsCacheModel
  • XoopsCacheModelHandler
  • XoopsCacheModelObject
  • XoopsCacheXcache
  • XoopsCaptcha
  • XoopsCaptchaImage
  • XoopsCaptchaImageHandler
  • XoopsCaptchaMethod
  • XoopsCaptchaRecaptcha
  • XoopsCaptchaRecaptcha2
  • XoopsCaptchaText
  • XoopsComment
  • XoopsCommentHandler
  • XoopsCommentRenderer
  • XoopsComments
  • XoopsConfigCategory
  • XoopsConfigCategoryHandler
  • XoopsConfigHandler
  • XoopsConfigItem
  • XoopsConfigItemHandler
  • XoopsConfigOption
  • XoopsConfigOptionHandler
  • XoopsDatabase
  • XoopsDatabaseFactory
  • XoopsDownloader
  • XoopsEditor
  • XoopsEditorHandler
  • XoopsErrorHandler
  • XoopsFile
  • XoopsFileHandler
  • XoopsFilterInput
  • XoopsFolderHandler
  • XoopsForm
  • XoopsFormButton
  • XoopsFormButtonTray
  • XoopsFormCaptcha
  • XoopsFormCheckBox
  • XoopsFormColorPicker
  • XoopsFormDateTime
  • XoopsFormDhtmlTextArea
  • XoopsFormEditor
  • XoopsFormElement
  • XoopsFormElementTray
  • XoopsFormFile
  • XoopsFormHidden
  • XoopsFormHiddenToken
  • XoopsFormLabel
  • XoopsFormPassword
  • XoopsFormRadio
  • XoopsFormRadioYN
  • XoopsFormRenderer
  • XoopsFormRendererBootstrap3
  • XoopsFormRendererLegacy
  • XoopsFormSelect
  • XoopsFormSelectCheckGroup
  • XoopsFormSelectCountry
  • XoopsFormSelectEditor
  • XoopsFormSelectGroup
  • XoopsFormSelectLang
  • XoopsFormSelectMatchOption
  • XoopsFormSelectTheme
  • XoopsFormSelectTimezone
  • XoopsFormSelectUser
  • XoopsFormText
  • XoopsFormTextArea
  • XoopsFormTextDateSelect
  • XoopsFormTinymce
  • XoopsGroup
  • XoopsGroupFormCheckBox
  • XoopsGroupHandler
  • XoopsGroupPerm
  • XoopsGroupPermForm
  • XoopsGroupPermHandler
  • XoopsGTicket
  • XoopsGuestUser
  • XoopsGuiDefault
  • XoopsGuiThadmin
  • XoopsGuiTransition
  • XoopsGuiZetadigme
  • XoopsHandlerRegistry
  • XoopsImage
  • XoopsImagecategory
  • XoopsImagecategoryHandler
  • XoopsImageHandler
  • XoopsImageSet
  • XoopsImagesetHandler
  • XoopsImagesetimg
  • XoopsImagesetimgHandler
  • XoopsInstallWizard
  • XoopsLists
  • XoopsLoad
  • XoopsLocal
  • XoopsLocalAbstract
  • XoopsLocalWrapper
  • XoopsLogger
  • XoopsMailer
  • XoopsMailerLocal
  • XoopsMediaUploader
  • XoopsMemberHandler
  • XoopsMembership
  • XoopsMembershipHandler
  • XoopsModelAbstract
  • XoopsModelFactory
  • XoopsModelJoint
  • XoopsModelRead
  • XoopsModelStats
  • XoopsModelSync
  • XoopsModelWrite
  • XoopsModule
  • XoopsModuleHandler
  • XoopsMultiMailer
  • XoopsMySQLDatabase
  • XoopsMySQLDatabaseProxy
  • XoopsMySQLDatabaseSafe
  • XoopsNotification
  • XoopsNotificationHandler
  • XoopsObject
  • XoopsObjectHandler
  • XoopsObjectTree
  • XoopsOnlineHandler
  • XoopsPageNav
  • XoopsPersistableObjectHandler
  • XoopsPreload
  • XoopsPreloadItem
  • XoopsPrivmessage
  • XoopsPrivmessageHandler
  • XoopsRank
  • XoopsRankHandler
  • XoopsRequest
  • XoopsSecurity
  • XoopsSessionHandler
  • XoopsSimpleForm
  • XoopsStory
  • XoopsSystemCpanel
  • XoopsSystemGui
  • XoopsTableForm
  • XoopsTarDownloader
  • XoopsThemeForm
  • XoopsThemeSetParser
  • XoopsTopic
  • XoopsTpl
  • XoopsTplfile
  • XoopsTplfileHandler
  • XoopsTplset
  • XoopsTplsetHandler
  • XoopsTree
  • XoopsUser
  • XoopsUserHandler
  • XoopsUserUtility
  • XoopsUtility
  • XoopsXmlRpcApi
  • XoopsXmlRpcArray
  • XoopsXmlRpcBase64
  • XoopsXmlRpcBoolean
  • XoopsXmlRpcDatetime
  • XoopsXmlRpcDocument
  • XoopsXmlRpcDouble
  • XoopsXmlRpcFault
  • XoopsXmlRpcInt
  • XoopsXmlRpcParser
  • XoopsXmlRpcRequest
  • XoopsXmlRpcResponse
  • XoopsXmlRpcString
  • XoopsXmlRpcStruct
  • XoopsXmlRpcTag
  • XoopsXmlRss2Parser
  • XoopsZipDownloader
  • xos_kernel_Xoops2
  • xos_logos_PageBuilder
  • xos_opal_AdminThemeFactory
  • xos_opal_Theme
  • xos_opal_ThemeFactory
  • XoUser
  • XoUserHandler
  • Zipfile

Interfaces

  • Xmf\Key\StorageInterface
  • XoopsFormRendererInterface

Exceptions

  • phpmailerException

Functions

  • __autoload
  • _recaptcha_aes_encrypt
  • _recaptcha_aes_pad
  • _recaptcha_http_post
  • _recaptcha_mailhide_email_parts
  • _recaptcha_mailhide_urlbase64
  • _recaptcha_qsencode
  • _smarty_regex_replace_check
  • _smarty_sort_length
  • admin_refcheck
  • b_system_comments_edit
  • b_system_comments_show
  • b_system_info_edit
  • b_system_info_show
  • b_system_login_show
  • b_system_main_show
  • b_system_newmembers_edit
  • b_system_newmembers_show
  • b_system_notification_show
  • b_system_online_show
  • b_system_search_show
  • b_system_themes_edit
  • b_system_themes_show
  • b_system_topposters_edit
  • b_system_topposters_show
  • b_system_user_show
  • b_system_waiting_show
  • bannerstats
  • change_banner_url_by_client
  • checkEmail
  • clickbanner
  • clientlogin
  • closeTable
  • closeThread
  • CloseWaitBox
  • Composer\Autoload\includeFile
  • composerRequire274e5fff219a4f27a346e611b0580d6a
  • createConfigform
  • createThemeform
  • doConditionalGet
  • emailStats
  • exit404BadReq
  • fatalPhpErrorHandler
  • file_get_contents
  • file_put_contents
  • findSharp
  • form_user
  • formatTimestamp
  • formatURL
  • gd_info
  • genPathCheckHtml
  • get_request_method
  • get_writeoks_from_protector
  • getcss
  • getDbCharsets
  • getDbCollations
  • getDirList
  • getMailer
  • getTheme
  • gif_getSize
  • gif_loadFile
  • gif_loadFileToGDimageResource
  • gif_outputAsBmp
  • gif_outputAsJpeg
  • gif_outputAsPng
  • HTMLPurifier
  • imagealphablending
  • imageBrowser
  • imageCreateCorners
  • imageFilenameCheck
  • imagesavealpha
  • install_acceptUser
  • install_finalize
  • is_executable
  • kses
  • langDropdown
  • load_functions
  • load_object
  • load_objectHandler
  • loadModuleAdminMenu
  • make_cblock
  • make_data
  • make_groups
  • make_sidebar
  • mod_clearCacheFile
  • mod_clearConfg
  • mod_clearConfig
  • mod_clearFile
  • mod_clearSmartyCache
  • mod_constant
  • mod_createCacheFile
  • mod_createCacheFile_byGroup
  • mod_createFile
  • mod_DB_prefix
  • mod_fetchConfg
  • mod_fetchConfig
  • mod_generateCacheId
  • mod_generateCacheId_byGroup
  • mod_getDirname
  • mod_getIP
  • mod_getMysqlVersion
  • mod_getUnameFromId
  • mod_getUnameFromIds
  • mod_isModuleAction
  • mod_loadCacheFile
  • mod_loadCacheFile_byGroup
  • mod_loadConfg
  • mod_loadConfig
  • mod_loadFile
  • mod_loadFunctions
  • mod_loadRenderer
  • mod_message
  • modify_chmod
  • myTextForm
  • notificationCategoryInfo
  • notificationCommentCategoryInfo
  • notificationEnabled
  • notificationEventEnabled
  • notificationEventInfo
  • notificationEvents
  • notificationGenerateConfig
  • notificationSubscribableCategoryInfo
  • openTable
  • openThread
  • OpenWaitBox
  • PHPMailerAutoload
  • phpThumbURL
  • preg_quote
  • profile_getFieldForm
  • profile_getRegisterForm
  • profile_getStepForm
  • profile_getUserForm
  • profile_install_addCategory
  • profile_install_addField
  • profile_install_addStep
  • profile_install_initializeProfiles
  • profile_install_setPermissions
  • protector_message_append_oninstall
  • protector_message_append_onuninstall
  • protector_message_append_onupdate
  • protector_notify_base
  • protector_oninstall_base
  • protector_onuninstall_base
  • protector_onupdate_base
  • protector_postcommon
  • protector_prepare
  • recaptcha_check_answer
  • recaptcha_get_html
  • recaptcha_get_signup_url
  • recaptcha_mailhide_html
  • recaptcha_mailhide_url
  • redirect_header
  • RedirectToCachedFile
  • SendSaveAsFileHeaderIfNeeded
  • showbanner
  • showThread
  • smarty_block_textformat
  • smarty_compiler_assign
  • smarty_compiler_foreachq
  • smarty_compiler_includeq
  • smarty_compiler_xoAdminIcons
  • smarty_compiler_xoAdminNav
  • smarty_compiler_xoAppUrl
  • smarty_compiler_xoImgUrl
  • smarty_compiler_xoModuleIcons16
  • smarty_compiler_xoModuleIcons32
  • smarty_compiler_xoModuleIconsBookmarks
  • smarty_core_assemble_plugin_filepath
  • smarty_core_assign_smarty_interface
  • smarty_core_create_dir_structure
  • smarty_core_display_debug_console
  • smarty_core_get_include_path
  • smarty_core_get_microtime
  • smarty_core_get_php_resource
  • smarty_core_is_secure
  • smarty_core_is_trusted
  • smarty_core_load_plugins
  • smarty_core_load_resource_plugin
  • smarty_core_process_cached_inserts
  • smarty_core_process_compiled_include
  • smarty_core_read_cache_file
  • smarty_core_rm_auto
  • smarty_core_rmdir
  • smarty_core_run_insert_handler
  • smarty_core_smarty_include_php
  • smarty_core_write_cache_file
  • smarty_core_write_compiled_include
  • smarty_core_write_compiled_resource
  • smarty_core_write_file
  • smarty_function_assign_debug_info
  • smarty_function_block
  • smarty_function_config_load
  • smarty_function_counter
  • smarty_function_cycle
  • smarty_function_debug
  • smarty_function_escape_special_chars
  • smarty_function_eval
  • smarty_function_fetch
  • smarty_function_html_checkboxes
  • smarty_function_html_checkboxes_output
  • smarty_function_html_image
  • smarty_function_html_options
  • smarty_function_html_options_optgroup
  • smarty_function_html_options_optoutput
  • smarty_function_html_radios
  • smarty_function_html_radios_output
  • smarty_function_html_select_date
  • smarty_function_html_select_time
  • smarty_function_html_table
  • smarty_function_html_table_cycle
  • smarty_function_mailto
  • smarty_function_math
  • smarty_function_popup
  • smarty_function_popup_init
  • smarty_function_securityToken
  • smarty_function_xoInboxCount
  • smarty_function_xoMemberInfo
  • smarty_function_xoops_link
  • smarty_function_xoPageNav
  • smarty_make_timestamp
  • smarty_modifier_capitalize
  • smarty_modifier_capitalize_ucfirst
  • smarty_modifier_cat
  • smarty_modifier_count_characters
  • smarty_modifier_count_paragraphs
  • smarty_modifier_count_sentences
  • smarty_modifier_count_words
  • smarty_modifier_date_format
  • smarty_modifier_debug_print_var
  • smarty_modifier_default
  • smarty_modifier_escape
  • smarty_modifier_indent
  • smarty_modifier_lower
  • smarty_modifier_nl2br
  • smarty_modifier_regex_replace
  • smarty_modifier_replace
  • smarty_modifier_spacify
  • smarty_modifier_string_format
  • smarty_modifier_strip
  • smarty_modifier_strip_tags
  • smarty_modifier_truncate
  • smarty_modifier_upper
  • smarty_modifier_wordwrap
  • smarty_outputfilter_trimwhitespace
  • smarty_outputfilter_trimwhitespace_replace
  • smarty_resource_db_secure
  • smarty_resource_db_source
  • smarty_resource_db_timestamp
  • smarty_resource_db_tplinfo
  • smarty_resource_db_trusted
  • synchronize
  • system_AdminIcons
  • system_adminVersion
  • system_CleanVars
  • system_loadLanguage
  • system_loadTemplate
  • themecenterposts
  • update_system_v211
  • userCheck
  • userTimeToServerTime
  • validateDbCharset
  • writeLicenseKey
  • xoBuildLicenceKey
  • xoDiag
  • xoDiagBoolSetting
  • xoDiagIfWritable
  • xoFormBlockCollation
  • xoFormField
  • xoFormFieldCharset
  • xoFormFieldCollation
  • xoFormSelect
  • xoops_aw_decode
  • xoops_aw_encode
  • xoops_bin2hex
  • xoops_comment_count
  • xoops_comment_delete
  • xoops_confirm
  • xoops_convert_decode
  • xoops_convert_encode
  • xoops_convert_encoding
  • xoops_cp_footer
  • xoops_cp_header
  • xoops_error
  • xoops_footer
  • xoops_getActiveModules
  • xoops_getbanner
  • xoops_getBaseDomain
  • xoops_getConfigOption
  • xoops_getcss
  • xoops_getenv
  • xoops_getHandler
  • xoops_getLinkedUnameFromId
  • xoops_getMailer
  • xoops_getModuleHandler
  • xoops_getModuleOption
  • xoops_getOption
  • xoops_getrank
  • xoops_getUrlDomain
  • xoops_getUserTimestamp
  • xoops_groupperm_deletebymoditem
  • xoops_header
  • xoops_hex2bin
  • xoops_isActiveModule
  • xoops_ishexstr
  • xoops_load
  • xoops_load_lang_file
  • xoops_loadLanguage
  • xoops_local
  • xoops_makepass
  • xoops_message
  • xoops_module_activate
  • xoops_module_change
  • xoops_module_deactivate
  • xoops_module_delayed_clean_cache
  • xoops_module_get_admin_menu
  • xoops_module_gettemplate
  • xoops_module_install
  • xoops_module_install_pm
  • xoops_module_install_profile
  • xoops_module_log_header
  • xoops_module_uninstall
  • xoops_module_update
  • xoops_module_update_pm
  • xoops_module_update_profile
  • xoops_module_update_system
  • xoops_module_write_admin_menu
  • xoops_notification_deletebyitem
  • xoops_notification_deletebymodule
  • xoops_notification_deletebyuser
  • xoops_refcheck
  • xoops_result
  • xoops_setActiveModules
  • xoops_setConfigOption
  • xoops_substr
  • xoops_template_clear_module_cache
  • xoops_template_touch
  • xoops_trim
  • xoops_utf8_encode
  • xoops_write_index_file
  • xoopsCodeTarea
  • xoopseditor_get_rootpath
  • XoopsErrorHandler_HandleError
  • xoopsfwrite
  • xoopsSmilies
  • xoPassField
  • xoPhpVersion
  • xoPutLicenseKey
  • xoStripeKey
  • Overview
  • Namespace
  • Class
  • Tree
  1: <?php
  2: /**
  3:  * XOOPS listing utilities
  4:  *
  5:  * You may not change or alter any portion of this comment or credits
  6:  * of supporting developers from this source code or any supporting source code
  7:  * which is considered copyrighted (c) material of the original comment or credit authors.
  8:  * This program is distributed in the hope that it will be useful,
  9:  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 10:  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 11:  *
 12:  * @copyright       (c) 2000-2016 XOOPS Project (www.xoops.org)
 13:  * @license             GNU GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
 14:  * @package             kernel
 15:  * @since               2.0.0
 16:  */
 17: 
 18: defined('XOOPS_ROOT_PATH') || exit('Restricted access');
 19: 
 20: if (!defined('XOOPS_LISTS_INCLUDED')) {
 21:     define('XOOPS_LISTS_INCLUDED', 1);
 22: 
 23:     /**
 24:      * XoopsLists
 25:      *
 26:      * @author              John Neill <catzwolf@xoops.org>
 27:      * @copyright       (c) 2000-2016 XOOPS Project (www.xoops.org)
 28:      * @package             kernel
 29:      * @subpackage          form
 30:      * @access              public
 31:      */
 32:     class XoopsLists
 33:     {
 34:         /**
 35:          * @return array
 36:          */
 37:         public static function getTimeZoneList()
 38:         {
 39:             xoops_loadLanguage('timezone');
 40: 
 41:             $time_zone_list = array(
 42:                 '-12'  => _TZ_GMTM12,
 43:                 '-11'  => _TZ_GMTM11,
 44:                 '-10'  => _TZ_GMTM10,
 45:                 '-9'   => _TZ_GMTM9,
 46:                 '-8'   => _TZ_GMTM8,
 47:                 '-7'   => _TZ_GMTM7,
 48:                 '-6'   => _TZ_GMTM6,
 49:                 '-5'   => _TZ_GMTM5,
 50:                 '-4'   => _TZ_GMTM4,
 51:                 '-3.5' => _TZ_GMTM35,
 52:                 '-3'   => _TZ_GMTM3,
 53:                 '-2'   => _TZ_GMTM2,
 54:                 '-1'   => _TZ_GMTM1,
 55:                 '0'    => _TZ_GMT0,
 56:                 '1'    => _TZ_GMTP1,
 57:                 '2'    => _TZ_GMTP2,
 58:                 '3'    => _TZ_GMTP3,
 59:                 '3.5'  => _TZ_GMTP35,
 60:                 '4'    => _TZ_GMTP4,
 61:                 '4.5'  => _TZ_GMTP45,
 62:                 '5'    => _TZ_GMTP5,
 63:                 '5.5'  => _TZ_GMTP55,
 64:                 '6'    => _TZ_GMTP6,
 65:                 '7'    => _TZ_GMTP7,
 66:                 '8'    => _TZ_GMTP8,
 67:                 '9'    => _TZ_GMTP9,
 68:                 '9.5'  => _TZ_GMTP95,
 69:                 '10'   => _TZ_GMTP10,
 70:                 '11'   => _TZ_GMTP11,
 71:                 '12'   => _TZ_GMTP12);
 72: 
 73:             return $time_zone_list;
 74:         }
 75: 
 76:         /**
 77:          * gets list of themes folder from themes directory
 78:          */
 79:         public static function getThemesList()
 80:         {
 81:             return XoopsLists::getDirListAsArray(XOOPS_THEME_PATH . '/');
 82:         }
 83: 
 84:         /**
 85:          * gets a list of module folders from the modules directory
 86:          */
 87:         public static function getModulesList()
 88:         {
 89:             return XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . '/modules/');
 90:         }
 91: 
 92:         /**
 93:          * gets list of editors folder from xoopseditor directory
 94:          */
 95:         public static function getEditorList()
 96:         {
 97:             return XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . '/class/xoopseditor/');
 98:         }
 99: 
100:         /**
101:          * gets list of name of directories inside a directory
102:          * @param $dirname
103:          * @return array
104:          */
105:         public static function getDirListAsArray($dirname)
106:         {
107:             $ignored = array(
108:                 'cvs',
109:                 '_darcs');
110:             $list    = array();
111:             if (substr($dirname, -1) !== '/') {
112:                 $dirname .= '/';
113:             }
114:             if ($handle = opendir($dirname)) {
115:                 while ($file = readdir($handle)) {
116:                     if (substr($file, 0, 1) === '.' || in_array(strtolower($file), $ignored)) {
117:                         continue;
118:                     }
119:                     if (is_dir($dirname . $file)) {
120:                         $list[$file] = $file;
121:                     }
122:                 }
123:                 closedir($handle);
124:                 asort($list);
125:                 reset($list);
126:             }
127: 
128:             return $list;
129:         }
130: 
131:         /**
132:          * gets list of all files in a directory
133:          * @param        $dirname
134:          * @param string $prefix
135:          * @return array
136:          */
137:         public static function getFileListAsArray($dirname, $prefix = '')
138:         {
139:             $filelist = array();
140:             if (substr($dirname, -1) === '/') {
141:                 $dirname = substr($dirname, 0, -1);
142:             }
143:             if (is_dir($dirname) && $handle = opendir($dirname)) {
144:                 while (false !== ($file = readdir($handle))) {
145:                     if (!preg_match('/^[\.]{1,2}$/', $file) && is_file($dirname . '/' . $file)) {
146:                         $file            = $prefix . $file;
147:                         $filelist[$file] = $file;
148:                     }
149:                 }
150:                 closedir($handle);
151:                 asort($filelist);
152:                 reset($filelist);
153:             }
154: 
155:             return $filelist;
156:         }
157: 
158:         /**
159:          * gets list of image file names in a directory
160:          * @param        $dirname
161:          * @param string $prefix
162:          * @return array
163:          */
164:         public static function getImgListAsArray($dirname, $prefix = '')
165:         {
166:             $filelist = array();
167:             if ($handle = opendir($dirname)) {
168:                 while (false !== ($file = readdir($handle))) {
169:                     if (preg_match('/(\.gif|\.jpg|\.png)$/i', $file)) {
170:                         $file            = $prefix . $file;
171:                         $filelist[$file] = $file;
172:                     }
173:                 }
174:                 closedir($handle);
175:                 asort($filelist);
176:                 reset($filelist);
177:             }
178: 
179:             return $filelist;
180:         }
181: 
182:         /**
183:          * gets list of html file names in a certain directory
184:          * @param        $dirname
185:          * @param string $prefix
186:          * @return array
187:          */
188:         public static function getHtmlListAsArray($dirname, $prefix = '')
189:         {
190:             $filelist = array();
191:             if ($handle = opendir($dirname)) {
192:                 while (false !== ($file = readdir($handle))) {
193:                     if (preg_match('/(\.htm|\.html|\.xhtml|\.tpl)$/i', $file) && !is_dir($file)) {
194:                         $file            = $prefix . $file;
195:                         $filelist[$file] = $prefix . $file;
196:                     }
197:                 }
198:                 closedir($handle);
199:                 asort($filelist);
200:                 reset($filelist);
201:             }
202: 
203:             return $filelist;
204:         }
205: 
206:         /**
207:          * gets list of avatar file names in a certain directory
208:          *                             if directory is not specified, default directory will be searched
209:          * @param string $avatar_dir
210:          * @return array
211:          */
212:         public static function getAvatarsList($avatar_dir = '')
213:         {
214:             $avatars = array();
215:             if ($avatar_dir != '') {
216:                 $avatars = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . '/images/avatar/' . $avatar_dir . '/', $avatar_dir . '/');
217:             } else {
218:                 $avatars = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . '/images/avatar/');
219:             }
220: 
221:             return $avatars;
222:         }
223: 
224:         /**
225:          * gets list of all avatar image files inside default avatars directory
226:          */
227:         public static function getAllAvatarsList()
228:         {
229:             $avatars = array();
230:             $dirlist = array();
231:             $dirlist = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . '/images/avatar/');
232:             if (count($dirlist) > 0) {
233:                 foreach ($dirlist as $dir) {
234:                     $avatars[$dir] = &XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . '/images/avatar/' . $dir . '/', $dir . '/');
235:                 }
236:             } else {
237:                 return false;
238:             }
239: 
240:             return $avatars;
241:         }
242: 
243:         /**
244:          * gets list of subject icon image file names in a certain directory
245:          *                             if directory is not specified, default directory will be searched
246:          * @param string $sub_dir
247:          * @return array
248:          */
249:         public static function getSubjectsList($sub_dir = '')
250:         {
251:             $subjects = array();
252:             if ($sub_dir != '') {
253:                 $subjects = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . '/images/subject/' . $sub_dir, $sub_dir . '/');
254:             } else {
255:                 $subjects = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . '/images/subject/');
256:             }
257: 
258:             return $subjects;
259:         }
260: 
261:         /**
262:          * gets list of language folders inside default language directory
263:          */
264:         public static function getLangList()
265:         {
266:             $lang_list = array();
267:             $lang_list = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . '/language/');
268: 
269:             return $lang_list;
270:         }
271: 
272:         /**
273:          * XoopsLists::getCountryList()
274:          *
275:          * @return array
276:          */
277:         public static function getCountryList()
278:         {
279:             xoops_loadLanguage('countries');
280:             $country_list = array(
281:                 '' => '-',
282:                 'AD' => _COUNTRY_AD,
283:                 'AE' => _COUNTRY_AE,
284:                 'AF' => _COUNTRY_AF,
285:                 'AG' => _COUNTRY_AG,
286:                 'AI' => _COUNTRY_AI,
287:                 'AL' => _COUNTRY_AL,
288:                 'AM' => _COUNTRY_AM,
289:                 'AN' => _COUNTRY_AN,
290:                 'AO' => _COUNTRY_AO,
291:                 'AQ' => _COUNTRY_AQ,
292:                 'AR' => _COUNTRY_AR,
293:                 'AS' => _COUNTRY_AS,
294:                 'AT' => _COUNTRY_AT,
295:                 'AU' => _COUNTRY_AU,
296:                 'AW' => _COUNTRY_AW,
297:                 'AX' => _COUNTRY_AX,
298:                 'AZ' => _COUNTRY_AZ,
299:                 'BA' => _COUNTRY_BA,
300:                 'BB' => _COUNTRY_BB,
301:                 'BD' => _COUNTRY_BD,
302:                 'BE' => _COUNTRY_BE,
303:                 'BF' => _COUNTRY_BF,
304:                 'BG' => _COUNTRY_BG,
305:                 'BH' => _COUNTRY_BH,
306:                 'BI' => _COUNTRY_BI,
307:                 'BJ' => _COUNTRY_BJ,
308:                 'BL' => _COUNTRY_BL,
309:                 'BM' => _COUNTRY_BM,
310:                 'BN' => _COUNTRY_BN,
311:                 'BO' => _COUNTRY_BO,
312:                 'BR' => _COUNTRY_BR,
313:                 'BS' => _COUNTRY_BS,
314:                 'BT' => _COUNTRY_BT,
315:                 'BV' => _COUNTRY_BV,
316:                 'BW' => _COUNTRY_BW,
317:                 'BY' => _COUNTRY_BY,
318:                 'BZ' => _COUNTRY_BZ,
319:                 'CA' => _COUNTRY_CA,
320:                 'CC' => _COUNTRY_CC,
321:                 'CD' => _COUNTRY_CD,
322:                 'CF' => _COUNTRY_CF,
323:                 'CG' => _COUNTRY_CG,
324:                 'CH' => _COUNTRY_CH,
325:                 'CI' => _COUNTRY_CI,
326:                 'CK' => _COUNTRY_CK,
327:                 'CL' => _COUNTRY_CL,
328:                 'CM' => _COUNTRY_CM,
329:                 'CN' => _COUNTRY_CN,
330:                 'CO' => _COUNTRY_CO,
331:                 'CR' => _COUNTRY_CR,
332:                 'CS' => _COUNTRY_CS,    //  Not listed in ISO 3166, former Serbia & Montenegro
333:                 'CU' => _COUNTRY_CU,
334:                 'CV' => _COUNTRY_CV,
335:                 'CX' => _COUNTRY_CX,
336:                 'CY' => _COUNTRY_CY,
337:                 'CZ' => _COUNTRY_CZ,
338:                 'DE' => _COUNTRY_DE,
339:                 'DJ' => _COUNTRY_DJ,
340:                 'DK' => _COUNTRY_DK,
341:                 'DM' => _COUNTRY_DM,
342:                 'DO' => _COUNTRY_DO,
343:                 'DZ' => _COUNTRY_DZ,
344:                 'EC' => _COUNTRY_EC,
345:                 'EE' => _COUNTRY_EE,
346:                 'EG' => _COUNTRY_EG,
347:                 'EH' => _COUNTRY_EH,
348:                 'ER' => _COUNTRY_ER,
349:                 'ES' => _COUNTRY_ES,
350:                 'ET' => _COUNTRY_ET,
351:                 'FI' => _COUNTRY_FI,
352:                 'FJ' => _COUNTRY_FJ,
353:                 'FK' => _COUNTRY_FK,
354:                 'FM' => _COUNTRY_FM,
355:                 'FO' => _COUNTRY_FO,
356:                 'FR' => _COUNTRY_FR,
357:                 'FX' => _COUNTRY_FX,    //  Not listed in ISO 3166
358:                 'GA' => _COUNTRY_GA,
359:                 'GB' => _COUNTRY_GB,
360:                 'GD' => _COUNTRY_GD,
361:                 'GE' => _COUNTRY_GE,
362:                 'GF' => _COUNTRY_GF,
363:                 'GG' => _COUNTRY_GG,
364:                 'GH' => _COUNTRY_GH,
365:                 'GI' => _COUNTRY_GI,
366:                 'GL' => _COUNTRY_GL,
367:                 'GM' => _COUNTRY_GM,
368:                 'GN' => _COUNTRY_GN,
369:                 'GP' => _COUNTRY_GP,
370:                 'GQ' => _COUNTRY_GQ,
371:                 'GR' => _COUNTRY_GR,
372:                 'GS' => _COUNTRY_GS,
373:                 'GT' => _COUNTRY_GT,
374:                 'GU' => _COUNTRY_GU,
375:                 'GW' => _COUNTRY_GW,
376:                 'GY' => _COUNTRY_GY,
377:                 'HK' => _COUNTRY_HK,
378:                 'HM' => _COUNTRY_HM,
379:                 'HN' => _COUNTRY_HN,
380:                 'HR' => _COUNTRY_HR,
381:                 'HT' => _COUNTRY_HT,
382:                 'HU' => _COUNTRY_HU,
383:                 'ID' => _COUNTRY_ID,
384:                 'IE' => _COUNTRY_IE,
385:                 'IL' => _COUNTRY_IL,
386:                 'IM' => _COUNTRY_IM,
387:                 'IN' => _COUNTRY_IN,
388:                 'IO' => _COUNTRY_IO,
389:                 'IQ' => _COUNTRY_IQ,
390:                 'IR' => _COUNTRY_IR,
391:                 'IS' => _COUNTRY_IS,
392:                 'IT' => _COUNTRY_IT,
393:                 'JM' => _COUNTRY_JM,
394:                 'JO' => _COUNTRY_JO,
395:                 'JP' => _COUNTRY_JP,
396:                 'KE' => _COUNTRY_KE,
397:                 'KG' => _COUNTRY_KG,
398:                 'KH' => _COUNTRY_KH,
399:                 'KI' => _COUNTRY_KI,
400:                 'KM' => _COUNTRY_KM,
401:                 'KN' => _COUNTRY_KN,
402:                 'KP' => _COUNTRY_KP,
403:                 'KR' => _COUNTRY_KR,
404:                 'KW' => _COUNTRY_KW,
405:                 'KY' => _COUNTRY_KY,
406:                 'KZ' => _COUNTRY_KZ,
407:                 'LA' => _COUNTRY_LA,
408:                 'LB' => _COUNTRY_LB,
409:                 'LC' => _COUNTRY_LC,
410:                 'LI' => _COUNTRY_LI,
411:                 'LK' => _COUNTRY_LK,
412:                 'LR' => _COUNTRY_LR,
413:                 'LS' => _COUNTRY_LS,
414:                 'LT' => _COUNTRY_LT,
415:                 'LU' => _COUNTRY_LU,
416:                 'LV' => _COUNTRY_LV,
417:                 'LY' => _COUNTRY_LY,
418:                 'MA' => _COUNTRY_MA,
419:                 'MC' => _COUNTRY_MC,
420:                 'MD' => _COUNTRY_MD,
421:                 'ME' => _COUNTRY_ME,
422:                 'MF' => _COUNTRY_MF,
423:                 'MG' => _COUNTRY_MG,
424:                 'MH' => _COUNTRY_MH,
425:                 'MK' => _COUNTRY_MK,
426:                 'ML' => _COUNTRY_ML,
427:                 'MM' => _COUNTRY_MM,
428:                 'MN' => _COUNTRY_MN,
429:                 'MO' => _COUNTRY_MO,
430:                 'MP' => _COUNTRY_MP,
431:                 'MQ' => _COUNTRY_MQ,
432:                 'MR' => _COUNTRY_MR,
433:                 'MS' => _COUNTRY_MS,
434:                 'MT' => _COUNTRY_MT,
435:                 'MU' => _COUNTRY_MU,
436:                 'MV' => _COUNTRY_MV,
437:                 'MW' => _COUNTRY_MW,
438:                 'MX' => _COUNTRY_MX,
439:                 'MY' => _COUNTRY_MY,
440:                 'MZ' => _COUNTRY_MZ,
441:                 'NA' => _COUNTRY_NA,
442:                 'NC' => _COUNTRY_NC,
443:                 'NE' => _COUNTRY_NE,
444:                 'NF' => _COUNTRY_NF,
445:                 'NG' => _COUNTRY_NG,
446:                 'NI' => _COUNTRY_NI,
447:                 'NL' => _COUNTRY_NL,
448:                 'NO' => _COUNTRY_NO,
449:                 'NP' => _COUNTRY_NP,
450:                 'NR' => _COUNTRY_NR,
451:                 'NT' => _COUNTRY_NT,    //  Not listed in ISO 3166
452:                 'NU' => _COUNTRY_NU,
453:                 'NZ' => _COUNTRY_NZ,
454:                 'OM' => _COUNTRY_OM,
455:                 'PA' => _COUNTRY_PA,
456:                 'PE' => _COUNTRY_PE,
457:                 'PF' => _COUNTRY_PF,
458:                 'PG' => _COUNTRY_PG,
459:                 'PH' => _COUNTRY_PH,
460:                 'PK' => _COUNTRY_PK,
461:                 'PL' => _COUNTRY_PL,
462:                 'PM' => _COUNTRY_PM,
463:                 'PN' => _COUNTRY_PN,
464:                 'PR' => _COUNTRY_PR,
465:                 'PS' => _COUNTRY_PS,
466:                 'PT' => _COUNTRY_PT,
467:                 'PW' => _COUNTRY_PW,
468:                 'PY' => _COUNTRY_PY,
469:                 'QA' => _COUNTRY_QA,
470:                 'RE' => _COUNTRY_RE,
471:                 'RO' => _COUNTRY_RO,
472:                 'RS' => _COUNTRY_RS,
473:                 'RU' => _COUNTRY_RU,
474:                 'RW' => _COUNTRY_RW,
475:                 'SA' => _COUNTRY_SA,
476:                 'SB' => _COUNTRY_SB,
477:                 'SC' => _COUNTRY_SC,
478:                 'SD' => _COUNTRY_SD,
479:                 'SE' => _COUNTRY_SE,
480:                 'SG' => _COUNTRY_SG,
481:                 'SH' => _COUNTRY_SH,
482:                 'SI' => _COUNTRY_SI,
483:                 'SJ' => _COUNTRY_SJ,
484:                 'SK' => _COUNTRY_SK,
485:                 'SL' => _COUNTRY_SL,
486:                 'SM' => _COUNTRY_SM,
487:                 'SN' => _COUNTRY_SN,
488:                 'SO' => _COUNTRY_SO,
489:                 'SR' => _COUNTRY_SR,
490:                 'ST' => _COUNTRY_ST,
491:                 'SU' => _COUNTRY_SU,    //  Not listed in ISO 3166
492:                 'SV' => _COUNTRY_SV,
493:                 'SY' => _COUNTRY_SY,
494:                 'SZ' => _COUNTRY_SZ,
495:                 'TC' => _COUNTRY_TC,
496:                 'TD' => _COUNTRY_TD,
497:                 'TF' => _COUNTRY_TF,
498:                 'TG' => _COUNTRY_TG,
499:                 'TH' => _COUNTRY_TH,
500:                 'TJ' => _COUNTRY_TJ,
501:                 'TK' => _COUNTRY_TK,
502:                 'TL' => _COUNTRY_TL,
503:                 'TM' => _COUNTRY_TM,
504:                 'TN' => _COUNTRY_TN,
505:                 'TO' => _COUNTRY_TO,
506:                 'TP' => _COUNTRY_TP,    //  Not listed in ISO 3166, has changed to TL
507:                 'TR' => _COUNTRY_TR,
508:                 'TT' => _COUNTRY_TT,
509:                 'TV' => _COUNTRY_TV,
510:                 'TW' => _COUNTRY_TW,
511:                 'TZ' => _COUNTRY_TZ,
512:                 'UA' => _COUNTRY_UA,
513:                 'UG' => _COUNTRY_UG,
514:                 //"UK" => _COUNTRY_UK,    //  Not listed in ISO 3166
515:                 'UM' => _COUNTRY_UM,
516:                 'US' => _COUNTRY_US,
517:                 'UY' => _COUNTRY_UY,
518:                 'UZ' => _COUNTRY_UZ,
519:                 'VA' => _COUNTRY_VA,
520:                 'VC' => _COUNTRY_VC,
521:                 'VE' => _COUNTRY_VE,
522:                 'VG' => _COUNTRY_VG,
523:                 'VI' => _COUNTRY_VI,
524:                 'VN' => _COUNTRY_VN,
525:                 'VU' => _COUNTRY_VU,
526:                 'WF' => _COUNTRY_WF,
527:                 'WS' => _COUNTRY_WS,
528:                 'YE' => _COUNTRY_YE,
529:                 'YT' => _COUNTRY_YT,
530:                 'YU' => _COUNTRY_YU,    //  Not listed in ISO 3166, former Yugoslavia
531:                 'ZA' => _COUNTRY_ZA,
532:                 'ZM' => _COUNTRY_ZM,
533:                 'ZR' => _COUNTRY_ZR,    //  Not listed in ISO 3166
534:                 'ZW' => _COUNTRY_ZW);
535:             asort($country_list);
536:             reset($country_list);
537: 
538:             return $country_list;
539:         }
540: 
541:         /**
542:          * XoopsLists::getHtmlList()
543:          *
544:          * This Function is no longer being used by the core
545:          *
546:          * @return array
547:          */
548:         public static function getHtmlList()
549:         {
550:             $html_list = array(
551:                 'a'          => '&lt;a&gt;',
552:                 'abbr'       => '&lt;abbr&gt;',
553:                 'acronym'    => '&lt;acronym&gt;',
554:                 'address'    => '&lt;address&gt;',
555:                 'b'          => '&lt;b&gt;',
556:                 'bdo'        => '&lt;bdo&gt;',
557:                 'big'        => '&lt;big&gt;',
558:                 'blockquote' => '&lt;blockquote&gt;',
559:                 'br'         => '&lt;br&gt;',
560:                 'caption'    => '&lt;caption&gt;',
561:                 'cite'       => '&lt;cite&gt;',
562:                 'code'       => '&lt;code&gt;',
563:                 'col'        => '&lt;col&gt;',
564:                 'colgroup'   => '&lt;colgroup&gt;',
565:                 'dd'         => '&lt;dd&gt;',
566:                 'del'        => '&lt;del&gt;',
567:                 'dfn'        => '&lt;dfn&gt;',
568:                 'div'        => '&lt;div&gt;',
569:                 'dl'         => '&lt;dl&gt;',
570:                 'dt'         => '&lt;dt&gt;',
571:                 'em'         => '&lt;em&gt;',
572:                 'font'       => '&lt;font&gt;',
573:                 'h1'         => '&lt;h1&gt;',
574:                 'h2'         => '&lt;h2&gt;',
575:                 'h3'         => '&lt;h3&gt;',
576:                 'h4'         => '&lt;h4&gt;',
577:                 'h5'         => '&lt;h5&gt;',
578:                 'h6'         => '&lt;h6&gt;',
579:                 'hr'         => '&lt;hr&gt;',
580:                 'i'          => '&lt;i&gt;',
581:                 'img'        => '&lt;img&gt;',
582:                 'ins'        => '&lt;ins&gt;',
583:                 'kbd'        => '&lt;kbd&gt;',
584:                 'li'         => '&lt;li&gt;',
585:                 'map'        => '&lt;map&gt;',
586:                 'object'     => '&lt;object&gt;',
587:                 'ol'         => '&lt;ol&gt;',
588:                 'p'          => '&lt;p&gt;',
589:                 'pre'        => '&lt;pre&gt;',
590:                 's'          => '&lt;s&gt;',
591:                 'samp'       => '&lt;samp&gt;',
592:                 'small'      => '&lt;small&gt;',
593:                 'span'       => '&lt;span&gt;',
594:                 'strike'     => '&lt;strike&gt;',
595:                 'strong'     => '&lt;strong&gt;',
596:                 'sub'        => '&lt;sub&gt;',
597:                 'sup'        => '&lt;sup&gt;',
598:                 'table'      => '&lt;table&gt;',
599:                 'tbody'      => '&lt;tbody&gt;',
600:                 'td'         => '&lt;td&gt;',
601:                 'tfoot'      => '&lt;tfoot&gt;',
602:                 'th'         => '&lt;th&gt;',
603:                 'thead'      => '&lt;thead&gt;',
604:                 'tr'         => '&lt;tr&gt;',
605:                 'tt'         => '&lt;tt&gt;',
606:                 'u'          => '&lt;u&gt;',
607:                 'ul'         => '&lt;ul&gt;',
608:                 'var'        => '&lt;var&gt;');
609:             asort($html_list);
610:             reset($html_list);
611: 
612:             return $html_list;
613:         }
614: 
615:         /**
616:          * XoopsLists::getUserRankList()
617:          *
618:          * @return array
619:          */
620:         public static function getUserRankList()
621:         {
622:             $db     = XoopsDatabaseFactory::getDatabaseConnection();
623:             $myts   = MyTextSanitizer::getInstance();
624:             $sql    = sprintf('SELECT rank_id, rank_title FROM ' . $db->prefix('ranks') . ' WHERE rank_special = %u', 1);
625:             $ret    = array();
626:             $result = $db->query($sql);
627:             while ($myrow = $db->fetchArray($result)) {
628:                 $ret[$myrow['rank_id']] = $myts->htmlspecialchars($myrow['rank_title']);
629:             }
630: 
631:             return $ret;
632:         }
633:     }
634: }
635: 
API documentation generated by ApiGen