Overview

Namespaces

  • MatthiasMullie
    • Minify
      • Exceptions
    • PathConverter
  • None
  • ReCaptcha
    • RequestMethod
  • TOTP

Classes

  • apc_cache
  • apcu_cache
  • ApprovePost_Notify_Background
  • ApproveReply_Notify_Background
  • Attachments
  • Birthday_Notify_Background
  • browser_detector
  • Buddy_Notify_Background
  • cache_api
  • CreateAttachment_Notify_Background
  • CreatePost_Notify_Background
  • curl_fetch_web_data
  • custom_search
  • EventNew_Notify_Background
  • ftp_connection
  • fulltext_search
  • gif_color_table
  • gif_file
  • gif_file_header
  • gif_image
  • gif_image_header
  • gif_lzw_compression
  • GroupAct_Notify_Background
  • GroupReq_Notify_Background
  • Likes
  • Likes_Notify_Background
  • MatthiasMullie\Minify\CSS
  • MatthiasMullie\Minify\JS
  • MatthiasMullie\Minify\Minify
  • MatthiasMullie\PathConverter\Converter
  • MemberReport_Notify_Background
  • MemberReportReply_Notify_Background
  • memcache_cache
  • memcached_cache
  • Mentions
  • MsgReport_Notify_Background
  • MsgReportReply_Notify_Background
  • paypal_display
  • paypal_payment
  • postgres_cache
  • ProxyServer
  • Punycode
  • ReCaptcha\ReCaptcha
  • ReCaptcha\RequestMethod\Curl
  • ReCaptcha\RequestMethod\CurlPost
  • ReCaptcha\RequestMethod\Post
  • ReCaptcha\RequestMethod\Socket
  • ReCaptcha\RequestMethod\SocketPost
  • ReCaptcha\RequestParameters
  • ReCaptcha\Response
  • Register_Notify_Background
  • search_api
  • SMF_BackgroundTask
  • smf_cache
  • sqlite_cache
  • standard_search
  • TOTP\Auth
  • TypeError
  • Update_TLD_Regex
  • xcache_cache
  • xmlArray
  • zend_cache

Interfaces

  • cache_api_interface
  • ReCaptcha\RequestMethod
  • search_api_interface

Exceptions

  • Error
  • MatthiasMullie\Minify\Exception
  • MatthiasMullie\Minify\Exceptions\BasicException
  • MatthiasMullie\Minify\Exceptions\FileImportException
  • MatthiasMullie\Minify\Exceptions\IOException

Functions

  • _safe_serialize
  • _safe_unserialize
  • account
  • Activate
  • activateAccount
  • add_integration_function
  • addData
  • addInlineCss
  • addInlineJavaScript
  • addJavaScriptVar
  • AddLanguage
  • AddMailQueue
  • AddMembergroup
  • addMembersToGroup
  • addSeparator
  • AddSmiley
  • addSubscription
  • addTriggers
  • AdminAccount
  • AdminApprove
  • AdminBoardRecount
  • AdminEndSession
  • AdminHome
  • adminLogin
  • adminLogin_outputPostVars
  • AdminLogs
  • AdminMain
  • adminNotify
  • AdminRegister
  • AdminSearch
  • AdminSearchInternal
  • AdminSearchMember
  • AdminSearchOM
  • alert_configuration
  • alert_count
  • alert_delete
  • alert_mark
  • alert_markread
  • alert_notifications_boards
  • alert_notifications_topics
  • alert_purge
  • alerts_popup
  • AlignURLsWithSSLSetting
  • allowedTo
  • AnnouncementSelectMembergroup
  • AnnouncementSend
  • AnnounceTopic
  • ApplyRules
  • approveAllData
  • ApproveAttach
  • ApproveAttachments
  • ApproveMessage
  • approveMessages
  • approvePosts
  • approveTopics
  • array_column
  • array_length
  • assignAttachments
  • attachDirStatus
  • attachmentChecks
  • attachments_init_dir
  • automanage_attachments_by_space
  • automanage_attachments_check_directory
  • automanage_attachments_create_directory
  • AutoSuggest_Search_Member
  • AutoSuggest_Search_MemberGroups
  • AutoSuggest_Search_SMFVersions
  • AutoSuggestHandler
  • AutoTask
  • BackupDatabase
  • backupTable
  • Ban
  • BanBrowseTriggers
  • BanEdit
  • banEdit2
  • BanEditTrigger
  • BanList
  • banLoadAdditionalIPs
  • banLoadAdditionalIPsError
  • banLoadAdditionalIPsMember
  • BanLog
  • banPermissions
  • bbc_to_html
  • BoardIndex
  • BoardNotify
  • BoardPermissionsReport
  • BoardReport
  • boardsAllowedTo
  • BoardurlMatch
  • BookOfUnknown
  • BrowseFiles
  • BrowseMailQueue
  • BuddyListToggle
  • build_query_board
  • build_regex
  • buildEventDatetimes
  • cache_get_data
  • cache_getLastPosts
  • cache_getMembergroupList
  • cache_getOffsetIndependentEvents
  • cache_getRecentEvents
  • cache_put_data
  • cache_quick_get
  • CalculateNextTrigger
  • CalendarMain
  • CalendarPost
  • call_helper
  • call_integration_hook
  • canLinkEvent
  • canPickTheme
  • cdata_parse
  • censorText
  • check_cron
  • checkActivation
  • checkChange
  • checkConfirm
  • checkExistingTriggerIP
  • CheckFilesWritable
  • checkGD
  • checkImageContents
  • checkImagick
  • checkLogin
  • checkMagickWand
  • checkSession
  • checkSubmitOnce
  • clean_cache
  • cleanLangString
  • cleanRequest
  • cleanRequest_cron
  • cleanTokens
  • cleanXml
  • ClearMailQueue
  • cli_scheduled_fetchSMfiles
  • clock
  • cmdStep0
  • comma_format
  • compareVersions
  • ComposeMailing
  • consolidateSpiderStats
  • construct_query_string
  • constructPageIndex
  • ConvertEntities
  • ConvertMsgBody
  • convertSettingstoOptions
  • convertSettingsToTheme
  • ConvertUtf8
  • CoppaForm
  • CopyTemplate
  • copytree
  • countReports
  • create_button
  • create_chmod_control
  • create_control_richedit
  • create_control_verification
  • createAttachment
  • createBoard
  • createCategory
  • createList
  • createMenu
  • CreateMessageIndex
  • createPost
  • createSalvageArea
  • createThumbnail
  • createToken
  • createWaveFile
  • Credits
  • custFieldsMaxOrder
  • custMinify
  • DatabaseChanges
  • DatabasePopulation
  • DatabaseSettings
  • db_extend
  • db_extra_init
  • db_fix_prefix
  • db_packages_init
  • db_search_init
  • db_version_check
  • debugPrint
  • deleteAccount
  • deleteAccount2
  • deleteAllMinified
  • deleteBoards
  • deleteCategories
  • DeleteDraft
  • deleteErrors
  • DeleteInstall
  • DeleteMembergroup
  • deleteMembergroups
  • deleteMembers
  • DeleteMessage
  • deleteMessages
  • deleteModComment
  • deleteNotifyPrefs
  • DeleteUpgrade
  • deltree
  • Destroy
  • destroyMenu
  • detectBrowser
  • detectFulltextIndex
  • determineActions
  • Display
  • display_db_error
  • display_loadavg_error
  • display_maintenance_message
  • DisplayAdminFile
  • displayDebug
  • DisplayStats
  • DoLogin
  • Download
  • downloadAvatar
  • DownloadLanguage
  • dumpTags
  • EditAgreement
  • EditBoard
  • EditBoard2
  • EditBoardSettings
  • editBuddies
  • editBuddyIgnoreLists
  • EditCategory
  • EditCategory2
  • EditComment
  • EditCustomProfiles
  • EditHoliday
  • editIgnoreList
  • EditMembergroup
  • EditMessageIcons
  • editModComment
  • EditNews
  • EditPermissionProfiles
  • EditPoll
  • EditPoll2
  • EditSearchMethod
  • EditSearchSettings
  • EditSmileyOrder
  • EditSmileys
  • EditSmileySets
  • EditSmileySettings
  • EditSpider
  • EditTask
  • EditTheme
  • EditWeights
  • emailAdmins
  • EnableTheme
  • entity_fix__callback
  • escapestring__recursive
  • ExamineFile
  • expandIPv6
  • fatal_error
  • fatal_lang_error
  • fetch_alerts
  • fetch_task
  • fetch_web_data
  • fetchPerms__recursive
  • fetchTagAttributes
  • find_gpg
  • find_signed_off
  • find_signed_off_parents
  • findForumErrors
  • findMembers
  • findSearchAPI
  • finishTables
  • fix_possible_url
  • fix_serialized_data
  • fixchar__callback
  • fixchardb__callback
  • fixChildren
  • fixModSecurity
  • fixRelativePath
  • fixTag
  • fixTags
  • forum_time
  • forumProfile
  • ForumSettings
  • frameOptionsHeader
  • GeneralPermissionSettings
  • generateSubscriptionError
  • generateValidationCode
  • get_all_themes
  • get_current_settings
  • get_date_or_time_format
  • get_directory_tree_elements
  • get_file_listing
  • get_files_recursive
  • get_gravatar_url
  • get_hook_info_from_raw
  • get_installed_themes
  • get_integration_hooks
  • get_integration_hooks_count
  • get_integration_hooks_data
  • get_proxied_url
  • get_single_theme
  • get_theme_info
  • getAttachmentFilename
  • getAttachMsgInfo
  • getAvatars
  • getBirthdayRange
  • getBoardIndex
  • getBoardList
  • getBoardModeratorGroups
  • getBoardModerators
  • getBoardParents
  • getBoardTree
  • getCalendarGrid
  • getCalendarList
  • getCalendarWeek
  • getCommentModDetails
  • getCustFieldsMList
  • getDailyStats
  • getEventPoster
  • getEventProperties
  • getEventRange
  • getFileVersions
  • getHolidayRange
  • GetJumpTo
  • getLanguages
  • getLastPost
  • getLastPosts
  • GetMemberActivationCounts
  • getMemberData
  • getMemberGroups
  • getMembersOnlineStats
  • getMessageIcons
  • getMsgMemberID
  • getNewEventDatetimes
  • getNotifyPrefs
  • getPackageInfo
  • getRawAttachInfo
  • getReportComments
  • getReportDetails
  • getReports
  • getServerVersions
  • getTodayInfo
  • getTopic
  • getTreeOrder
  • getUserTimezone
  • getXmlMembers
  • getXmlNews
  • getXmlProfile
  • getXmlRecent
  • gif_outputAsPng
  • GroupList
  • groupMembership
  • groupMembership2
  • GroupPermissionsReport
  • GroupRequests
  • Groups
  • groupsAllowedTo
  • HandleComment
  • HandleReport
  • hash_benchmark
  • hash_length
  • hash_password
  • hash_salt
  • hash_verify_password
  • HelpIndex
  • HelpRules
  • highlight
  • highlight_php_code
  • host_from_ip
  • html_to_bbc
  • htmlspecialchars__recursive
  • htmltrim__recursive
  • https_redirect_active
  • httpsOn
  • iCalDownload
  • ignoreboards
  • imagecopyresamplebicubic
  • imagecreatefrombmp
  • imageMemoryCheck
  • ImportSmileys
  • inet_dtop
  • inet_ptod
  • initialize_inputs
  • InMaintenance
  • insertBanGroup
  • insertEvent
  • InstallCopy
  • InstallDir
  • installer_updateSettingsFile
  • installExit
  • InstallFile
  • InstallSmileySet
  • ip2range
  • iri_to_url
  • is_not_banned
  • is_not_guest
  • isAccessiblePM
  • isAllowedTo
  • isBannedEmail
  • isBrowser
  • isChildOf
  • isReservedName
  • issueWarning
  • isValidIP
  • isValidIPv6
  • JavaScriptEscape
  • JavaScriptModify
  • jeffsdatediff
  • JSMembers
  • KickGuest
  • legalise_bbc
  • list_getAttachDirs
  • list_getAttachments
  • list_getBanItems
  • list_getBanLogEntries
  • list_getBans
  • list_getBanTriggers
  • list_getBaseDirs
  • list_getBoardNotifications
  • list_getFiles
  • list_getGroupRequestCount
  • list_getGroupRequests
  • list_getGroupRequestsCount
  • list_getHolidays
  • list_getIPMessageCount
  • list_getIPMessages
  • list_getLanguages
  • list_getLanguagesList
  • list_getLoginCount
  • list_getLogins
  • list_getMailQueue
  • list_getMailQueueSize
  • list_getMembergroups
  • list_getMembers
  • list_getMessageIcons
  • list_getModLogEntries
  • list_getModLogEntryCount
  • list_getNews
  • list_getNumAttachments
  • list_getNumBanItems
  • list_getNumBanLogEntries
  • list_getNumBans
  • list_getNumBanTriggers
  • list_getNumFiles
  • list_getNumHolidays
  • list_getNumLanguages
  • list_getNumMembers
  • list_getNumSmileys
  • list_getNumSmileySets
  • list_getNumSpiderLogs
  • list_getNumSpiders
  • list_getNumSpiderStats
  • list_getNumTaskLogEntries
  • list_getNumUnapprovedAttachments
  • list_getNumUnwatched
  • list_getPackages
  • list_getProfileEditCount
  • list_getProfileEdits
  • list_getProfileFields
  • list_getProfileFieldSize
  • list_getScheduledTasks
  • list_getSmileys
  • list_getSmileySets
  • list_getSpiderLogs
  • list_getSpiders
  • list_getSpiderStats
  • list_getSubscribedUserCount
  • list_getSubscribedUsers
  • list_getTaskLogEntries
  • list_getTopicNotificationCount
  • list_getTopicNotifications
  • list_getUnapprovedAttachments
  • list_getUnwatched
  • list_getUserErrorCount
  • list_getUserErrors
  • list_getUserWarningCount
  • list_getUserWarnings
  • list_getWarningCount
  • list_getWarnings
  • list_getWarningTemplateCount
  • list_getWarningTemplates
  • list_getWatchedUserCount
  • list_getWatchedUserPosts
  • list_getWatchedUserPostsCount
  • list_getWatchedUsers
  • list_integration_hooks
  • listMembergroupMembers_Href
  • ListMessageIcons
  • listtree
  • load_database
  • load_file
  • load_lang_file
  • loadAttachmentContext
  • loadBoard
  • loadCacheAccelerator
  • loadCacheAPIs
  • loadCSSFile
  • loadCustomFields
  • loadDatabase
  • loadDatePair
  • loadDatePicker
  • loadEmailTemplate
  • loadEssentialData
  • loadEssentialThemeData
  • loadForumTests
  • loadGeneralSettingParameters
  • loadIllegalBBCHtmlGroups
  • loadIllegalGuestPermissions
  • loadIllegalPermissions
  • loadInstalledPackages
  • loadJavaScriptFile
  • loadLanguage
  • loadLocale
  • loadMemberContext
  • loadMemberCustomFields
  • loadMemberData
  • loadPaymentGateways
  • loadPermissionProfiles
  • loadPermissions
  • loadProfileFields
  • LoadRules
  • loadSearchAPIs
  • loadSession
  • loadSubscriptions
  • loadSubTemplate
  • loadTemplate
  • loadTheme
  • loadThemeOptions
  • loadTimePicker
  • loadUserSettings
  • LockTopic
  • LockVoting
  • log_ban
  • log_error
  • log_error_online
  • logAction
  • logActions
  • Login
  • Login2
  • LoginTFA
  • logLastDatabaseError
  • Logout
  • logSpider
  • logTriggersUpdates
  • MaintainCleanCache
  • MaintainDatabase
  • MaintainEmptyUnimportantLogs
  • MaintainFiles
  • MaintainFindFixErrors
  • MaintainMassMoveTopics
  • MaintainMembers
  • MaintainPurgeInactiveMembers
  • MaintainReattributePosts
  • MaintainRecountPosts
  • MaintainRemoveOldDrafts
  • MaintainRemoveOldPosts
  • MaintainRoutine
  • MaintainTopics
  • makeCustomFieldChanges
  • makeFilesWritable
  • makeNotificationChanges
  • makeThemeChanges
  • ManageAttachmentPaths
  • ManageAttachments
  • ManageAttachmentSettings
  • ManageAvatarSettings
  • ManageBoards
  • ManageBoardsMain
  • ManageCalendar
  • ManageLabels
  • ManageLanguages
  • ManageMail
  • ManageMaintenance
  • ManageNews
  • ManagePaidSubscriptions
  • ManagePostSettings
  • ManageRules
  • ManageScheduledTasks
  • ManageSearch
  • ManageSearchEngineSettings
  • ManageSmileys
  • markBoardsRead
  • markMessages
  • MarkRead
  • matchHighestPackageVersion
  • matchIPtoCIDR
  • matchPackageVersion
  • md5_hmac
  • MembergroupIndex
  • MembergroupMembers
  • MemberGroupsReport
  • Memberlist
  • membersAllowedTo
  • MembersAwaitingActivation
  • memoryReturnBytes
  • MergeDone
  • MergeExecute
  • MergeIndex
  • mergePosts
  • MergeTopics
  • MessageActionsApply
  • MessageDrafts
  • MessageFolder
  • MessageIndex
  • messageIndexBar
  • MessageKillAll
  • MessageMain
  • MessagePopup
  • MessagePost
  • MessagePost2
  • messagePostError
  • MessagePrune
  • MessageSearch
  • MessageSearch2
  • MessageSettings
  • mimespecialchars
  • mktree
  • MLAll
  • MLSearch
  • ModBlockGroupRequests
  • ModBlockNotes
  • ModBlockReportedMembers
  • ModBlockReportedPosts
  • ModBlockWatchedUsers
  • ModEndSession
  • ModerateGroups
  • ModerationHome
  • ModerationMain
  • ModerationSettings
  • ModifyAlertsSettings
  • ModifyAntispamSettings
  • ModifyBasicSettings
  • ModifyBBCSettings
  • modifyBoard
  • ModifyCacheSettings
  • ModifyCalendarSettings
  • ModifyCat
  • modifyCategory
  • ModifyCookieSettings
  • ModifyDatabaseSettings
  • ModifyDraftSettings
  • modifyEvent
  • ModifyFeatureSettings
  • ModifyGeneralModSettings
  • ModifyGeneralSecuritySettings
  • ModifyGeneralSettings
  • ModifyHolidays
  • ModifyLanguage
  • ModifyLanguages
  • ModifyLanguageSettings
  • ModifyLayoutSettings
  • ModifyLikesSettings
  • ModifyLoadBalancingSettings
  • ModifyLogSettings
  • ModifyMailSettings
  • ModifyMembergroup
  • ModifyMembergroup2
  • ModifyMembergroups
  • ModifyMembergroupsettings
  • ModifyMentionsSettings
  • ModifyModSettings
  • ModifyNewsSettings
  • ModifyPermissions
  • modifyPost
  • ModifyPostModeration
  • ModifyPostSettings
  • ModifyProfile
  • ModifyRegistrationSettings
  • ModifySettings
  • ModifySignatureSettings
  • ModifySubscription
  • ModifySubscriptionSettings
  • ModifyTopicSettings
  • ModifyUserSubscription
  • ModifyWarningSettings
  • ModifyWarningTemplate
  • MoveTopic
  • MoveTopic2
  • moveTopicConcurrence
  • moveTopics
  • MySQLConvertOldIp
  • newsletterpreview
  • newspreview
  • newTable
  • next_time
  • nextSubstep
  • notification
  • ob_sessrewrite
  • obExit
  • obExit_cron
  • OptimizeTables
  • package_chmod
  • package_create_backup
  • package_crypt
  • package_flush_cache
  • package_get_contents
  • package_put_contents
  • PackageBrowse
  • PackageDownload
  • PackageFTPTest
  • PackageGBrowse
  • PackageGet
  • PackageInstall
  • PackageInstallTest
  • PackageList
  • PackageOptions
  • PackagePermissions
  • PackagePermissionsAction
  • PackageRemove
  • packageRequireFTP
  • Packages
  • PackageServerAdd
  • PackageServerRemove
  • PackageServers
  • PackageUpload
  • parse_bbc
  • parse_path
  • parse_sql
  • parseAttachBBC
  • parseBoardMod
  • parseModification
  • parsePackageInfo
  • parsesmileys
  • password_get_info
  • password_hash
  • password_needs_rehash
  • password_verify
  • pauseAttachmentMaintenance
  • pauseMailQueueClear
  • pauseRepairProcess
  • pauseSignatureApplySettings
  • perform_task
  • PermissionByBoard
  • PermissionIndex
  • permute
  • php_version_check
  • phpBB3_password_check
  • PickTheme
  • PlushSearch1
  • PlushSearch2
  • populateDuplicateMembers
  • Post
  • Post2
  • PostModerationMain
  • prepareAttachsByMsg
  • prepareCLIhandler
  • prepareDBSettingContext
  • prepareDisplayContext
  • prepareLikesContext
  • prepareMailingForPreview
  • prepareMessageContext
  • prepareSearchContext
  • prepareServerSettingsContext
  • preparsecode
  • print_error
  • printMemberListRows
  • PrintTopic
  • processAttachments
  • profile_popup
  • profileLoadAvatarData
  • profileLoadGroups
  • profileLoadLanguages
  • profileLoadSignatureData
  • profileReloadUser
  • profileSaveAvatarData
  • profileSaveGroups
  • profileSendActivation
  • profileValidateEmail
  • profileValidateSignature
  • protected_alter
  • quickFileWritable
  • QuickInTopicModeration
  • QuickModeration
  • QuoteFast
  • random_bytes
  • random_int
  • RandomCompat_intval
  • RandomCompat_strlen
  • RandomCompat_substr
  • range2ip
  • read_tgz_data
  • read_tgz_file
  • read_zip_data
  • read_zip_file
  • ReadDraft
  • reapplySubscriptions
  • reattributePosts
  • rebuildModCache
  • recacheSpiderNames
  • RecentPosts
  • recountOpenReports
  • recursiveBoards
  • redirectexit
  • redirectLocation
  • ReduceMailQueue
  • reencodeImage
  • RegCenter
  • Register
  • Register2
  • RegisterCheckUsername
  • registerMember
  • registerSMStats
  • reloadSettings
  • RemindMe
  • RemindPick
  • remove_dir
  • remove_integration_function
  • remove_theme
  • RemoveAllAttachments
  • RemoveAttachment
  • RemoveAttachmentByAge
  • RemoveAttachmentBySize
  • removeBanGroups
  • removeBanLogs
  • removeBanTriggers
  • removeDeleteConcurrence
  • removeEvent
  • removeHolidays
  • removeIllegalBBCHtmlPermission
  • removeMembersFromGroups
  • removeMessage
  • removeMessages
  • RemoveOldTopics2
  • RemovePoll
  • removeSubscription
  • RemoveTheme
  • RemoveTopic2
  • removeTopics
  • reorderBoards
  • RepairAttachments
  • RepairBoards
  • replaceEntities__callback
  • ReportDetails
  • ReportedContent
  • ReportedMembers
  • ReportMessage
  • reportPost
  • ReportsMain
  • ReportToModerator
  • ReportToModerator2
  • reportUser
  • RequestMembers
  • resetPassword
  • resizeImage
  • resizeImageFile
  • RestoreTopic
  • RetrievePreview
  • safe_file_write
  • safe_serialize
  • safe_unserialize
  • sanitize_iri
  • sanitizeMSCutPaste
  • saveDBSettings
  • SaveDraft
  • saveModComment
  • SavePMDraft
  • saveProfileChanges
  • saveProfileFields
  • saveSettings
  • saveTriggers
  • scheduled_birthdayemails
  • scheduled_daily_digest
  • scheduled_daily_maintenance
  • scheduled_fetchSMfiles
  • scheduled_paid_subscriptions
  • scheduled_remove_old_drafts
  • scheduled_remove_temp_attachments
  • scheduled_remove_topic_redirect
  • scheduled_weekly_digest
  • scheduled_weekly_maintenance
  • ScheduledTasks
  • SearchEngines
  • SearchMembers
  • searchSort
  • SecretAnswer2
  • SecretAnswerInput
  • secureDirectory
  • SelectMailingMembers
  • send_http_status
  • SendActivation
  • sendmail
  • SendMailing
  • sendNotifications
  • sendpm
  • sentence_list
  • serialize_to_json
  • sessionClose
  • sessionDestroy
  • sessionGC
  • sessionOpen
  • sessionRead
  • sessionWrite
  • set_alert_icon
  • set_avatar_data
  • set_fatal_error_headers
  • set_tld_regex
  • SetCensor
  • setEventStartEnd
  • SetJavaScript
  • setKeys
  • setLoginCookie
  • setMemoryLimit
  • setNotifyPrefs
  • setPassword
  • setPassword2
  • SetQuickGroups
  • SetReserved
  • setSqlMode
  • setTFACookie
  • SetThemeOptions
  • SetThemeSettings
  • setup_fatal_error_context
  • setupMenuContext
  • setupProfileContext
  • setupThemeContext
  • sha1_core
  • sha1_ft
  • sha1_kt
  • sha1_raw
  • sha1_rol
  • sha1_smf
  • shorten_subject
  • ShowAdminHelp
  • showAlerts
  • showAttachment
  • showAttachments
  • ShowClosedReports
  • showCodeImage
  • ShowCustomProfiles
  • ShowDrafts
  • ShowHelp
  • showLetterImage
  • ShowNotice
  • showPermissions
  • ShowPHPinfoSettings
  • showPMDrafts
  • showPosts
  • showProfileDrafts
  • ShowReports
  • showUnwatched
  • ShowXmlFeed
  • sig_preview
  • smf_chmod
  • smf_crc32
  • smf_db_add_column
  • smf_db_add_index
  • smf_db_affected_rows
  • smf_db_allow_persistent
  • smf_db_backup_table
  • smf_db_calculate_type
  • smf_db_change_column
  • smf_db_create_query_column
  • smf_db_create_table
  • smf_db_create_word_search
  • smf_db_cte_support
  • smf_db_custom_order
  • smf_db_drop_table
  • smf_db_error
  • smf_db_error_backtrace
  • smf_db_error_insert
  • smf_db_escape_string
  • smf_db_escape_wildcard_string
  • smf_db_fetch_all
  • smf_db_get_server_info
  • smf_db_get_vendor
  • smf_db_get_version
  • smf_db_initiate
  • smf_db_insert
  • smf_db_insert_id
  • smf_db_list_columns
  • smf_db_list_indexes
  • smf_db_list_tables
  • smf_db_native_replace
  • smf_db_optimize_table
  • smf_db_query
  • smf_db_quote
  • smf_db_remove_column
  • smf_db_remove_index
  • smf_db_replacement__callback
  • smf_db_search_language
  • smf_db_search_query
  • smf_db_search_support
  • smf_db_select
  • smf_db_select_db
  • smf_db_table_sql
  • smf_db_table_structure
  • smf_db_transaction
  • smf_db_version
  • smf_error_handler
  • smf_error_handler_cron
  • smf_is_resource
  • smf_json_decode
  • smf_list_timezones
  • smf_main
  • smf_mysql_fetch_assoc
  • smf_mysql_fetch_row
  • smf_mysql_free_result
  • smf_mysql_insert_id
  • smf_mysql_num_rows
  • smf_mysql_real_escape_string
  • smf_seed_generator
  • smf_serverResponse
  • smf_setcookie
  • smf_strtolower
  • smf_var_export
  • SMStats
  • sortBoards
  • sortCategories
  • spamProtection
  • spell_check
  • spell_init
  • spell_suggest
  • SpellCheck
  • SpiderCheck
  • SpiderLogs
  • SpiderStats
  • SplitExecute
  • SplitIndex
  • SplitSelectionExecute
  • SplitSelectTopics
  • splitTopic
  • SplitTopics
  • ssi_boardNews
  • ssi_boardStats
  • ssi_checkPassword
  • ssi_copyright
  • ssi_fetchGroupMembers
  • ssi_fetchMember
  • ssi_fetchPosts
  • ssi_full_version
  • ssi_latestMember
  • ssi_login
  • ssi_logOnline
  • ssi_logout
  • ssi_menubar
  • ssi_news
  • ssi_pollVote
  • ssi_queryMembers
  • ssi_queryPosts
  • ssi_quickSearch
  • ssi_randomMember
  • ssi_recentAttachments
  • ssi_recentEvents
  • ssi_recentPoll
  • ssi_recentPosts
  • ssi_recentTopics
  • ssi_showPoll
  • ssi_shutdown
  • ssi_software_year
  • ssi_todaysBirthdays
  • ssi_todaysCalendar
  • ssi_todaysEvents
  • ssi_todaysHolidays
  • ssi_topBoards
  • ssi_topPoll
  • ssi_topPoster
  • ssi_topTopics
  • ssi_topTopicsReplies
  • ssi_topTopicsViews
  • ssi_version
  • ssi_welcome
  • ssi_whosOnline
  • ssl_cert_found
  • StaffReport
  • statPanel
  • Sticky
  • strip_php_comments
  • stripslashes__recursive
  • subscriptions
  • summary
  • TaskLog
  • TaskSettings
  • template_action_permissions
  • template_add_edit_group_boards_list
  • template_add_language
  • template_add_rule
  • template_additional_rows
  • template_addsmiley
  • template_admin
  • template_admin_account
  • template_admin_browse
  • template_admin_login
  • template_admin_quick_search
  • template_admin_register
  • template_admin_search_results
  • template_after
  • template_alert_configuration
  • template_alert_notifications_boards
  • template_alert_notifications_topics
  • template_alerts_all_read
  • template_alerts_popup
  • template_announce
  • template_announcement_send
  • template_ask
  • template_ask_delete
  • template_attachment_errors
  • template_attachment_paths
  • template_attachment_repair
  • template_avatar_settings_above
  • template_avatar_settings_below
  • template_backup_database
  • template_backup_xml
  • template_ban_edit
  • template_ban_edit_trigger
  • template_bcd
  • template_bi_board_children
  • template_bi_board_icon
  • template_bi_board_info
  • template_bi_board_lastpost
  • template_bi_board_stats
  • template_bi_redirect_icon
  • template_bi_redirect_stats
  • template_boardindex_outer_above
  • template_boardindex_outer_below
  • template_body_above
  • template_body_below
  • template_browse
  • template_button_strip
  • template_by_board
  • template_calendar_top
  • template_callback_question_answer_list
  • template_check_username
  • template_chmod
  • template_chmod_files
  • template_choose_payment
  • template_clean_cache_button_above
  • template_clean_cache_button_below
  • template_confirm_board_delete
  • template_confirm_category_delete
  • template_control_chmod
  • template_control_richedit
  • template_control_richedit_buttons
  • template_control_verification
  • template_convert_entities
  • template_convert_msgbody
  • template_convert_utf8
  • template_convert_xml
  • template_coppa
  • template_coppa_form
  • template_copy_template
  • template_create_index
  • template_create_index_done
  • template_create_index_progress
  • template_create_list_menu
  • template_credits
  • template_css
  • template_database_changes
  • template_database_settings
  • template_database_xml
  • template_delete_install
  • template_delete_subscription
  • template_deleteAccount
  • template_download_language
  • template_downloaded
  • template_edit_agreement
  • template_edit_browse
  • template_edit_censored
  • template_edit_comment
  • template_edit_file
  • template_edit_group
  • template_edit_holiday
  • template_edit_list
  • template_edit_options
  • template_edit_profile_field
  • template_edit_profiles
  • template_edit_reserved_words
  • template_edit_scheduled_tasks
  • template_edit_style
  • template_edit_template
  • template_editBuddies
  • template_editicon
  • template_editicons
  • template_editIgnoreList
  • template_editsets
  • template_email_members
  • template_email_members_compose
  • template_email_members_send
  • template_error_log
  • template_error_message
  • template_event_post
  • template_examine
  • template_extract_package
  • template_fatal_error
  • template_file_permissions
  • template_find_members
  • template_folder
  • template_footer
  • template_forum_settings
  • template_ftp_required
  • template_generic
  • template_generic_menu
  • template_generic_menu_dropdown_above
  • template_generic_menu_dropdown_below
  • template_generic_menu_tabs
  • template_generic_xml
  • template_generic_xml_recursive
  • template_group_members
  • template_group_request_reason
  • template_group_requests_block
  • template_groupMembership
  • template_header
  • template_hms
  • template_homepage_sample1
  • template_homepage_sample1_html
  • template_homepage_sample1_php
  • template_html_above
  • template_html_below
  • template_ic_block_calendar
  • template_ic_block_online
  • template_ic_block_recent
  • template_ic_block_stats
  • template_ignoreboards
  • template_include
  • template_info_center
  • template_init
  • template_inline_permissions
  • template_install_above
  • template_install_below
  • template_install_options
  • template_installed
  • template_issueWarning
  • template_javascript
  • template_jump_to
  • template_kick_guest
  • template_labels
  • template_like
  • template_list
  • template_list_themes
  • template_load_warning_variables
  • template_login
  • template_login_tfa
  • template_mailtest
  • template_main
  • template_maint_warning_above
  • template_maint_warning_below
  • template_maintain_database
  • template_maintain_members
  • template_maintain_routine
  • template_maintain_topics
  • template_maintenance
  • template_manual
  • template_max_size
  • template_menu
  • template_merge
  • template_merge_done
  • template_merge_extra_options
  • template_message_icons
  • template_moderation_center
  • template_moderation_settings
  • template_modify_board
  • template_modify_category
  • template_modify_group
  • template_modify_group_display
  • template_modify_language_entries
  • template_modify_subscription
  • template_modify_user_subscription
  • template_modify_weights
  • template_modifydone
  • template_modifyfast
  • template_modifyset
  • template_modifysmiley
  • template_modifytopicdone
  • template_move
  • template_new_group
  • template_news_lists
  • template_newsfader
  • template_not_done
  • template_notes
  • template_notify_board
  • template_omfg
  • template_optimize
  • template_options
  • template_package_confirm
  • template_package_list
  • template_paid_done
  • template_permission_index
  • template_permission_show_contents
  • template_php_info
  • template_pick
  • template_pm
  • template_pm_above
  • template_pm_below
  • template_pm_popup
  • template_populate_database
  • template_popup
  • template_post
  • template_post_header
  • template_postmod_permissions
  • template_print
  • template_print_above
  • template_print_below
  • template_print_options
  • template_profile_above
  • template_profile_avatar_select
  • template_profile_below
  • template_profile_birthdate
  • template_profile_group_manage
  • template_profile_pm_settings
  • template_profile_popup
  • template_profile_save
  • template_profile_signature_modify
  • template_profile_smiley_pick
  • template_profile_tfa
  • template_profile_theme_pick
  • template_profile_theme_settings
  • template_profile_timeformat_modify
  • template_prune
  • template_quickbuttons
  • template_quickreply
  • template_quotefast
  • template_recent
  • template_redirect_options
  • template_registration_agreement
  • template_registration_form
  • template_reminder_pick
  • template_repair_boards
  • template_replies
  • template_report_message
  • template_report_message_complete
  • template_report_type
  • template_reported_members
  • template_reported_members_block
  • template_reported_posts
  • template_reported_posts_block
  • template_reported_users_block
  • template_resend
  • template_reset_list
  • template_results
  • template_retry_activate
  • template_rules
  • template_search
  • template_search_members
  • template_search_results
  • template_select
  • template_select_search_method
  • template_send
  • template_sendbody
  • template_sent
  • template_serialize_json
  • template_serialize_json_xml
  • template_servers
  • template_set_options
  • template_set_password
  • template_set_settings
  • template_setorder
  • template_settings
  • template_show_backtrace
  • template_show_custom_profile
  • template_show_file
  • template_show_list
  • template_show_month_grid
  • template_show_notice
  • template_show_settings
  • template_show_spider_logs
  • template_show_spider_stats
  • template_show_upcoming_list
  • template_show_week_grid
  • template_showAlerts
  • template_showDrafts
  • template_showPermissions
  • template_showPMDrafts
  • template_showPosts
  • template_single_pm
  • template_single_post
  • template_spellcheck
  • template_spider_edit
  • template_split
  • template_ssi_above
  • template_ssi_below
  • template_statPanel
  • template_stats
  • template_subject_list
  • template_summary
  • template_terms
  • template_tfadisable
  • template_tfasetup
  • template_tfasetup_backup
  • template_thetime
  • template_topic_legend
  • template_trackActivity
  • template_trackIP
  • template_unapproved_posts
  • template_unread
  • template_upgrade_above
  • template_upgrade_below
  • template_upgrade_complete
  • template_upgrade_options
  • template_user_subscription
  • template_user_watch_post_callback
  • template_verification_sound
  • template_view_operations
  • template_view_package
  • template_view_scheduled_tasks
  • template_view_versions
  • template_viewmemberreport
  • template_viewmodreport
  • template_viewWarning
  • template_warn_template
  • template_warning
  • template_warning_divs
  • template_watched_users
  • template_welcome_message
  • template_xml_above
  • template_xml_below
  • TestMailSend
  • text2words
  • textfield_alter
  • tfadisable
  • tfasetup
  • theme
  • theme_copyright
  • theme_inline_permissions
  • theme_install
  • theme_linktree
  • ThemeAdmin
  • ThemeInstall
  • ThemeList
  • ThemesMain
  • throw_error
  • time_since
  • timeformat
  • TopicNotify
  • trackActivity
  • trackEdits
  • trackGroupReq
  • tracking
  • TrackIP
  • TrackLogins
  • trackStats
  • trackStatsUsersOnline
  • TransferAttachments
  • truncate_array
  • un_htmlspecialchars
  • un_preparsecode
  • UnapprovedAttachments
  • UnapprovedPosts
  • unescapestring__recursive
  • UnreadTopics
  • updateAdminPreferences
  • updateBanGroup
  • updateBanMembers
  • updateBoardManagers
  • updateChildPermissions
  • updateDbLastError
  • updateLastMessages
  • updateMemberData
  • updateReport
  • updateSettings
  • updateSettingsFile
  • updateStats
  • updateTriggers
  • upgrade_clean_cache
  • upgrade_query
  • upgradeExit
  • upgradeGetColumnInfo
  • UpgradeOptions
  • url_exists
  • url_image_size
  • url_parts
  • url_to_iri
  • urldecode__recursive
  • user_info_callback
  • utf8_strtolower
  • utf8_strtoupper
  • validate_iri
  • validateEventPost
  • validatePassword
  • validatePasswordFlood
  • validateSession
  • validateToken
  • validateTriggers
  • validateUsername
  • VerificationCode
  • VersionDetail
  • ViewBacktrace
  • ViewErrorLog
  • ViewFile
  • ViewMemberlist
  • ViewMembers
  • ViewModlog
  • ViewOperations
  • ViewQuery
  • ViewSpiders
  • ViewSubscribedUsers
  • ViewSubscriptions
  • viewWarning
  • ViewWarningLog
  • ViewWarnings
  • ViewWarningTemplates
  • ViewWatchedUsers
  • Vote
  • warning_preview
  • Welcome
  • WelcomeLogin
  • Who
  • WrapAction
  • writeLog
  • XmlDraft
  • XMLhttpMain
  • Overview
  • Namespace
  • Class
   1:    2:    3:    4:    5:    6:    7:    8:    9:   10:   11:   12:   13:   14:   15:   16:   17:   18:   19:   20:   21:   22:   23:   24:   25:   26:   27:   28:   29:   30:   31:   32:   33:   34:   35:   36:   37:   38:   39:   40:   41:   42:   43:   44:   45:   46:   47:   48:   49:   50:   51:   52:   53:   54:   55:   56:   57:   58:   59:   60:   61:   62:   63:   64:   65:   66:   67:   68:   69:   70:   71:   72:   73:   74:   75:   76:   77:   78:   79:   80:   81:   82:   83:   84:   85:   86:   87:   88:   89:   90:   91:   92:   93:   94:   95:   96:   97:   98:   99:  100:  101:  102:  103:  104:  105:  106:  107:  108:  109:  110:  111:  112:  113:  114:  115:  116:  117:  118:  119:  120:  121:  122:  123:  124:  125:  126:  127:  128:  129:  130:  131:  132:  133:  134:  135:  136:  137:  138:  139:  140:  141:  142:  143:  144:  145:  146:  147:  148:  149:  150:  151:  152:  153:  154:  155:  156:  157:  158:  159:  160:  161:  162:  163:  164:  165:  166:  167:  168:  169:  170:  171:  172:  173:  174:  175:  176:  177:  178:  179:  180:  181:  182:  183:  184:  185:  186:  187:  188:  189:  190:  191:  192:  193:  194:  195:  196:  197:  198:  199:  200:  201:  202:  203:  204:  205:  206:  207:  208:  209:  210:  211:  212:  213:  214:  215:  216:  217:  218:  219:  220:  221:  222:  223:  224:  225:  226:  227:  228:  229:  230:  231:  232:  233:  234:  235:  236:  237:  238:  239:  240:  241:  242:  243:  244:  245:  246:  247:  248:  249:  250:  251:  252:  253:  254:  255:  256:  257:  258:  259:  260:  261:  262:  263:  264:  265:  266:  267:  268:  269:  270:  271:  272:  273:  274:  275:  276:  277:  278:  279:  280:  281:  282:  283:  284:  285:  286:  287:  288:  289:  290:  291:  292:  293:  294:  295:  296:  297:  298:  299:  300:  301:  302:  303:  304:  305:  306:  307:  308:  309:  310:  311:  312:  313:  314:  315:  316:  317:  318:  319:  320:  321:  322:  323:  324:  325:  326:  327:  328:  329:  330:  331:  332:  333:  334:  335:  336:  337:  338:  339:  340:  341:  342:  343:  344:  345:  346:  347:  348:  349:  350:  351:  352:  353:  354:  355:  356:  357:  358:  359:  360:  361:  362:  363:  364:  365:  366:  367:  368:  369:  370:  371:  372:  373:  374:  375:  376:  377:  378:  379:  380:  381:  382:  383:  384:  385:  386:  387:  388:  389:  390:  391:  392:  393:  394:  395:  396:  397:  398:  399:  400:  401:  402:  403:  404:  405:  406:  407:  408:  409:  410:  411:  412:  413:  414:  415:  416:  417:  418:  419:  420:  421:  422:  423:  424:  425:  426:  427:  428:  429:  430:  431:  432:  433:  434:  435:  436:  437:  438:  439:  440:  441:  442:  443:  444:  445:  446:  447:  448:  449:  450:  451:  452:  453:  454:  455:  456:  457:  458:  459:  460:  461:  462:  463:  464:  465:  466:  467:  468:  469:  470:  471:  472:  473:  474:  475:  476:  477:  478:  479:  480:  481:  482:  483:  484:  485:  486:  487:  488:  489:  490:  491:  492:  493:  494:  495:  496:  497:  498:  499:  500:  501:  502:  503:  504:  505:  506:  507:  508:  509:  510:  511:  512:  513:  514:  515:  516:  517:  518:  519:  520:  521:  522:  523:  524:  525:  526:  527:  528:  529:  530:  531:  532:  533:  534:  535:  536:  537:  538:  539:  540:  541:  542:  543:  544:  545:  546:  547:  548:  549:  550:  551:  552:  553:  554:  555:  556:  557:  558:  559:  560:  561:  562:  563:  564:  565:  566:  567:  568:  569:  570:  571:  572:  573:  574:  575:  576:  577:  578:  579:  580:  581:  582:  583:  584:  585:  586:  587:  588:  589:  590:  591:  592:  593:  594:  595:  596:  597:  598:  599:  600:  601:  602:  603:  604:  605:  606:  607:  608:  609:  610:  611:  612:  613:  614:  615:  616:  617:  618:  619:  620:  621:  622:  623:  624:  625:  626:  627:  628:  629:  630:  631:  632:  633:  634:  635:  636:  637:  638:  639:  640:  641:  642:  643:  644:  645:  646:  647:  648:  649:  650:  651:  652:  653:  654:  655:  656:  657:  658:  659:  660:  661:  662:  663:  664:  665:  666:  667:  668:  669:  670:  671:  672:  673:  674:  675:  676:  677:  678:  679:  680:  681:  682:  683:  684:  685:  686:  687:  688:  689:  690:  691:  692:  693:  694:  695:  696:  697:  698:  699:  700:  701:  702:  703:  704:  705:  706:  707:  708:  709:  710:  711:  712:  713:  714:  715:  716:  717:  718:  719:  720:  721:  722:  723:  724:  725:  726:  727:  728:  729:  730:  731:  732:  733:  734:  735:  736:  737:  738:  739:  740:  741:  742:  743:  744:  745:  746:  747:  748:  749:  750:  751:  752:  753:  754:  755:  756:  757:  758:  759:  760:  761:  762:  763:  764:  765:  766:  767:  768:  769:  770:  771:  772:  773:  774:  775:  776:  777:  778:  779:  780:  781:  782:  783:  784:  785:  786:  787:  788:  789:  790:  791:  792:  793:  794:  795:  796:  797:  798:  799:  800:  801:  802:  803:  804:  805:  806:  807:  808:  809:  810:  811:  812:  813:  814:  815:  816:  817:  818:  819:  820:  821:  822:  823:  824:  825:  826:  827:  828:  829:  830:  831:  832:  833:  834:  835:  836:  837:  838:  839:  840:  841:  842:  843:  844:  845:  846:  847:  848:  849:  850:  851:  852:  853:  854:  855:  856:  857:  858:  859:  860:  861:  862:  863:  864:  865:  866:  867:  868:  869:  870:  871:  872:  873:  874:  875:  876:  877:  878:  879:  880:  881:  882:  883:  884:  885:  886:  887:  888:  889:  890:  891:  892:  893:  894:  895:  896:  897:  898:  899:  900:  901:  902:  903:  904:  905:  906:  907:  908:  909:  910:  911:  912:  913:  914:  915:  916:  917:  918:  919:  920:  921:  922:  923:  924:  925:  926:  927:  928:  929:  930:  931:  932:  933:  934:  935:  936:  937:  938:  939:  940:  941:  942:  943:  944:  945:  946:  947:  948:  949:  950:  951:  952:  953:  954:  955:  956:  957:  958:  959:  960:  961:  962:  963:  964:  965:  966:  967:  968:  969:  970:  971:  972:  973:  974:  975:  976:  977:  978:  979:  980:  981:  982:  983:  984:  985:  986:  987:  988:  989:  990:  991:  992:  993:  994:  995:  996:  997:  998:  999: 1000: 1001: 1002: 1003: 1004: 1005: 1006: 1007: 1008: 1009: 1010: 1011: 1012: 1013: 1014: 1015: 1016: 1017: 1018: 1019: 1020: 1021: 1022: 1023: 1024: 1025: 1026: 1027: 1028: 1029: 1030: 1031: 1032: 1033: 1034: 1035: 1036: 1037: 1038: 1039: 1040: 1041: 1042: 1043: 1044: 1045: 1046: 1047: 1048: 1049: 1050: 1051: 1052: 1053: 1054: 1055: 1056: 1057: 1058: 1059: 1060: 1061: 1062: 1063: 1064: 1065: 1066: 1067: 1068: 1069: 1070: 1071: 1072: 1073: 1074: 1075: 1076: 1077: 1078: 1079: 1080: 1081: 1082: 1083: 1084: 1085: 1086: 1087: 1088: 1089: 1090: 1091: 1092: 1093: 1094: 1095: 1096: 1097: 1098: 1099: 1100: 1101: 1102: 1103: 1104: 1105: 1106: 1107: 1108: 1109: 1110: 1111: 1112: 1113: 1114: 1115: 1116: 1117: 1118: 1119: 1120: 1121: 1122: 1123: 1124: 1125: 1126: 1127: 1128: 1129: 1130: 1131: 1132: 1133: 1134: 1135: 1136: 1137: 1138: 1139: 1140: 1141: 1142: 1143: 1144: 1145: 1146: 1147: 1148: 1149: 1150: 1151: 1152: 1153: 1154: 1155: 1156: 1157: 1158: 1159: 1160: 1161: 1162: 1163: 1164: 1165: 1166: 1167: 1168: 1169: 1170: 1171: 1172: 1173: 1174: 1175: 1176: 1177: 1178: 1179: 1180: 1181: 1182: 1183: 1184: 1185: 1186: 1187: 1188: 1189: 1190: 1191: 1192: 1193: 1194: 1195: 1196: 1197: 1198: 1199: 1200: 1201: 1202: 1203: 1204: 1205: 1206: 1207: 1208: 1209: 1210: 1211: 1212: 1213: 1214: 1215: 1216: 1217: 1218: 1219: 1220: 1221: 1222: 1223: 1224: 1225: 1226: 1227: 1228: 1229: 1230: 1231: 1232: 1233: 1234: 1235: 1236: 1237: 1238: 1239: 1240: 1241: 1242: 1243: 1244: 1245: 1246: 1247: 1248: 1249: 1250: 1251: 1252: 1253: 1254: 1255: 1256: 1257: 1258: 1259: 1260: 1261: 1262: 1263: 1264: 1265: 1266: 1267: 1268: 1269: 1270: 1271: 1272: 1273: 1274: 1275: 1276: 1277: 1278: 1279: 1280: 1281: 1282: 1283: 1284: 1285: 1286: 1287: 1288: 1289: 1290: 1291: 1292: 1293: 1294: 1295: 1296: 1297: 1298: 1299: 1300: 1301: 1302: 1303: 1304: 1305: 1306: 1307: 1308: 1309: 1310: 1311: 1312: 1313: 1314: 1315: 1316: 1317: 1318: 1319: 1320: 1321: 1322: 1323: 1324: 1325: 1326: 1327: 1328: 1329: 1330: 1331: 1332: 1333: 1334: 1335: 1336: 1337: 1338: 1339: 1340: 1341: 1342: 1343: 1344: 1345: 1346: 1347: 1348: 1349: 1350: 1351: 1352: 1353: 1354: 1355: 1356: 1357: 1358: 1359: 1360: 1361: 1362: 1363: 1364: 1365: 1366: 1367: 1368: 1369: 1370: 1371: 1372: 1373: 1374: 1375: 1376: 1377: 1378: 1379: 1380: 1381: 1382: 1383: 1384: 1385: 1386: 1387: 1388: 1389: 1390: 1391: 1392: 1393: 1394: 1395: 1396: 1397: 1398: 1399: 1400: 1401: 1402: 1403: 1404: 1405: 1406: 1407: 1408: 1409: 1410: 1411: 1412: 1413: 1414: 1415: 1416: 1417: 1418: 1419: 1420: 1421: 1422: 1423: 1424: 1425: 1426: 1427: 1428: 1429: 1430: 1431: 1432: 1433: 1434: 1435: 1436: 1437: 1438: 1439: 1440: 1441: 1442: 1443: 1444: 1445: 1446: 1447: 1448: 1449: 1450: 1451: 1452: 1453: 1454: 1455: 1456: 1457: 1458: 1459: 1460: 1461: 1462: 1463: 1464: 1465: 1466: 1467: 1468: 1469: 1470: 1471: 1472: 1473: 1474: 1475: 1476: 1477: 1478: 1479: 1480: 1481: 1482: 1483: 1484: 1485: 1486: 1487: 1488: 1489: 1490: 1491: 1492: 1493: 1494: 1495: 1496: 1497: 1498: 1499: 1500: 1501: 1502: 1503: 1504: 1505: 1506: 1507: 1508: 1509: 1510: 1511: 1512: 1513: 1514: 1515: 1516: 1517: 1518: 1519: 1520: 1521: 1522: 1523: 1524: 1525: 1526: 1527: 1528: 1529: 1530: 1531: 1532: 1533: 1534: 1535: 1536: 1537: 1538: 1539: 1540: 1541: 1542: 1543: 1544: 1545: 1546: 1547: 1548: 1549: 1550: 1551: 1552: 1553: 1554: 1555: 1556: 1557: 1558: 1559: 1560: 1561: 1562: 1563: 1564: 1565: 1566: 1567: 1568: 1569: 1570: 1571: 1572: 1573: 1574: 1575: 1576: 1577: 1578: 1579: 1580: 1581: 1582: 1583: 1584: 1585: 1586: 1587: 1588: 1589: 1590: 1591: 1592: 1593: 1594: 1595: 1596: 1597: 1598: 1599: 1600: 1601: 1602: 1603: 1604: 1605: 1606: 1607: 1608: 1609: 1610: 1611: 1612: 1613: 1614: 1615: 1616: 1617: 1618: 1619: 1620: 1621: 1622: 1623: 1624: 1625: 1626: 1627: 1628: 1629: 1630: 1631: 1632: 1633: 1634: 1635: 1636: 1637: 1638: 1639: 1640: 1641: 1642: 1643: 1644: 1645: 1646: 1647: 1648: 1649: 1650: 1651: 1652: 1653: 1654: 1655: 1656: 1657: 1658: 1659: 1660: 1661: 1662: 1663: 
<?php
/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines https://www.simplemachines.org
 * @copyright 2020 Simple Machines and individual contributors
 * @license https://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.1 RC2
 */

/**
 * This is the administration center home.
 */
function template_admin()
{
    global $context, $scripturl, $txt, $modSettings;

    // Is there an update available?
    echo '
                        <div id="update_section"></div>';

    echo '
                        <div id="admin_main_section">';

    // Display the "live news" from simplemachines.org.
    echo '
                            <div id="live_news" class="floatleft">
                                <div class="cat_bar">
                                    <h3 class="catbg">
                                        <a href="', $scripturl, '?action=helpadmin;help=live_news" onclick="return reqOverlayDiv(this.href);" class="help"><span class="main_icons help" title="', $txt['help'], '"></span></a> ', $txt['live'], '
                                    </h3>
                                </div>
                                <div class="windowbg nopadding">
                                    <div id="smfAnnouncements">', $txt['smf_news_cant_connect'], '</div>
                                </div>
                            </div>';

    // Show the user version information from their server.
    echo '
                            <div id="support_info" class="floatright">
                                <div class="cat_bar">
                                    <h3 class="catbg">
                                        <a href="', $scripturl, '?action=admin;area=credits">', $txt['support_title'], '</a>
                                    </h3>
                                </div>
                                <div class="windowbg nopadding">
                                    <div id="version_details" class="padding">
                                        <strong>', $txt['support_versions'], ':</strong><br>
                                        ', $txt['support_versions_forum'], ':
                                        <em id="yourVersion">', $context['forum_version'], '</em><br>
                                        ', $txt['support_versions_current'], ':
                                        <em id="smfVersion">??</em><br>
                                        ', $context['can_admin'] ? '<a href="' . $scripturl . '?action=admin;area=maintain;sa=routine;activity=version">' . $txt['version_check_more'] . '</a>' : '', '<br>';

    // Display all the members who can administrate the forum.
    echo '
                                        <br>
                                        <strong>', $txt['administrators'], ':</strong>
                                        ', implode(', ', $context['administrators']);

    // If we have lots of admins... don't show them all.
    if (!empty($context['more_admins_link']))
        echo '
                                        (', $context['more_admins_link'], ')';

    echo '
                                    </div><!-- #version_details -->
                                </div><!-- .windowbg -->
                            </div><!-- #support_info -->
                        </div><!-- #admin_main_section -->';

    foreach ($context[$context['admin_menu_name']]['sections'] as $area_id => $area)
    {
        echo '
                        <fieldset id="group_', $area_id, '" class="windowbg admin_group">
                            <legend>', $area['title'], '</legend>';

        foreach ($area['areas'] as $item_id => $item)
        {
            // No point showing the 'home' page here, we're already on it!
            if ($area_id == 'forum' && $item_id == 'index')
                continue;

            $url = isset($item['url']) ? $item['url'] : $scripturl . '?action=admin;area=' . $item_id . (!empty($context[$context['admin_menu_name']]['extra_parameters']) ? $context[$context['admin_menu_name']]['extra_parameters'] : '');

            if (!empty($item['icon_file']))
                echo '
                            <a href="', $url, '" class="admin_group', !empty($item['inactive']) ? ' inactive' : '', '"><img class="large_admin_menu_icon_file" src="', $item['icon_file'], '" alt="">', $item['label'], '</a>';
            else
                echo '
                            <a href="', $url, '"><span class="large_', $item['icon_class'], !empty($item['inactive']) ? ' inactive' : '', '"></span>', $item['label'], '</a>';
        }

        echo '
                        </fieldset>';
    }

    // The below functions include all the scripts needed from the simplemachines.org site. The language and format are passed for internationalization.
    if (empty($modSettings['disable_smf_js']))
        echo '
                    <script src="', $scripturl, '?action=viewsmfile;filename=current-version.js"></script>
                    <script src="', $scripturl, '?action=viewsmfile;filename=latest-news.js"></script>';

    // This sets the announcements and current versions themselves ;).
    echo '
                    <script>
                        var oAdminIndex = new smf_AdminIndex({
                            sSelf: \'oAdminCenter\',

                            bLoadAnnouncements: true,
                            sAnnouncementTemplate: ', JavaScriptEscape('
                                <dl>
                                    %content%
                                </dl>
                            '), ',
                            sAnnouncementMessageTemplate: ', JavaScriptEscape('
                                <dt><a href="%href%">%subject%</a> ' . $txt['on'] . ' %time%</dt>
                                <dd>
                                    %message%
                                </dd>
                            '), ',
                            sAnnouncementContainerId: \'smfAnnouncements\',

                            bLoadVersions: true,
                            sSmfVersionContainerId: \'smfVersion\',
                            sYourVersionContainerId: \'yourVersion\',
                            sVersionOutdatedTemplate: ', JavaScriptEscape('
                                <span class="alert">%currentVersion%</span>
                            '), ',

                            bLoadUpdateNotification: true,
                            sUpdateNotificationContainerId: \'update_section\',
                            sUpdateNotificationDefaultTitle: ', JavaScriptEscape($txt['update_available']), ',
                            sUpdateNotificationDefaultMessage: ', JavaScriptEscape($txt['update_message']), ',
                            sUpdateNotificationTemplate: ', JavaScriptEscape('
                                <h3 id="update_title">
                                    %title%
                                </h3>
                                <div id="update_message" class="smalltext">
                                    %message%
                                </div>
                            '), ',
                            sUpdateNotificationLink: smf_scripturl + ', JavaScriptEscape('?action=admin;area=packages;pgdownload;auto;package=%package%;' . $context['session_var'] . '=' . $context['session_id']), '
                        });
                    </script>';
}

/**
 * Show some support information and credits to those who helped make this.
 */
function template_credits()
{
    global $context, $settings, $scripturl, $txt;

    // Show the user version information from their server.
    echo '
                    <div class="roundframe noup">
                        <div class="title_bar">
                            <h3 class="titlebg">
                                ', $txt['support_title'], '
                            </h3>
                        </div>
                        <div class="padding">
                            <img src="', $settings['images_url'], '/smflogo.svg" class="floatright" alt="">
                            <strong>', $txt['support_versions'], ':</strong><br>
                                ', $txt['support_versions_forum'], ':
                            <em id="yourVersion">', $context['forum_version'], '</em>', $context['can_admin'] ? ' <a href="' . $scripturl . '?action=admin;area=maintain;sa=routine;activity=version">' . $txt['version_check_more'] . '</a>' : '', '<br>
                                ', $txt['support_versions_current'], ':
                            <em id="smfVersion">??</em><br>';

    // Display all the variables we have server information for.
    foreach ($context['current_versions'] as $version)
    {
        echo '
                                ', $version['title'], ':
                            <em>', $version['version'], '</em>';

        // more details for this item, show them a link
        if ($context['can_admin'] && isset($version['more']))
            echo
                            ' <a href="', $scripturl, $version['more'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['version_check_more'], '</a>';
        echo '
                            <br>';
    }

    echo '
                        </div><!-- .padding -->';

    // Point the admin to common support resources.
    echo '
                        <div id="support_resources" class="title_bar">
                            <h3 class="titlebg">
                                ', $txt['support_resources'], '
                            </h3>
                        </div>
                        <div class="padding">
                            <p>', $txt['support_resources_p1'], '</p>
                            <p>', $txt['support_resources_p2'], '</p>
                        </div>';

    // The most important part - the credits :P.
    echo '
                        <div id="credits_sections" class="title_bar">
                            <h3 class="titlebg">
                                ', $txt['admin_credits'], '
                            </h3>
                        </div>
                        <div id="support_credits_list" class="padding">';

    foreach ($context['credits'] as $section)
    {
        if (isset($section['pretext']))
            echo '
                            <p>', $section['pretext'], '</p>
                            <hr>';

        echo '
                            <dl>';

        foreach ($section['groups'] as $group)
        {
            if (isset($group['title']))
                echo '
                                <dt>
                                    <strong>', $group['title'], ':</strong>
                                </dt>';

            echo '
                                <dd>', implode(', ', $group['members']), '</dd>';
        }

        echo '
                            </dl>';

        if (isset($section['posttext']))
            echo '
                            <hr>
                            <p>', $section['posttext'], '</p>';
    }

    echo '
                        </div><!-- .padding -->
                    </div><!-- #support_credits -->';

    // This makes all the support information available to the support script...
    echo '
                    <script>
                        var smfSupportVersions = {};

                        smfSupportVersions.forum = "', $context['forum_version'], '";';

    // Don't worry, none of this is logged, it's just used to give information that might be of use.
    foreach ($context['current_versions'] as $variable => $version)
        echo '
                        smfSupportVersions.', $variable, ' = "', $version['version'], '";';

    // Now we just have to include the script and wait ;).
    echo '
                    </script>
                    <script src="', $scripturl, '?action=viewsmfile;filename=current-version.js"></script>
                    <script src="', $scripturl, '?action=viewsmfile;filename=latest-news.js"></script>';

    // This sets the latest support stuff.
    echo '
                    <script>
                        function smfCurrentVersion()
                        {
                            var smfVer, yourVer;

                            if (!window.smfVersion)
                                return;

                            smfVer = document.getElementById("smfVersion");
                            yourVer = document.getElementById("yourVersion");

                            setInnerHTML(smfVer, window.smfVersion);

                            var currentVersion = getInnerHTML(yourVer);
                            if (currentVersion != window.smfVersion)
                                setInnerHTML(yourVer, "<span class=\"alert\">" + currentVersion + "</span>");
                        }
                        addLoadEvent(smfCurrentVersion)
                    </script>';
}

/**
 * Displays information about file versions installed, and compares them to current version.
 */
function template_view_versions()
{
    global $context, $scripturl, $txt;

    echo '
                        <div id="section_header" class="cat_bar">
                            <h3 class="catbg">
                                ', $txt['admin_version_check'], '
                            </h3>
                        </div>
                        <div class="information">', $txt['version_check_desc'], '</div>
                        <div id="versions">
                            <table class="table_grid">
                                <thead>
                                    <tr class="title_bar">
                                        <th class="half_table">
                                            <strong>', $txt['admin_smffile'], '</strong>
                                        </th>
                                        <th class="quarter_table">
                                            <strong>', $txt['dvc_your'], '</strong>
                                        </th>
                                        <th class="quarter_table">
                                            <strong>', $txt['dvc_current'], '</strong>
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>';

    // The current version of the core SMF package.
    echo '
                                    <tr class="windowbg">
                                        <td class="half_table">
                                            ', $txt['admin_smfpackage'], '
                                        </td>
                                        <td class="quarter_table">
                                            <em id="yourSMF">', $context['forum_version'], '</em>
                                        </td>
                                        <td class="quarter_table">
                                            <em id="currentSMF">??</em>
                                        </td>
                                    </tr>';

    // Now list all the source file versions, starting with the overall version (if all match!).
    echo '
                                    <tr class="windowbg">
                                        <td class="half_table">
                                            <a href="#" id="Sources-link">', $txt['dvc_sources'], '</a>
                                        </td>
                                        <td class="quarter_table">
                                            <em id="yourSources">??</em>
                                        </td>
                                        <td class="quarter_table">
                                            <em id="currentSources">??</em>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>

                            <table id="Sources" class="table_grid">
                                <tbody>';

    // Loop through every source file displaying its version - using javascript.
    foreach ($context['file_versions'] as $filename => $version)
        echo '
                                    <tr class="windowbg">
                                        <td class="half_table">
                                            ', $filename, '
                                        </td>
                                        <td class="quarter_table">
                                            <em id="yourSources', $filename, '">', $version, '</em>
                                        </td>
                                        <td class="quarter_table">
                                            <em id="currentSources', $filename, '">??</em>
                                        </td>
                                    </tr>';

    // Default template files.
    echo '
                                </tbody>
                            </table>

                            <table class="table_grid">
                                <tbody>
                                    <tr class="windowbg">
                                        <td class="half_table">
                                            <a href="#" id="Default-link">', $txt['dvc_default'], '</a>
                                        </td>
                                        <td class="quarter_table">
                                            <em id="yourDefault">??</em>
                                        </td>
                                        <td class="quarter_table">
                                            <em id="currentDefault">??</em>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>

                            <table id="Default" class="table_grid">
                                <tbody>';

    foreach ($context['default_template_versions'] as $filename => $version)
        echo '
                                    <tr class="windowbg">
                                        <td class="half_table">
                                            ', $filename, '
                                        </td>
                                        <td class="quarter_table">
                                            <em id="yourDefault', $filename, '">', $version, '</em>
                                        </td>
                                        <td class="quarter_table">
                                            <em id="currentDefault', $filename, '">??</em>
                                        </td>
                                    </tr>';

    // Now the language files...
    echo '
                                </tbody>
                            </table>

                            <table class="table_grid">
                                <tbody>
                                    <tr class="windowbg">
                                        <td class="half_table">
                                            <a href="#" id="Languages-link">', $txt['dvc_languages'], '</a>
                                        </td>
                                        <td class="quarter_table">
                                            <em id="yourLanguages">??</em>
                                        </td>
                                        <td class="quarter_table">
                                            <em id="currentLanguages">??</em>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>

                            <table id="Languages" class="table_grid">
                                <tbody>';

    foreach ($context['default_language_versions'] as $language => $files)
    {
        foreach ($files as $filename => $version)
            echo '
                                    <tr class="windowbg">
                                        <td class="half_table">
                                            ', $filename, '.<em>', $language, '</em>.php
                                        </td>
                                        <td class="quarter_table">
                                            <em id="your', $filename, '.', $language, '">', $version, '</em>
                                        </td>
                                        <td class="quarter_table">
                                            <em id="current', $filename, '.', $language, '">??</em>
                                        </td>
                                    </tr>';
    }

    echo '
                                </tbody>
                            </table>';

    // Display the version information for the currently selected theme - if it is not the default one.
    if (!empty($context['template_versions']))
    {
        echo '
                            <table class="table_grid">
                                <tbody>
                                    <tr class="windowbg">
                                        <td class="half_table">
                                            <a href="#" id="Templates-link">', $txt['dvc_templates'], '</a>
                                        </td>
                                        <td class="quarter_table">
                                            <em id="yourTemplates">??</em>
                                        </td>
                                        <td class="quarter_table">
                                            <em id="currentTemplates">??</em>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>

                            <table id="Templates" class="table_grid">
                                <tbody>';

        foreach ($context['template_versions'] as $filename => $version)
            echo '
                                    <tr class="windowbg">
                                        <td class="half_table">
                                            ', $filename, '
                                        </td>
                                        <td class="quarter_table">
                                            <em id="yourTemplates', $filename, '">', $version, '</em>
                                        </td>
                                        <td class="quarter_table">
                                            <em id="currentTemplates', $filename, '">??</em>
                                        </td>
                                    </tr>';

        echo '
                                </tbody>
                            </table>';
    }

    // Display the tasks files version.
    if (!empty($context['tasks_versions']))
    {
        echo '
                            <table class="table_grid">
                                <tbody>
                                    <tr class="windowbg">
                                        <td class="half_table">
                                            <a href="#" id="Tasks-link">', $txt['dvc_tasks'], '</a>
                                        </td>
                                        <td class="quarter_table">
                                            <em id="yourTasks">??</em>
                                        </td>
                                        <td class="quarter_table">
                                            <em id="currentTasks">??</em>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>

                            <table id="Tasks" class="table_grid">
                                <tbody>';

        foreach ($context['tasks_versions'] as $filename => $version)
            echo '
                                    <tr class="windowbg">
                                        <td class="half_table">
                                            ', $filename, '
                                        </td>
                                        <td class="quarter_table">
                                            <em id="yourTasks', $filename, '">', $version, '</em>
                                        </td>
                                        <td class="quarter_table">
                                            <em id="currentTasks', $filename, '">??</em>
                                        </td>
                                    </tr>';

        echo '
                                </tbody>
                            </table>';
    }

    echo '
                        </div><!-- #versions -->';

    /* Below is the hefty javascript for this. Upon opening the page it checks the current file versions with ones
       held at simplemachines.org and works out if they are up to date. If they aren't it colors that files number
       red. It also contains the function, swapOption, that toggles showing the detailed information for each of the
       file categories. (sources, languages, and templates.) */
    echo '
                    <script src="', $scripturl, '?action=viewsmfile;filename=detailed-version.js"></script>
                    <script>
                        var oViewVersions = new smf_ViewVersions({
                            aKnownLanguages: [
                                \'.', implode('\',
                                \'.', $context['default_known_languages']), '\'
                            ],
                            oSectionContainerIds: {
                                Sources: \'Sources\',
                                Default: \'Default\',
                                Languages: \'Languages\',
                                Templates: \'Templates\',
                                Tasks: \'Tasks\'
                            }
                        });
                    </script>';

}

/**
 * Form for stopping people using naughty words, etc.
 */
function template_edit_censored()
{
    global $context, $scripturl, $txt, $modSettings;

    if (!empty($context['saved_successful']))
        echo '
                    <div class="infobox">', $txt['settings_saved'], '</div>';

    // First section is for adding/removing words from the censored list.
    echo '
                        <form id="admin_form_wrapper" action="', $scripturl, '?action=admin;area=postsettings;sa=censor" method="post" accept-charset="', $context['character_set'], '">
                            <div id="section_header" class="cat_bar">
                                <h3 class="catbg">
                                    ', $txt['admin_censored_words'], '
                                </h3>
                            </div>
                            <div class="windowbg">
                                <p>', $txt['admin_censored_where'], '</p>';

    // Show text boxes for censoring [bad   ] => [good  ].
    foreach ($context['censored_words'] as $vulgar => $proper)
        echo '
                                <div class="block">
                                    <input type="text" name="censor_vulgar[]" value="', $vulgar, '" size="30"> =&gt; <input type="text" name="censor_proper[]" value="', $proper, '" size="30">
                                </div>';

    // Now provide a way to censor more words.
    echo '
                                <div class="block">
                                    <input type="text" name="censor_vulgar[]" size="30"> =&gt; <input type="text" name="censor_proper[]" size="30">
                                </div>
                                <div id="moreCensoredWords"></div>
                                <div class="block hidden" id="moreCensoredWords_link">
                                    <a class="button" href="#" onclick="addNewWord(); return false;">', $txt['censor_clickadd'], '</a><br>
                                </div>
                                <script>
                                    document.getElementById("moreCensoredWords_link").classList.remove(\'hidden\');
                                </script>
                                <hr>
                                <dl class="settings">
                                    <dt>
                                        <strong><label for="allow_no_censored">', $txt['allow_no_censored'], ':</label></strong>
                                    </dt>
                                    <dd>
                                        <input type="checkbox" name="allow_no_censored" value="1" id="allow_no_censored"', empty($modSettings['allow_no_censored']) ? '' : ' checked', '>
                                    </dd>
                                    <dt>
                                        <strong><label for="censorWholeWord_check">', $txt['censor_whole_words'], ':</label></strong>
                                    </dt>
                                    <dd>
                                        <input type="checkbox" name="censorWholeWord" value="1" id="censorWholeWord_check"', empty($modSettings['censorWholeWord']) ? '' : ' checked', '>
                                    </dd>
                                    <dt>
                                        <strong><label for="censorIgnoreCase_check">', $txt['censor_case'], ':</label></strong>
                                    </dt>
                                    <dd>
                                        <input type="checkbox" name="censorIgnoreCase" value="1" id="censorIgnoreCase_check"', empty($modSettings['censorIgnoreCase']) ? '' : ' checked', '>
                                    </dd>
                                </dl>
                                <input type="submit" name="save_censor" value="', $txt['save'], '" class="button">
                            </div><!-- .windowbg -->';

    // This table lets you test out your filters by typing in rude words and seeing what comes out.
    echo '
                            <div class="cat_bar">
                                <h3 class="catbg">
                                    ', $txt['censor_test'], '
                                </h3>
                            </div>
                            <div class="windowbg">
                                <p class="centertext">
                                    <input type="text" name="censortest" value="', empty($context['censor_test']) ? '' : $context['censor_test'], '">
                                    <input type="submit" value="', $txt['censor_test_save'], '" class="button">
                                </p>
                            </div>

                            <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '">
                            <input type="hidden" name="', $context['admin-censor_token_var'], '" value="', $context['admin-censor_token'], '">
                        </form>';
}

/**
 * This is the page shown when we've temporarily paused things such as during maintenance tasks, sending newsletters, etc.
 */
function template_not_done()
{
    global $context, $txt, $scripturl;

    echo '
                        <div id="section_header" class="cat_bar">
                            <h3 class="catbg">
                                ', $txt['not_done_title'], '
                            </h3>
                        </div>
                        <div class="windowbg">
                            ', $txt['not_done_reason'];

    if (!empty($context['continue_percent']))
        echo '
                            <div class="progress_bar">
                                <span>', $context['continue_percent'], '%</span>
                                <div class="bar" style="width: ', $context['continue_percent'], '%;"></div>
                            </div>';

    if (!empty($context['substep_enabled']))
        echo '
                            <div class="progress_bar progress_blue">
                                <span>', $context['substep_title'], ' (', $context['substep_continue_percent'], '%)</span>
                                <div class="bar" style="width: ', $context['substep_continue_percent'], '%;"></div>
                            </div>';

    echo '
                            <form action="', $scripturl, $context['continue_get_data'], '" method="post" accept-charset="', $context['character_set'], '" name="autoSubmit" id="autoSubmit">';

    // Do we have a token?
    if (isset($context['not_done_token']) && isset($context[$context['not_done_token'] . '_token'], $context[$context['not_done_token'] . '_token_var']))
        echo '
                            <input type="hidden" name="', $context[$context['not_done_token'] . '_token_var'], '" value="', $context[$context['not_done_token'] . '_token'], '">';

    echo '
                                <input type="submit" name="cont" value="', $txt['not_done_continue'], '" class="button">
                                ', $context['continue_post_data'], '
                            </form>
                        </div><!-- .windowbg -->
                    <script>
                        var countdown = ', $context['continue_countdown'], ';
                        doAutoSubmit();

                        function doAutoSubmit()
                        {
                            if (countdown == 0)
                                document.forms.autoSubmit.submit();
                            else if (countdown == -1)
                                return;

                            document.forms.autoSubmit.cont.value = "', $txt['not_done_continue'], ' (" + countdown + ")";
                            countdown--;

                            setTimeout("doAutoSubmit();", 1000);
                        }
                    </script>';
}

/**
 * Template for showing settings (Of any kind really!)
 */
function template_show_settings()
{
    global $context, $txt, $scripturl;

    if (!empty($context['saved_successful']))
        echo '
                    <div class="infobox">', $txt['settings_saved'], '</div>';
    elseif (!empty($context['saved_failed']))
        echo '
                    <div class="errorbox">', sprintf($txt['settings_not_saved'], $context['saved_failed']), '</div>';

    if (!empty($context['settings_pre_javascript']))
        echo '
                    <script>', $context['settings_pre_javascript'], '</script>';

    if (!empty($context['settings_insert_above']))
        echo $context['settings_insert_above'];

    echo '
                        <form id="admin_form_wrapper" action="', $context['post_url'], '" method="post" accept-charset="', $context['character_set'], '"', !empty($context['force_form_onsubmit']) ? ' onsubmit="' . $context['force_form_onsubmit'] . '"' : '', '>';

    // Is there a custom title?
    if (isset($context['settings_title']))
        echo '
                            <div class="cat_bar">
                                <h3 class="catbg">', $context['settings_title'], '</h3>
                            </div>';

    // Have we got a message to display?
    if (!empty($context['settings_message']))
    {
        $tag = !empty($context['settings_message']['tag']) ? $context['settings_message']['tag'] : 'span';

        echo '
                            <div class="information noup">';

        if (is_array($context['settings_message']))
            echo '
                                <', $tag, !empty($context['settings_message']['class']) ? ' class="' . $context['settings_message']['class'] . '"' : '', '>
                                    ', $context['settings_message']['label'], '
                                </', $tag, '>';
        else
            echo $context['settings_message'];

        echo '
                            </div>';
    }

    // Filter out any redundant separators before we start the loop
    $context['config_vars'] = array_filter($context['config_vars'], function ($v) use ($context)
        {
            static $config_vars, $prev;

            $at_start = is_null($config_vars);
            $config_vars = $at_start ? $context['config_vars'] : $config_vars;

            $next = next($config_vars);
            $at_end = key($config_vars) === null;

            if (!$at_start && !$at_end)
            {
                $div_types = array('title', 'desc');
                $at_start = isset($prev['type']) && in_array($prev['type'], $div_types);
                $at_end = isset($next['type']) && in_array($next['type'], $div_types);
            }

            $prev = $v;
            return ($v === '' && ($at_start || $at_end || $v === $next)) ? false : true;
        });

    // Now actually loop through all the variables.
    $is_open = false;
    foreach ($context['config_vars'] as $config_var)
    {
        // Is it a title or a description?
        if (is_array($config_var) && ($config_var['type'] == 'title' || $config_var['type'] == 'desc'))
        {
            // Not a list yet?
            if ($is_open)
            {
                $is_open = false;
                echo '
                                    </dl>
                            </div>';
            }

            // A title?
            if ($config_var['type'] == 'title')
            {
                echo '
                            <div class="cat_bar">
                                <h3 class="', !empty($config_var['class']) ? $config_var['class'] : 'catbg', '"', !empty($config_var['force_div_id']) ? ' id="' . $config_var['force_div_id'] . '"' : '', '>
                                    ', ($config_var['help'] ? '<a href="' . $scripturl . '?action=helpadmin;help=' . $config_var['help'] . '" onclick="return reqOverlayDiv(this.href);" class="help"><span class="main_icons help" title="' . $txt['help'] . '"></span></a>' : ''), '
                                    ', $config_var['label'], '
                                </h3>
                            </div>';
            }
            // A description?
            else
            {
                echo '
                            <div class="information noup">
                                ', $config_var['label'], '
                            </div>';
            }

            continue;
        }

        // Not a list yet?
        if (!$is_open)
        {
            $is_open = true;
            echo '
                            <div class="windowbg noup">
                                <dl class="settings">';
        }

        // Hang about? Are you pulling my leg - a callback?!
        if (is_array($config_var) && $config_var['type'] == 'callback')
        {
            if (function_exists('template_callback_' . $config_var['name']))
                call_user_func('template_callback_' . $config_var['name']);

            continue;
        }

        if (is_array($config_var))
        {
            // First off, is this a span like a message?
            if (in_array($config_var['type'], array('message', 'warning')))
            {
                echo '
                                    <dd', $config_var['type'] == 'warning' ? ' class="alert"' : '', (!empty($config_var['force_div_id']) ? ' id="' . $config_var['force_div_id'] . '_dd"' : ''), '>
                                        ', $config_var['label'], '
                                    </dd>';
            }
            // Otherwise it's an input box of some kind.
            else
            {
                echo '
                                    <dt', is_array($config_var) && !empty($config_var['force_div_id']) ? ' id="' . $config_var['force_div_id'] . '"' : '', '>';

                // Some quick helpers...
                $javascript = $config_var['javascript'];
                $disabled = !empty($config_var['disabled']) ? ' disabled' : '';
                $subtext = !empty($config_var['subtext']) ? '<br><span class="smalltext"> ' . $config_var['subtext'] . '</span>' : '';

                // Various HTML5 input types that are basically enhanced textboxes
                $text_types = array('color', 'date', 'datetime', 'datetime-local', 'email', 'month', 'time');

                // Show the [?] button.
                if ($config_var['help'])
                    echo '
                                        <a id="setting_', $config_var['name'], '_help" href="', $scripturl, '?action=helpadmin;help=', $config_var['help'], '" onclick="return reqOverlayDiv(this.href);"><span class="main_icons help" title="', $txt['help'], '"></span></a> ';

                echo '
                                        <a id="setting_', $config_var['name'], '"></a> <span', ($config_var['disabled'] ? ' style="color: #777777;"' : ($config_var['invalid'] ? ' class="error"' : '')), '><label for="', $config_var['name'], '">', $config_var['label'], '</label>', $subtext, ($config_var['type'] == 'password' ? '<br><em>' . $txt['admin_confirm_password'] . '</em>' : ''), '</span>
                                    </dt>
                                    <dd', (!empty($config_var['force_div_id']) ? ' id="' . $config_var['force_div_id'] . '_dd"' : ''), '>',
                                        $config_var['preinput'];

                // Show a check box.
                if ($config_var['type'] == 'check')
                    echo '
                                        <input type="checkbox"', $javascript, $disabled, ' name="', $config_var['name'], '" id="', $config_var['name'], '"', ($config_var['value'] ? ' checked' : ''), ' value="1">';
                // Escape (via htmlspecialchars.) the text box.
                elseif ($config_var['type'] == 'password')
                    echo '
                                        <input type="password"', $disabled, $javascript, ' name="', $config_var['name'], '[0]"', ($config_var['size'] ? ' size="' . $config_var['size'] . '"' : ''), ' value="*#fakepass#*" onfocus="this.value = \'\'; this.form.', $config_var['name'], '.disabled = false;"><br>
                                        <input type="password" disabled id="', $config_var['name'], '" name="', $config_var['name'], '[1]"', ($config_var['size'] ? ' size="' . $config_var['size'] . '"' : ''), '>';
                // Show a selection box.
                elseif ($config_var['type'] == 'select')
                {
                    echo '
                                        <select name="', $config_var['name'], '" id="', $config_var['name'], '" ', $javascript, $disabled, (!empty($config_var['multiple']) ? ' multiple="multiple"' : ''), ' size="', $config_var['size'], '">';

                    foreach ($config_var['data'] as $option)
                        echo '
                                            <option value="', $option[0], '"', (!empty($config_var['value']) && ($option[0] == $config_var['value'] || (!empty($config_var['multiple']) && in_array($option[0], $config_var['value']))) ? ' selected' : ''), '>', $option[1], '</option>';
                    echo '
                                        </select>';
                }

                // List of boards? This requires getBoardList() having been run and the results in $context['board_list'].
                elseif ($config_var['type'] == 'boards')
                {
                    $first = true;
                    echo '
                                        <a href="#" class="board_selector">[ ', $txt['select_boards_from_list'], ' ]</a>
                                        <fieldset>
                                            <legend class="board_selector">
                                                <a href="#">', $txt['select_boards_from_list'], '</a>
                                            </legend>';

                    foreach ($context['board_list'] as $id_cat => $cat)
                    {
                        if (!$first)
                            echo '
                                            <hr>';
                        echo '
                                            <strong>', $cat['name'], '</strong>
                                            <ul>';

                        foreach ($cat['boards'] as $id_board => $brd)
                            echo '
                                                <li><label><input type="checkbox" name="', $config_var['name'], '[', $brd['id'], ']" value="1"', in_array($brd['id'], $config_var['value']) ? ' checked' : '', '> ', $brd['child_level'] > 0 ? str_repeat('&nbsp; &nbsp;', $brd['child_level']) : '', $brd['name'], '</label></li>';

                        echo '
                                            </ul>';
                        $first = false;
                    }
                    echo '
                                        </fieldset>';
                }
                // Text area?
                elseif ($config_var['type'] == 'large_text')
                    echo '
                                        <textarea rows="', (!empty($config_var['size']) ? $config_var['size'] : (!empty($config_var['rows']) ? $config_var['rows'] : 4)), '" cols="', (!empty($config_var['cols']) ? $config_var['cols'] : 30), '" ', $javascript, $disabled, ' name="', $config_var['name'], '" id="', $config_var['name'], '">', $config_var['value'], '</textarea>';
                // Permission group?
                elseif ($config_var['type'] == 'permissions')
                    theme_inline_permissions($config_var['name']);

                // BBC selection?
                elseif ($config_var['type'] == 'bbc')
                {
                    echo '
                                        <fieldset id="', $config_var['name'], '">
                                            <legend>', $txt['enabled_bbc_select'], '</legend>
                                            <ul>';

                    foreach ($context['bbc_sections'][$config_var['name']]['columns'] as $bbcColumn)
                    {
                        foreach ($bbcColumn as $bbcTag)
                            echo '
                                                <li class="list_bbc floatleft">
                                                    <input type="checkbox" name="', $config_var['name'], '_enabledTags[]" id="tag_', $config_var['name'], '_', $bbcTag['tag'], '" value="', $bbcTag['tag'], '"', !in_array($bbcTag['tag'], $context['bbc_sections'][$config_var['name']]['disabled']) ? ' checked' : '', '> <label for="tag_', $config_var['name'], '_', $bbcTag['tag'], '">', $bbcTag['tag'], '</label>', $bbcTag['show_help'] ? ' (<a href="' . $scripturl . '?action=helpadmin;help=tag_' . $bbcTag['tag'] . '" onclick="return reqOverlayDiv(this.href);">?</a>)' : '', '
                                                </li>';
                    }
                    echo '                  </ul>
                                            <input type="checkbox" id="bbc_', $config_var['name'], '_select_all" onclick="invertAll(this, this.form, \'', $config_var['name'], '_enabledTags\');"', $context['bbc_sections'][$config_var['name']]['all_selected'] ? ' checked' : '', '> <label for="bbc_', $config_var['name'], '_select_all"><em>', $txt['enabled_bbc_select_all'], '</em></label>
                                        </fieldset>';
                }
                // A simple message?
                elseif ($config_var['type'] == 'var_message')
                    echo '
                                        <div', !empty($config_var['name']) ? ' id="' . $config_var['name'] . '"' : '', '>
                                            ', $config_var['var_message'], '
                                        </div>';
                // Assume it must be a text box
                else
                {
                    // Figure out the exact type - use "number" for "float" and "int".
                    $type = in_array($config_var['type'], $text_types) ? $config_var['type'] : ($config_var['type'] == 'int' || $config_var['type'] == 'float' ? 'number' : 'text');

                    // Extra options for float/int values - how much to decrease/increase by, the min value and the max value
                    // The step - only set if incrementing by something other than 1 for int or 0.1 for float
                    $step = isset($config_var['step']) ? ' step="' . $config_var['step'] . '"' : ($config_var['type'] == 'float' ? ' step="0.1"' : '');

                    // Minimum allowed value for this setting. SMF forces a default of 0 if not specified in the settings
                    $min = isset($config_var['min']) ? ' min="' . $config_var['min'] . '"' : '';

                    // Maximum allowed value for this setting.
                    $max = isset($config_var['max']) ? ' max="' . $config_var['max'] . '"' : '';

                    echo '
                                        <input type="', $type, '"', $javascript, $disabled, ' name="', $config_var['name'], '" id="', $config_var['name'], '" value="', $config_var['value'], '"', ($config_var['size'] ? ' size="' . $config_var['size'] . '"' : ''), '', $min . $max . $step, '>';
                }

                echo isset($config_var['postinput']) ? '
                                            ' . $config_var['postinput'] : '', '
                                    </dd>';
            }
        }
        else
        {
            // Just show a separator.
            if ($config_var == '')
                echo '
                                </dl>
                                <hr>
                                <dl class="settings">';
            else
                echo '
                                    <dt>
                                        <strong>' . $config_var . '</strong>
                                    </dt>
                                    <dd></dd>';
        }
    }

    if ($is_open)
        echo '
                                </dl>';

    if (empty($context['settings_save_dont_show']))
        echo '
                                <input type="submit" value="', $txt['save'], '"', (!empty($context['save_disabled']) ? ' disabled' : ''), (!empty($context['settings_save_onclick']) ? ' onclick="' . $context['settings_save_onclick'] . '"' : ''), ' class="button">';

    if ($is_open)
        echo '
                            </div><!-- .windowbg -->';

    // At least one token has to be used!
    if (isset($context['admin-ssc_token']))
        echo '
                            <input type="hidden" name="', $context['admin-ssc_token_var'], '" value="', $context['admin-ssc_token'], '">';

    if (isset($context['admin-dbsc_token']))
        echo '
                            <input type="hidden" name="', $context['admin-dbsc_token_var'], '" value="', $context['admin-dbsc_token'], '">';

    if (isset($context['admin-mp_token']))
        echo '
                            <input type="hidden" name="', $context['admin-mp_token_var'], '" value="', $context['admin-mp_token'], '">';

    echo '
                            <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '">
                        </form>';

    if (!empty($context['settings_post_javascript']))
        echo '
                    <script>
                        ', $context['settings_post_javascript'], '
                    </script>';

    if (!empty($context['settings_insert_below']))
        echo $context['settings_insert_below'];

    // We may have added a board listing. If we did, we need to make it work.
    addInlineJavascript('
        $("legend.board_selector").closest("fieldset").hide();
        $("a.board_selector").click(function(e) {
            e.preventDefault();
            $(this).hide().next("fieldset").show();
        });
        $("fieldset legend.board_selector a").click(function(e) {
            e.preventDefault();
            $(this).closest("fieldset").hide().prev("a").show();
        });
    ', true);
}

/**
 * Template for showing custom profile fields.
 */
function template_show_custom_profile()
{
    global $context, $txt;

    if (!empty($context['saved_successful']))
        echo '
                    <div class="infobox">', $txt['settings_saved'], '</div>';

    // Standard fields.
    template_show_list('standard_profile_fields');

    echo '
                    <script>
                        var iNumChecks = document.forms.standardProfileFields.length;
                        for (var i = 0; i < iNumChecks; i++)
                            if (document.forms.standardProfileFields[i].id.indexOf(\'reg_\') == 0)
                                document.forms.standardProfileFields[i].disabled = document.forms.standardProfileFields[i].disabled || !document.getElementById(\'active_\' + document.forms.standardProfileFields[i].id.substr(4)).checked;
                    </script>
                    <br>';

    // Custom fields.
    template_show_list('custom_profile_fields');
}

// Edit a profile field?
function template_edit_profile_field()
{
    global $context, $txt, $scripturl;

    // All the javascript for this page - quite a bit in script.js!
    echo '
                    <script>
                        var startOptID = ', count($context['field']['options']), ';
                    </script>';

    // any errors messages to show?
    if (isset($_GET['msg']))
    {
        loadLanguage('Errors');

        if (isset($txt['custom_option_' . $_GET['msg']]))
            echo '
                    <div class="errorbox">',
                        $txt['custom_option_' . $_GET['msg']], '
                    </div>';
    }

    echo '
                        <form action="', $scripturl, '?action=admin;area=featuresettings;sa=profileedit;fid=', $context['fid'], ';', $context['session_var'], '=', $context['session_id'], '" method="post" accept-charset="', $context['character_set'], '">
                            <div id="section_header" class="cat_bar">
                                <h3 class="catbg">', $context['page_title'], '</h3>
                            </div>
                            <div class="windowbg">
                                <fieldset>
                                    <legend>', $txt['custom_edit_general'], '</legend>

                                    <dl class="settings">
                                        <dt>
                                            <strong><label for="field_name">', $txt['custom_edit_name'], ':</label></strong>
                                        </dt>
                                        <dd>
                                            <input type="text" name="field_name" id="field_name" value="', $context['field']['name'], '" size="20" maxlength="40">
                                        </dd>
                                        <dt>
                                            <strong><label for="field_desc">', $txt['custom_edit_desc'], ':</label></strong>
                                        </dt>
                                        <dd>
                                            <textarea name="field_desc" id="field_desc" rows="3" cols="40">', $context['field']['desc'], '</textarea>
                                        </dd>
                                        <dt>
                                            <strong><label for="profile_area">', $txt['custom_edit_profile'], ':</label></strong><br>
                                            <span class="smalltext">', $txt['custom_edit_profile_desc'], '</span>
                                        </dt>
                                        <dd>
                                            <select name="profile_area" id="profile_area">
                                                <option value="none"', $context['field']['profile_area'] == 'none' ? ' selected' : '', '>', $txt['custom_edit_profile_none'], '</option>
                                                <option value="account"', $context['field']['profile_area'] == 'account' ? ' selected' : '', '>', $txt['account'], '</option>
                                                <option value="forumprofile"', $context['field']['profile_area'] == 'forumprofile' ? ' selected' : '', '>', $txt['forumprofile'], '</option>
                                                <option value="theme"', $context['field']['profile_area'] == 'theme' ? ' selected' : '', '>', $txt['theme'], '</option>
                                            </select>
                                        </dd>
                                        <dt>
                                            <a id="field_reg_require" href="', $scripturl, '?action=helpadmin;help=field_reg_require" onclick="return reqOverlayDiv(this.href);" class="help"><span class="main_icons help" title="', $txt['help'], '"></span></a>
                                            <strong><label for="reg">', $txt['custom_edit_registration'], ':</label></strong>
                                        </dt>
                                        <dd>
                                            <select name="reg" id="reg">
                                                <option value="0"', $context['field']['reg'] == 0 ? ' selected' : '', '>', $txt['custom_edit_registration_disable'], '</option>
                                                <option value="1"', $context['field']['reg'] == 1 ? ' selected' : '', '>', $txt['custom_edit_registration_allow'], '</option>
                                                <option value="2"', $context['field']['reg'] == 2 ? ' selected' : '', '>', $txt['custom_edit_registration_require'], '</option>
                                            </select>
                                        </dd>
                                        <dt>
                                            <strong><label for="display">', $txt['custom_edit_display'], ':</label></strong>
                                        </dt>
                                        <dd>
                                            <input type="checkbox" name="display" id="display"', $context['field']['display'] ? ' checked' : '', '>
                                        </dd>
                                        <dt>
                                            <strong><label for="mlist">', $txt['custom_edit_mlist'], ':</label></strong>
                                        </dt>
                                        <dd>
                                            <input type="checkbox" name="mlist" id="show_mlist"', $context['field']['mlist'] ? ' checked' : '', '>
                                        </dd>
                                        <dt>
                                            <strong><label for="placement">', $txt['custom_edit_placement'], ':</label></strong>
                                        </dt>
                                        <dd>
                                            <select name="placement" id="placement">';

    foreach ($context['cust_profile_fields_placement'] as $order => $name)
        echo '
                                                <option value="', $order, '"', $context['field']['placement'] == $order ? ' selected' : '', '>', $txt['custom_profile_placement_' . $name], '</option>';

    echo '
                                            </select>
                                        </dd>
                                        <dt>
                                            <a id="field_show_enclosed" href="', $scripturl, '?action=helpadmin;help=field_show_enclosed" onclick="return reqOverlayDiv(this.href);" class="help"><span class="main_icons help" title="', $txt['help'], '"></span></a>
                                            <strong><label for="enclose">', $txt['custom_edit_enclose'], ':</label></strong><br>
                                            <span class="smalltext">', $txt['custom_edit_enclose_desc'], '</span>
                                        </dt>
                                        <dd>
                                            <textarea name="enclose" id="enclose" rows="10" cols="50">', @$context['field']['enclose'], '</textarea>
                                        </dd>
                                    </dl>
                                </fieldset>
                                <fieldset>
                                    <legend>', $txt['custom_edit_input'], '</legend>
                                    <dl class="settings">
                                        <dt>
                                        <strong><label for="field_type">', $txt['custom_edit_picktype'], ':</label></strong>
                                        </dt>
                                        <dd>
                                            <select name="field_type" id="field_type" onchange="updateInputBoxes();">';

    foreach (array('text', 'textarea', 'select', 'radio', 'check') as $field_type)
        echo '
                                                <option value="', $field_type, '"', $context['field']['type'] == $field_type ? ' selected' : '', '>', $txt['custom_profile_type_' . $field_type], '</option>';

    echo '
                                            </select>
                                        </dd>
                                        <dt id="max_length_dt">
                                            <strong><label for="max_length_dd">', $txt['custom_edit_max_length'], ':</label></strong><br>
                                            <span class="smalltext">', $txt['custom_edit_max_length_desc'], '</span>
                                        </dt>
                                        <dd>
                                            <input type="text" name="max_length" id="max_length_dd" value="', $context['field']['max_length'], '" size="7" maxlength="6">
                                        </dd>
                                        <dt id="dimension_dt">
                                            <strong><label for="dimension_dd">', $txt['custom_edit_dimension'], ':</label></strong>
                                        </dt>
                                        <dd id="dimension_dd">
                                            <strong>', $txt['custom_edit_dimension_row'], ':</strong> <input type="text" name="rows" value="', $context['field']['rows'], '" size="5" maxlength="3">
                                            <strong>', $txt['custom_edit_dimension_col'], ':</strong> <input type="text" name="cols" value="', $context['field']['cols'], '" size="5" maxlength="3">
                                        </dd>
                                        <dt id="bbc_dt">
                                            <strong><label for="bbc_dd">', $txt['custom_edit_bbc'], '</label></strong>
                                        </dt>
                                        <dd >
                                            <input type="checkbox" name="bbc" id="bbc_dd"', $context['field']['bbc'] ? ' checked' : '', '>
                                        </dd>
                                        <dt id="options_dt">
                                            <a href="', $scripturl, '?action=helpadmin;help=customoptions" onclick="return reqOverlayDiv(this.href);" class="help"><span class="main_icons help" title="', $txt['help'], '"></span></a>
                                            <strong><label for="options_dd">', $txt['custom_edit_options'], ':</label></strong><br>
                                            <span class="smalltext">', $txt['custom_edit_options_desc'], '</span>
                                        </dt>
                                        <dd id="options_dd">';

    foreach ($context['field']['options'] as $k => $option)
        echo '
                                            ', $k == 0 ? '' : '<br>', '<input type="radio" name="default_select" value="', $k, '"', $context['field']['default_select'] == $option ? ' checked' : '', '><input type="text" name="select_option[', $k, ']" value="', $option, '">';

    echo '
                                            <span id="addopt"></span>
                                            [<a href="" onclick="addOption(); return false;">', $txt['custom_edit_options_more'], '</a>]
                                        </dd>
                                        <dt id="default_dt">
                                            <strong><label for="default_dd">', $txt['custom_edit_default'], ':</label></strong>
                                        </dt>
                                        <dd>
                                            <input type="checkbox" name="default_check" id="default_dd"', $context['field']['default_check'] ? ' checked' : '', '>
                                        </dd>
                                    </dl>
                                </fieldset>
                                <fieldset>
                                    <legend>', $txt['custom_edit_advanced'], '</legend>
                                    <dl class="settings">
                                        <dt id="mask_dt">
                                            <a id="custom_mask" href="', $scripturl, '?action=helpadmin;help=custom_mask" onclick="return reqOverlayDiv(this.href);" class="help"><span class="main_icons help" title="', $txt['help'], '"></span></a>
                                            <strong><label for="mask">', $txt['custom_edit_mask'], ':</label></strong><br>
                                            <span class="smalltext">', $txt['custom_edit_mask_desc'], '</span>
                                        </dt>
                                        <dd>
                                            <select name="mask" id="mask" onchange="updateInputBoxes();">
                                                <option value="nohtml"', $context['field']['mask'] == 'nohtml' ? ' selected' : '', '>', $txt['custom_edit_mask_nohtml'], '</option>
                                                <option value="email"', $context['field']['mask'] == 'email' ? ' selected' : '', '>', $txt['custom_edit_mask_email'], '</option>
                                                <option value="number"', $context['field']['mask'] == 'number' ? ' selected' : '', '>', $txt['custom_edit_mask_number'], '</option>
                                                <option value="regex"', strpos($context['field']['mask'], 'regex') === 0 ? ' selected' : '', '>', $txt['custom_edit_mask_regex'], '</option>
                                            </select>
                                            <br>
                                            <span id="regex_div">
                                                <input type="text" name="regex" value="', $context['field']['regex'], '" size="30">
                                            </span>
                                        </dd>
                                        <dt>
                                            <strong><label for="private">', $txt['custom_edit_privacy'], ':</label></strong>
                                            <span class="smalltext">', $txt['custom_edit_privacy_desc'], '</span>
                                        </dt>
                                        <dd>
                                            <select name="private" id="private" onchange="updateInputBoxes();">
                                                <option value="0"', $context['field']['private'] == 0 ? ' selected' : '', '>', $txt['custom_edit_privacy_all'], '</option>
                                                <option value="1"', $context['field']['private'] == 1 ? ' selected' : '', '>', $txt['custom_edit_privacy_see'], '</option>
                                                <option value="2"', $context['field']['private'] == 2 ? ' selected' : '', '>', $txt['custom_edit_privacy_owner'], '</option>
                                                <option value="3"', $context['field']['private'] == 3 ? ' selected' : '', '>', $txt['custom_edit_privacy_none'], '</option>
                                            </select>
                                        </dd>
                                        <dt id="can_search_dt">
                                            <strong><label for="can_search_dd">', $txt['custom_edit_can_search'], ':</label></strong><br>
                                            <span class="smalltext">', $txt['custom_edit_can_search_desc'], '</span>
                                        </dt>
                                        <dd>
                                            <input type="checkbox" name="can_search" id="can_search_dd"', $context['field']['can_search'] ? ' checked' : '', '>
                                        </dd>
                                        <dt>
                                            <strong><label for="can_search_check">', $txt['custom_edit_active'], ':</label></strong><br>
                                            <span class="smalltext">', $txt['custom_edit_active_desc'], '</span>
                                        </dt>
                                        <dd>
                                            <input type="checkbox" name="active" id="can_search_check"', $context['field']['active'] ? ' checked' : '', '>
                                        </dd>
                                    </dl>
                                </fieldset>
                                <input type="submit" name="save" value="', $txt['save'], '" class="button">';

    if ($context['fid'])
        echo '
                                <input type="submit" name="delete" value="', $txt['delete'], '" data-confirm="', $txt['custom_edit_delete_sure'], '" class="button you_sure">';

    echo '
                            </div><!-- .windowbg -->
                            <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '">
                            <input type="hidden" name="', $context['admin-ecp_token_var'], '" value="', $context['admin-ecp_token'], '">
                        </form>';

    // Get the javascript bits right!
    echo '
                    <script>
                        updateInputBoxes();
                    </script>';
}

/**
 * Results page for an admin search.
 */
function template_admin_search_results()
{
    global $context, $txt, $scripturl;

    echo '
                        <div id="section_header" class="cat_bar">
                            <form action="', $scripturl, '?action=admin;area=search" method="post" accept-charset="', $context['character_set'], '">
                                <h3 class="catbg">
                                    <span id="quick_search" class="floatright">
                                        <input type="search" name="search_term" value="', $context['search_term'], '">
                                        <input type="hidden" name="search_type" value="', $context['search_type'], '">
                                        <input type="submit" name="search_go" value="', $txt['admin_search_results_again'], '" class="button">
                                    </span>
                                    <span class="main_icons filter"></span>
                                    <span id="quick_search_results">
                                        ', sprintf($txt['admin_search_results_desc'], $context['search_term']), '
                                    </span>
                                </h3>
                            </form>
                        </div><!-- #section_header -->
                        <div class="windowbg generic_list_wrapper">';

    if (empty($context['search_results']))
    {
        echo '
                            <p class="centertext">
                                <strong>', $txt['admin_search_results_none'], '</strong>
                            </p>';
    }
    else
    {
        echo '
                            <ol class="search_results">';

        foreach ($context['search_results'] as $result)
        {
            // Is it a result from the online manual?
            if ($context['search_type'] == 'online')
            {
                echo '
                                <li>
                                    <p>
                                        <a href="', $context['doc_scripturl'], str_replace(' ', '_', $result['title']), '" target="_blank" rel="noopener"><strong>', $result['title'], '</strong></a>
                                    </p>
                                    <p class="double_height">
                                        ', $result['snippet'], '
                                    </p>
                                </li>';
            }
            // Otherwise it's... not!
            else
            {
                echo '
                                <li>
                                    <a href="', $result['url'], '"><strong>', $result['name'], '</strong></a> [', isset($txt['admin_search_section_' . $result['type']]) ? $txt['admin_search_section_' . $result['type']] : $result['type'], ']';

                if ($result['help'])
                    echo '
                                    <p class="double_height">', $result['help'], '</p>';

                echo '
                                </li>';
            }
        }
        echo '
                            </ol>';
    }

    echo '
                        </div><!-- .generic_list_wrapper -->';
}

/**
 * This little beauty shows questions and answer from the captcha type feature.
 */
function template_callback_question_answer_list()
{
    global $txt, $context;

    foreach ($context['languages'] as $lang_id => $lang)
    {
        $lang_id = strtr($lang_id, array('-utf8' => ''));
        $lang['name'] = strtr($lang['name'], array('-utf8' => ''));

        echo '
                        <dt id="qa_dt_', $lang_id, '" class="qa_link">
                            <a href="javascript:void(0);">[ ', $lang['name'], ' ]</a>
                        </dt>
                        <fieldset id="qa_fs_', $lang_id, '" class="qa_fieldset">
                            <legend><a href="javascript:void(0);">', $lang['name'], '</a></legend>
                            <dl class="settings">
                                <dt>
                                    <strong>', $txt['setup_verification_question'], '</strong>
                                </dt>
                                <dd>
                                    <strong>', $txt['setup_verification_answer'], '</strong>
                                </dd>';

        if (!empty($context['qa_by_lang'][$lang_id]))
            foreach ($context['qa_by_lang'][$lang_id] as $q_id)
            {
                $question = $context['question_answers'][$q_id];

                echo '
                                <dt>
                                    <input type="text" name="question[', $lang_id, '][', $q_id, ']" value="', $question['question'], '" size="50" class="verification_question">
                                </dt>
                                <dd>';

                foreach ($question['answers'] as $answer)
                    echo '
                                    <input type="text" name="answer[', $lang_id, '][', $q_id, '][]" value="', $answer, '" size="50" class="verification_answer">';

                echo '
                                    <div class="qa_add_answer"><a href="javascript:void(0);">[ ', $txt['setup_verification_add_answer'], ' ]</a></div>
                                </dd>';
            }

        echo '
                                <dt class="qa_add_question"><a href="javascript:void(0);">[ ', $txt['setup_verification_add_more'], ' ]</a></dt>
                            </dl>
                        </fieldset>';
    }
}

/**
 * Repairing boards.
 */
function template_repair_boards()
{
    global $context, $txt, $scripturl;

    echo '
                        <div id="section_header" class="cat_bar">
                            <h3 class="catbg">',
                                $context['error_search'] ? $txt['errors_list'] : $txt['errors_fixing'], '
                            </h3>
                        </div>
                        <div class="windowbg">';

    // Are we actually fixing them, or is this just a prompt?
    if ($context['error_search'])
    {
        if (!empty($context['to_fix']))
        {
            echo '
                            ', $txt['errors_found'], ':
                            <ul>';

            foreach ($context['repair_errors'] as $error)
                echo '
                                <li>
                                    ', $error, '
                                </li>';

            echo '
                            </ul>
                            <p>
                                ', $txt['errors_fix'], '
                            </p>
                            <p class="padding">
                                <strong><a href="', $scripturl, '?action=admin;area=repairboards;fixErrors;', $context['session_var'], '=', $context['session_id'], ';', $context['admin-repairboards_token_var'], '=', $context['admin-repairboards_token'], '">', $txt['yes'], '</a> - <a href="', $scripturl, '?action=admin;area=maintain">', $txt['no'], '</a></strong>
                            </p>';
        }
        else
            echo '
                            <p>', $txt['maintain_no_errors'], '</p>
                            <p class="padding">
                                <a href="', $scripturl, '?action=admin;area=maintain;sa=routine">', $txt['maintain_return'], '</a>
                            </p>';
    }
    else
    {
        if (!empty($context['redirect_to_recount']))
        {
            echo '
                            <p>
                                ', $txt['errors_do_recount'], '
                            </p>
                            <form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=recount" id="recount_form" method="post">
                                <input type="hidden" name="', $context['admin-maint_token_var'], '" value="', $context['admin-maint_token'], '">
                                <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '">
                                <input type="submit" name="recount" id="recount_now" value="', $txt['errors_recount_now'], '">
                            </form>';
        }
        else
        {
            echo '
                            <p>', $txt['errors_fixed'], '</p>
                            <p class="padding">
                                <a href="', $scripturl, '?action=admin;area=maintain;sa=routine">', $txt['maintain_return'], '</a>
                            </p>';
        }
    }

    echo '
                        </div><!-- .windowbg -->';

    if (!empty($context['redirect_to_recount']))
    {
        echo '
                    <script>
                        var countdown = 5;
                        doAutoSubmit();

                        function doAutoSubmit()
                        {
                            if (countdown == 0)
                                document.forms.recount_form.submit();
                            else if (countdown == -1)
                                return;

                            document.forms.recount_form.recount_now.value = "', $txt['errors_recount_now'], ' (" + countdown + ")";
                            countdown--;

                            setTimeout("doAutoSubmit();", 1000);
                        }
                    </script>';
    }
}

/**
 * Retrieves info from the php_info function, scrubs and preps it for display
 */
function template_php_info()
{
    global $context, $txt;

    echo '
                    <div id="admin_form_wrapper">
                        <div id="section_header" class="cat_bar">
                            <h3 class="catbg">
                                ', $txt['phpinfo_settings'], '
                            </h3>
                        </div>';

    // for each php info area
    foreach ($context['pinfo'] as $area => $php_area)
    {
        echo '
                        <table id="', str_replace(' ', '_', $area), '" class="table_grid">
                            <thead>
                                <tr class="title_bar">
                                    <th class="equal_table" scope="col"></th>
                                    <th class="centercol equal_table" scope="col"><strong>', $area, '</strong></th>
                                    <th class="equal_table" scope="col"></th>
                                </tr>
                            </thead>
                            <tbody>';

        $localmaster = true;

        // and for each setting in this category
        foreach ($php_area as $key => $setting)
        {
            // start of a local / master setting (3 col)
            if (is_array($setting))
            {
                if ($localmaster)
                {
                    // heading row for the settings section of this category's settings
                    echo '
                                <tr class="title_bar">
                                    <td class="equal_table"><strong>', $txt['phpinfo_itemsettings'], '</strong></td>
                                    <td class="equal_table"><strong>', $txt['phpinfo_localsettings'], '</strong></td>
                                    <td class="equal_table"><strong>', $txt['phpinfo_defaultsettings'], '</strong></td>
                                </tr>';

                    $localmaster = false;
                }

                echo '
                                <tr class="windowbg">
                                    <td class="equal_table">', $key, '</td>';

                foreach ($setting as $key_lm => $value)
                    echo '
                                    <td class="equal_table">', $value, '</td>';

                echo '
                                </tr>';
            }
            // just a single setting (2 col)
            else
            {
                echo '
                                <tr class="windowbg">
                                    <td class="equal_table">', $key, '</td>
                                    <td colspan="2">', $setting, '</td>
                                </tr>';
            }
        }
        echo '
                            </tbody>
                        </table>
                        <br>';
    }

    echo '
                    </div><!-- #admin_form_wrapper -->';
}

/**
 *
 */
function template_clean_cache_button_above()
{
}

/**
 * Content shown below the clean cache button?
 */
function template_clean_cache_button_below()
{
    global $txt, $scripturl, $context;

    echo '
                    <div class="cat_bar">
                        <h3 class="catbg">', $txt['maintain_cache'], '</h3>
                    </div>
                    <div class="windowbg">
                        <form action="', $scripturl, '?action=admin;area=maintain;sa=routine;activity=cleancache" method="post" accept-charset="', $context['character_set'], '">
                            <p>', $txt['maintain_cache_info'], '</p>
                            <span><input type="submit" value="', $txt['maintain_run_now'], '" class="button"></span>
                            <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '">
                            <input type="hidden" name="', $context['admin-maint_token_var'], '" value="', $context['admin-maint_token'], '">
                        </form>
                    </div>';
}

/**
 * This shows the admin search form
 */
function template_admin_quick_search()
{
    global $context, $txt;

    if ($context['user']['is_admin'])
        echo '
                                <span class="floatright admin_search">
                                    <span class="main_icons filter centericon"></span>
                                    <input type="search" name="search_term" placeholder="', $txt['admin_search'], '">
                                    <select name="search_type">
                                        <option value="internal"', (empty($context['admin_preferences']['sb']) || $context['admin_preferences']['sb'] == 'internal' ? ' selected' : ''), '>', $txt['admin_search_type_internal'], '</option>
                                        <option value="member"', (!empty($context['admin_preferences']['sb']) && $context['admin_preferences']['sb'] == 'member' ? ' selected' : ''), '>', $txt['admin_search_type_member'], '</option>
                                        <option value="online"', (!empty($context['admin_preferences']['sb']) && $context['admin_preferences']['sb'] == 'online' ? ' selected' : ''), '>', $txt['admin_search_type_online'], '</option>
                                    </select>
                                    <input type="submit" name="search_go" id="search_go" value="', $txt['admin_search_go'], '" class="button">
                                </span>';
}

?>
API documentation generated by ApiGen