PageRenderTime 50ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/branches/05.00.00/class/Globals.cs

http://activeforums.codeplex.com
C# | 316 lines | 291 code | 25 blank | 0 comment | 0 complexity | 76fe56ef6ddd1a7037bf52e125df0cf4 MD5 | raw file
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Data;
  5. namespace DotNetNuke.Modules.ActiveForums
  6. {
  7. public enum AttachStores: int
  8. {
  9. FILESYSTEM,
  10. DATABASE
  11. }
  12. public enum CurrentUserTypes: int
  13. {
  14. Anon,
  15. Auth,
  16. ForumMod,
  17. Admin,
  18. SuperUser
  19. }
  20. public enum EditorTypes: int
  21. {
  22. TEXTBOX,
  23. ACTIVEEDITOR,
  24. HTMLEDITORPROVIDER
  25. }
  26. public enum HTMLPermittedUsers: int
  27. {
  28. AllUsers,
  29. AuthenticatedUsers,
  30. TrustedUsers,
  31. Moderators,
  32. Administrators
  33. }
  34. public enum AvatarTypes: int
  35. {
  36. LocalFile,
  37. ExternalLink,
  38. MultipleLocalFile,
  39. MultipleExternalLink
  40. }
  41. public enum SubscriptionTypes: int
  42. {
  43. Disabled,
  44. Instant,
  45. DailyDigest,
  46. WeeklyDigest
  47. }
  48. public enum TopicTypes: int
  49. {
  50. Topic,
  51. Poll
  52. }
  53. public enum EmailFormats: int
  54. {
  55. HTML,
  56. PlainText
  57. }
  58. public enum ProfileTypes: int
  59. {
  60. Disabled,
  61. Basic,
  62. Advanced,
  63. Social
  64. }
  65. public enum PMTypes: int
  66. {
  67. Disabled,
  68. AM,
  69. Ventrian,
  70. Social
  71. }
  72. public enum SpecialTokenTypes: int
  73. {
  74. AddThis //http://www.addthis.com
  75. }
  76. public enum TrustTypes: int
  77. {
  78. NotTrusted,
  79. Trusted
  80. }
  81. public class Globals
  82. {
  83. public static string DefaultAnonRoles
  84. {
  85. get
  86. {
  87. return DotNetNuke.Common.Globals.glbRoleUnauthUser + ";" + DotNetNuke.Common.Globals.glbRoleAllUsers + ";";
  88. }
  89. }
  90. public const string ModulePath = "~/DesktopModules/ActiveForums/";
  91. public const string ControlRegisterTag = "<%@ Register TagPrefix=\"am\" Namespace=\"DotNetNuke.Modules.ActiveForums.Controls\" Assembly=\"DotNetNuke.Modules.ActiveForums\" %>";
  92. public const string ControlRegisterAFTag = "<%@ Register TagPrefix=\"af\" Namespace=\"DotNetNuke.Modules.ActiveForums.Controls\" Assembly=\"DotNetNuke.Modules.ActiveForums\" %>";
  93. public const string SocialRegisterTag = "<%@ Register TagPrefix=\"social\" Namespace=\"Active.Modules.Social.Controls\" Assembly=\"Active.Modules.Social\" %>";
  94. public const int GroupCount = 10000000;
  95. public const int ForumCount = 10000000;
  96. public const int SiteCount = -1;
  97. }
  98. public class SettingKeys
  99. {
  100. public const string GeneralSettingsKey = "GEN";
  101. public const string Mode = "MODE";
  102. public const string PageSize = "PAGESIZE";
  103. public const string AllowUserPhotos = "ALLOWUSERPHOTOS";
  104. public const string AllowUserBio = "ALLOWUSERBIO";
  105. public const string AllowSubscribe = "ALLOWSUBSCRIBE";
  106. public const string UserNameDisplay = "USERNAMEDISPLAY";
  107. public const string DisableUserProfiles = "DISABLEUSERPROFILES";
  108. public const string ProfileType = "PROFILETYPE";
  109. public const string ProfileTabId = "PROFILETABID";
  110. public const string AllowAvatars = "ALLOWAVATARS";
  111. public const string AllowAvatarLinks = "ALLOWAVATARLINKS";
  112. public const string AvatarHeight = "AVATARHEIGHT";
  113. public const string AvatarWidth = "AVATARWIDTH";
  114. public const string AvatarDefault = "AVATARDEFAULT";
  115. public const string AllowSignatures = "ALLOWSIGNATURES";
  116. public const string StatsEnabled = "STATSENABLED";
  117. public const string StatsTemplate = "STATSTEMPLATE";
  118. public const string StatsCache = "STATSCACHE";
  119. public const string DateFormatString = "DATEFORMATSTRING";
  120. public const string TimeFormatString = "TIMEFORMATSTRING";
  121. public const string TimeZoneOffset = "TIMEZONEOFFSET";
  122. public const string UsersOnlineEnabled = "USERSONLINEENABLED";
  123. public const string MemberListMode = "MEMBERLISTMODE";
  124. public const string ForumTemplateId = "FORUMTEMPLATEID";
  125. public const string DisableAccountTab = "DISABLEACCOUNTTAB";
  126. public const string Theme = "THEME";
  127. public const string MailQueue = "MAILQUEUE";
  128. public const string FullText = "FULLTEXT";
  129. public const string AllowSubTypes = "ALLOWSUBTYPES";
  130. public const string TemplateCache = "TEMPLATECACHE";
  131. public const string FloodInterval = "FLOODINTERVAL";
  132. public const string EditInterval = "EDITINTERVAL";
  133. public const string LoggingLevel = "LOGGINGLEVEL";
  134. public const string DeleteBehavior = "DELETEBEHAVIOR";
  135. public const string ProdKey = "AMFORUMS";
  136. #if SKU_ENTERPRISE
  137. public const string ProdSku = "AF43ENT";
  138. #elif SKU_STANDARD
  139. public const string ProdSku = "AF43STD";
  140. #elif SKU_EXPRESS
  141. public const string ProdSku = "AF43EXP";
  142. #elif SKU_LITE
  143. public const string ProdSku = "AF43LITE";
  144. #endif
  145. public const string EnablePoints = "ENABLEPOINTS";
  146. public const string TopicPointValue = "TOPICPOINTVALUE";
  147. public const string ReplyPointValue = "REPLYPOINTVALUE";
  148. public const string AnswerPointValue = "ANSWERPOINTVALUE";
  149. public const string ModPointValue = "MODPOINTVALUE";
  150. public const string MarkAnswerPointValue = "MARKANSWERPOINTVALUE";
  151. public const string PMType = "PMTYPE";
  152. public const string PMTabId = "PMTABID";
  153. public const string InstallDate = "INSTALLDATE";
  154. public const string IsInstalled = "INSTALLED";
  155. public const string ProfileVisibility = "PROFILEVISIBILITY";
  156. public const string AddThisAccount = "ADDTHISACCOUNT";
  157. public const string UseShortUrls = "SHORTURLS";
  158. public const string RequireCaptcha = "REQCAPTCHA";
  159. public const string UseSkinBreadCrumb = "USESKINBC";
  160. public const string EnableAutoLink = "AUTOLINK";
  161. public const string ActiveSocialTopicKey = "ASTAK";
  162. public const string ActiveSocialRepliesKey = "ASRAK";
  163. public const string EnableURLRewriter = "EURLR";
  164. public const string PrefixURLBase = "URLBASE";
  165. public const string PrefixURLTags = "URLTAGS";
  166. public const string PrefixURLCategories = "URLCATS";
  167. public const string PrefixURLOther = "URLOTHER";
  168. public const string AdminResourceFile = "~/DesktopModules/ActiveForums/App_LocalResources/AdminResources.resx";
  169. public const string SharedResourceFile = "~/DesktopModules/ActiveForums/App_LocalResources/SharedResources.resx";
  170. public const string CacheDependencyFile = "~/DesktopModules/ActiveForums/cache/cachedep.resources";
  171. public const string TemplatePath = "~/DesktopModules/ActiveForums/config/templates/";
  172. }
  173. public class ForumSettingKeys
  174. {
  175. public const string AllowHTML = "ALLOWHTML";
  176. public const string AllowScript = "ALLOWSCRIPT";
  177. public const string AllowSubscribe = "ALLOWSUBSCRIBE";
  178. public const string AllowEmoticons = "ALLOWEMOTICONS";
  179. public const string AllowPostIcon = "ALLOWPOSTICON";
  180. public const string EditorType = "EDITORTYPE";
  181. public const string EditorWidth = "EDITORWIDTH";
  182. public const string EditorHeight = "EDITORHEIGHT";
  183. public const string EditorToolbar = "EDITORTOOLBAR";
  184. public const string EditorStyle = "EDITORSTYLE";
  185. public const string EditorPermittedUsers = "EDITORPERMITTEDUSERS";
  186. public const string AttachCount = "ATTACHCOUNT";
  187. public const string AttachMaxSize = "ATTACHMAXSIZE";
  188. public const string AttachTypeAllowed = "ATTACHTYPEALLOWED";
  189. public const string AttachStore = "ATTACHSTORE";
  190. public const string AttachMaxHeight = "ATTACHMAXHEIGHT";
  191. public const string AttachMaxWidth = "ATTACHMAXWIDTH";
  192. public const string AttachUniqueFileNames = "ATTACHUNIQUEFILENAMES";
  193. public const string IndexContent = "INDEXCONTENT";
  194. public const string AllowRSS = "ALLOWRSS";
  195. public const string TopicsTemplateId = "TOPICSTEMPLATEID";
  196. public const string TopicTemplateId = "TOPICTEMPLATEID";
  197. public const string IsModerated = "ISMODERATED";
  198. public const string AutoTrustLevel = "AUTOTRUSTLEVEL";
  199. public const string DefaultTrustValue = "DEFAULTTRUSTLEVEL";
  200. public const string ModApproveTemplateId = "MODAPPROVETEMPLATEID";
  201. public const string ModRejectTemplateId = "MODREJECTTEMPLATEID";
  202. public const string ModMoveTemplateId = "MODMOVETEMPLATEID";
  203. public const string ModDeleteTemplateId = "MODDELETETEMPLATEID";
  204. public const string ModNotifyTemplateId = "MODNOTIFYTEMPLATEID";
  205. public const string EmailAddress = "EMAILADDRESS";
  206. public const string UseFilter = "USEFILTER";
  207. public const string AllowAttach = "ALLOWATTACH";
  208. public const string TopicFormId = "TOPICFORMID";
  209. public const string ReplyFormId = "REPLYFORMID";
  210. public const string QuickReplyFormId = "QUICKREPLYFORMID";
  211. public const string ProfileTemplateId = "PROFILETEMPLATEID";
  212. public const string AutoSubscribeEnabled = "AUTOSUBSCRIBEENABLED";
  213. public const string AutoSubscribeRoles = "AUTOSUBSCRIBEROLES";
  214. public const string AutoSubscribeNewTopicsOnly = "AUTOSUBSCRIBENEWTOPICSONLY";
  215. public const string AllowTags = "ALLOWTAGS";
  216. public const string ActiveSocialEnabled = "AMASON";
  217. public const string ActiveSocialTopicsOnly = "AMASTO";
  218. public const string ActiveSocialSecurityOption = "AMASSEC";
  219. public const string MCEnabled = "MCENABLED";
  220. public const string MCUrl = "MCURL";
  221. public const string MCAddress = "MCADDRESS";
  222. public const string MCRestrictByAlias = "MCRESTRICTALIAS";
  223. public const string MCPop3UserName = "MCPOPUSERNAME";
  224. public const string MCPop3Password = "MCPOPPASSWORD";
  225. public const string MCPop3Server = "MCPOPSERVER";
  226. public const string MCAutoResponseTemplateId = "MCAUTORESPONSE";
  227. public const string MCAdminNotifyTemplateId = "MCADMINNOTIFY";
  228. public const string MCSubNotifyTemplateId = "MCSUBNOTIFY";
  229. public const string MCRejectTemplateId = "MCREJECTNOTIFY";
  230. public const string MCAutoCreateUsers = "MCAUTOCREATEUSERS";
  231. public const string MCModType = "MCMODTYPE";
  232. public const string MCEOMTag = "MCEOMTAG";
  233. public const string MCEOMTagRequired = "MCEOMTAGREQ";
  234. public const string MCRemoveHTML = "MCSTRIPHTML";
  235. }
  236. public class ParamKeys
  237. {
  238. public const string ForumId = "aff";
  239. public const string GroupId = "afg";
  240. public const string TopicId = "aft";
  241. public const string ReplyId = "afr";
  242. public const string ViewType = "afv";
  243. public const string QuoteId = "afq";
  244. public const string PageId = "afpg";
  245. public const string PostId = "postid";
  246. public const string Sort = "afs";
  247. public const string PageJumpId = "afpg";
  248. public const string ContentJumpId = "afc";
  249. public const string ConfirmActionId = "afca";
  250. public const string Tags = "aftg";
  251. public const string FirstNewPost = "afnp";
  252. }
  253. public class Views
  254. {
  255. public const string Topics = "topicsview";
  256. public const string Topic = "topic";
  257. public const string ForumView = "forumview";
  258. public const string TopicNew = "topicnew";
  259. public const string TopicEdit = "topicedit";
  260. }
  261. public class CacheKeys
  262. {
  263. public const string Rewards = "afrwd{0}";
  264. public const string PostInfo = "afpi{0}";
  265. public const string ForumInfo = "affi{0}";
  266. public const string ForumInfoWithUser = "affi{0}-{1}"; // KR
  267. public const string AllSettings = "afset{0}"; // KR
  268. public const string MainSettings = "afms{0}";
  269. public const string GroupInfo = "afgi{0}";
  270. public const string ProfileTemplate = "afpit{0}";
  271. public const string ForumList = "affl{0}";
  272. }
  273. public enum ConfirmActions: int
  274. {
  275. TopicSaved,
  276. TopicDeleted,
  277. ReplySaved,
  278. ReplyDeleted,
  279. MessagePending,
  280. MessageMoved,
  281. MessageDeleted,
  282. SendToComplete,
  283. SendToFailed,
  284. AlertSent
  285. }
  286. public class SortColumns
  287. {
  288. public const string ReplyCreated = "ReplyCreated";
  289. public const string TopicCreated = "TopicCreated";
  290. }
  291. }