Guest User

Untitled

a guest
Aug 9th, 2018
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.69 KB | None | 0 0
  1. #### PLEASE NOTE ##################################################
  2. # #
  3. # SECTIONS SURROUNDED BY "#"s ARE THERE TO EXPLAIN, IN DETAIL, #
  4. # WHAT EACH SETTING IS USED FOR. #
  5. # #
  6. # THE ACTUAL SECTION SETTINGS WILL FOLLOW SHORTLY AFTER EACH #
  7. # SETTING'S EXPLANATION. #
  8. # #
  9. ###################################################################
  10.  
  11. <Login
  12.  
  13. # Hostname or IP address the login server will listen on.
  14. # 0.0.0.0 will listen on all interfaces, so if you don't
  15. # know, leave it as default!
  16. host = "0.0.0.0"
  17.  
  18. # Port the login server listens on.
  19. # Default login server port: 15100
  20. port = "15100"
  21.  
  22. # Defines the level of content that will be shown.
  23. LogLevel = "2"
  24.  
  25. # Enable automated IP bans of potential "bad people"?
  26. # 0 = No (only if you have problems)
  27. # 1 = Yes
  28. AutoIPBanChecks="0"
  29.  
  30. # Defines the period of time (in minutes) between full account reloads.
  31. # An account will not exist after a player has registered until an
  32. # accounts reload has been performed.
  33. ReloadPeriod = "3"
  34.  
  35. # If you set the billing server to point to the login server from another
  36. # IP address, define it here. Otherwise, leave it as it is.
  37. Aujard = "127.0.0.1"
  38.  
  39. # Use in-game news? To create news, use the "News Creator".
  40. # 0 = No
  41. # 1 = Yes
  42. UseIngameNews = "0"
  43.  
  44. # Hi there! You're reading the configuration.
  45. # Set Die to 0.
  46. Die="0"
  47.  
  48. # Enable auto-registration? (Registers an account on login if it does not exist)
  49. # 0 = No
  50. # 1 = Yes
  51. AutoRegister = "1"
  52.  
  53. # If auto-registration is enabled, and you have any required columns
  54. # (columns that do not have a default value or do not have "Allow nulls" ticked)
  55. # in TB_USER, you must specify them here as a continuation of the existing query:
  56. #
  57. # INSERT INTO TB_USER (strAccountID, strPassword<HERE>)
  58. # VALUES('user', 'pass'..);
  59. AutoRegisterExtraColumns = ", strSocNo, iDays"
  60.  
  61. # If auto-registration is enabled, and you have any required columns
  62. # (columns that do not have a default value or do not have "Allow nulls" ticked)
  63. # in TB_USER, you must specify their intended value here as a continuation of the
  64. # existing query:
  65. #
  66. # INSERT INTO TB_USER (strAccountID, strPassword..)
  67. # VALUES('user', 'pass'<HERE>);
  68. AutoRegisterExtraValues = ", 1234, 6"
  69.  
  70. # Use the new/1.310 server-list structure?
  71. # 0 = No (for servers prior to 1.310)
  72. # 1 = Yes (for 1.310 servers)
  73. NewServerList = "0">
  74.  
  75. <Database
  76.  
  77. # Your accounts database's datasource name
  78. # This is the entry in the ODBC configuration that you
  79. # have configured to point to the accounts database.
  80. #
  81. # If you are using a single database setup (ie: KN_online),
  82. # you'll use the DSN that points to your only database.
  83. #
  84. # If you're unsure, just keep it default and hope it works. :P
  85. dsn = "KN_Online"
  86.  
  87. # The SQL username that has access to your accounts database.
  88. # Default setups use "knight", so if you're unsure, just
  89. # leave it as default and hope it works!
  90. user = "knight"
  91.  
  92. # The password to the username above.
  93. # If unsure, please leave it default.
  94. pass = "knight"
  95.  
  96. # There are two definitions for the VERSION table.
  97. # 0 = Uses shortened column names, ie: compname
  98. # 1 = Uses proper column names, ie: strCompressedName
  99. # The default applies to most setups.
  100. VersionTable = "0"
  101.  
  102. # Hi there! You're reading the configuration.
  103. # Set Die to 0.
  104. Die="0"
  105.  
  106. # Use a stored procedure to handle any custom stuff?
  107. # 0 = Yes
  108. # 1 = No
  109. # The login server already handles the login, so unless
  110. # you have any extreme need to call the stored procedure,
  111. # please leave it disabled!
  112. UseAccountLogin = "0"
  113.  
  114. # The name of the stored procedure used by the above config
  115. # option.
  116. StoredProcedureName = "ACCOUNT_LOGIN"
  117.  
  118. # Hash passwords from the client?
  119. # 0 = Yes
  120. # 1 = No
  121. HashPasswords = "0"
  122.  
  123. # Hash them using what?
  124. # - "md5": Uses the in-built MD5 hasher.
  125. # - "sha1": Uses the in-built SHA1 hasher.
  126. # - "custom": Calls a custom T-SQL function, configured below.
  127. HashType = ""
  128.  
  129. # If you are using the in-built MD5 or SHA1 hashers, you can
  130. # seed the password make things harder for hackers.
  131. # 0 = No
  132. # 1 = Yes
  133. SeedHashes = "0"
  134.  
  135. # If the above is enabled, specify the seed here.
  136. # %s is the password, it MUST be kept in there somewhere.
  137. # The surrounding text is the seed - you can move %s to any
  138. # location inside that string.
  139. HashSeed = "seed%shere">
  140.  
  141. <FTP
  142.  
  143. # 'URL' of the FTP server where the patches are hosted.
  144. # In ftp://ftp.your-site.net/abc/ the URL is ftp.your-site.net
  145. url = "crimson-gaming.org"
  146.  
  147.  
  148. # Relative path from the URL. Directory where the patches are.
  149. # In ftp://ftp.your-site.net/abc/ the path is /abc/
  150. path ="C:\xampp\anonymous">
  151.  
  152. #### PLEASE NOTE ##################################################
  153. # #
  154. # THIS SECTION SHOULD ONLY BE CONFIGURED IF "HashType" WAS SET TO #
  155. # "custom" IN THE DATABASE CONFIGURATION BLOCK! #
  156. # #
  157. # If you did not set it to "custom", then you may stop reading #
  158. # and save & close the configuration file! You are done! #
  159. # #
  160. # With that said... #
  161. # #
  162. # The hash function is called with the password as the first #
  163. # parameter. #
  164. # #
  165. # Each of the parameters below will be called consecutively, and #
  166. # only in that order. #
  167. # #
  168. # If your function differs, please change the order of the #
  169. # parameters in your T-SQL function to copy how they appear here. #
  170. # #
  171. # Order here: #
  172. # 1. strPasswd #
  173. # 2. strAccountID #
  174. # 3. strClientIP #
  175. # #
  176. # Example of a hash function #
  177. # This uses all parameters; you can disable account ID/IP below. #
  178. # #
  179. # CREATE FUNCTION MyHashFunc #
  180. # ( #
  181. # @strPasswd varchar(21), #
  182. # @strAccountID varchar(21), #
  183. # @strClientIP varchar(15) #
  184. # ) RETURNS VARCHAR(1024) #
  185. # AS #
  186. # #
  187. # You should also note that the maximum hash size is 1024 bytes, #
  188. # which should be more than enough for anybody! #
  189. # #
  190. ###################################################################
  191. <HashFunction
  192.  
  193. # Name of the T-SQL hash function you want to call.
  194. Name = "MyVeryOwnHashFunction"
  195.  
  196. # Pass account ID to function?
  197. # 0 = No
  198. # 1 = Yes
  199. AccountName = "0"
  200.  
  201. # Pass client's IP address to function?
  202. # 0 = No
  203. # 1 = Yes
  204. IPAddress = "0">
Add Comment
Please, Sign In to add comment