KRDucky

simpleregister

May 31st, 2023 (edited)
988
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.29 KB | None | 0 0
  1. <?php
  2. /**
  3. * @author Amin Mahmoudi (MasterkinG)
  4. * @copyright Copyright (c) 2019 - 2021, MasterkinG32. (https://masterking32.com)
  5. * @link https://masterking32.com
  6. * @Description : It's not masterking32 framework !
  7. **/
  8.  
  9. /*===================================================================
  10. baseurl
  11. That's your website URL. Example: "https://DOMAIN.COM"
  12. page_title
  13. That's your website title. Example: "My WOW Private server!"
  14. language
  15. Default website language (english/persian/italian/chinese-simplified/chinese-traditional/swedish/french/german/spanish/korean/russian)
  16. supported_langs
  17. List of languages supported, You can remove each language you don't want!
  18. if you want to disable language changer, Change it to: $config['supported_langs'] = false;
  19. =====================================================================*/
  20. $config['baseurl'] = "http://localhost"; // MAKE SURE USE VALID URL, If you have any issue loading images and template please check this field
  21. $config['page_title'] = "Simple Register";
  22. $config['language'] = "english";
  23. $config['supported_langs'] = [
  24. 'english' => 'English',
  25. 'persian' => 'Persian',
  26. 'italian' => 'Italian',
  27. 'chinese-simplified' => 'Chinese Simplified',
  28. 'chinese-traditional' => 'Chinese Traditional',
  29. 'swedish' => 'Swedish',
  30. 'french' => 'French',
  31. 'german' => 'German',
  32. 'spanish' => 'Spanish',
  33. 'korean' => 'Korean',
  34. 'russian' => 'Russian'
  35. ];
  36. /*===================================================================
  37. If you see a white screen or have an issue, you can enable it to see the errors.
  38. Note that after testing, be sure to disable this option.
  39. =====================================================================*/
  40. $config['debug_mode'] = false; // ENABLE Debug mode if you got blank screen or 503 error, to see what happen?
  41. /*===================================================================
  42. Your server information.
  43. realmlist
  44. Server Realmlist
  45. patch_location
  46. If have patch set URL to download our patch here or make that empty
  47. game_version
  48. Your game version
  49. =====================================================================*/
  50. $config['realmlist'] = 'localhost';
  51. /*$config['patch_location'] = 'http://mypatch.com/patch.mpq';*/
  52. $config['game_version'] = '3.3.5a (12340)';
  53. /*===================================================================
  54. Select your server expansion.
  55. If you want to use advance template, Your images and backgrounds will be changed for your expansion.
  56. 0 = Classic
  57. 1 = The Burning Crusade (TBC)
  58. 2 = Wrath of the Lich King (WotLK)
  59. 3 = Cataclysm
  60. 4 = Mist of Pandaria (MOP)
  61. 5 = Warlords of Draenor (WOD)
  62. 6 = Legion
  63. 7 = BFA (I'm not sure about this one!)
  64. =====================================================================*/
  65. $config['expansion'] = '2';
  66. /*===================================================================
  67. Core Type:
  68. 0 = TrinityCore
  69. 1 = AzerothCore
  70. 2 = AshamaneCore
  71. 3 = Skyfire Project
  72. 4 = OregonCore
  73. 5 = CMangos
  74. 10 = etc
  75. =====================================================================*/
  76. $config['server_core'] = 1;
  77. /*===================================================================
  78. If your server is WoD/Legion/BFA you should enable it!
  79. =====================================================================*/
  80. $config['battlenet_support'] = false;
  81. /*===================================================================
  82. If your core password encryption is SRP6, you need to enable it.
  83. For the last versions of the TrinityCore(3.3.5/master)/AzerothCore, you need to enable it. https://git.io/JJRH4 and https://git.io/JJrxq
  84. Enable that if you use the last version of TC.
  85. For old versions, Make sure this feature is disabled.
  86. You need to enable the GMP extension for PHP.
  87. =====================================================================
  88. ***************** GMP REQUIRED ********************
  89. ******Uncomment extension=gmp in your php.ini******
  90. =====================================================================*/
  91. $config['srp6_support'] = true; // READ COMMENTS, [Please ENABLE GMP]
  92. /*===================================================================
  93. If you have an issue with top players or online players you can disable them!
  94. disable_top_players
  95. Disable server top players page [true: Hide top players page]
  96. disable_online_players
  97. Disable online players page [true: Hide online players page]
  98. disable_changepassword
  99. Disable change password
  100. Change this to true, If you are using SOAP for registration.
  101. =====================================================================*/
  102. $config['disable_top_players'] = false;
  103. $config['disable_online_players'] = false;
  104. $config['disable_changepassword'] = false;
  105. /*===================================================================
  106. Allow to users make account with an email for several accounts (Just work for non-battle.net servers)
  107. =====================================================================*/
  108. $config['multiple_email_use'] = false;
  109. /*===================================================================
  110. Template name, You can change it to:
  111. light
  112. advance
  113. icecrown
  114. kaelthas
  115. battleforazeroth
  116. =====================================================================*/
  117. $config['template'] = 'advance';
  118. /*===================================================================
  119. SMTP config.
  120. We need this part to send an email. (used for restore password and 2FA)
  121. You can use your own SMTP or Gmail/Yahoo/Hotmail and etc
  122. smtp_host
  123. Specify main and backup SMTP servers
  124. smtp_port
  125. TCP port to connect to
  126. smtp_auth
  127. Enable SMTP authentication
  128. smtp_user
  129. SMTP username
  130. smtp_pass
  131. SMTP password
  132. smtp_secure
  133. Enable TLS encryption, `ssl` also accepted
  134. smtp_mail
  135. Send emails by ...
  136. =====================================================================*/
  137. /*$config['smtp_host'] = 'smtp1.example.com';
  138. $config['smtp_port'] = 587;
  139. $config['smtp_auth'] = true;
  140. $config['smtp_user'] = '[email protected]';
  141. $config['smtp_pass'] = 'SECRET';
  142. $config['smtp_secure'] = 'tls';
  143. $config['smtp_mail'] = '[email protected]';*/
  144. /*===================================================================
  145. vote_system
  146. You can enable/disable vote system.
  147. Vote system is a simple and don't have postback or something like that to verify the votes
  148. If you use Cloudflare and you have issue with IPs and voting, Read this: https://support.cloudflare.com/hc/en-us/articles/200170786
  149. vote_sites
  150. Your vote sites and images, must be array.
  151. =====================================================================*/
  152. $config['vote_system'] = true;
  153. $config['vote_sites'] = array(
  154. array(
  155. 'image' => 'http://www.top100arena.com/hit.asp?id=93137&c=WoW&t=2',
  156. 'site_url' => 'http://www.top100arena.com/in.asp?id=93137'
  157. ),
  158. array(
  159. 'image' => 'https://topg.org/topg.gif',
  160. 'site_url' => 'https://topg.org/wow-private-servers/in-479394'
  161. ),
  162. array(
  163. 'image' => 'http://www.xtremeTop100.com/votenew.jpg',
  164. 'site_url' => 'http://www.xtremetop100.com/in.php?site=1132364316'
  165. )
  166. );
  167. /*===================================================================
  168. You can use Image captcha or HCaptcha or Recaptcha v2.
  169. If you want to use Recaptcha v2 or HCaptcha required to enable cURL in your PHP.
  170. ** We recommend using HCaptcha. **
  171. captcha_type
  172. 0) Image Captcha
  173. 1) HCaptcha
  174. 2) ReCaptcha v2
  175. +2) Disable captcha. (DON'T DO THAT!)
  176. For image captcha, you don't need to put anything for captcha_key captcha_secret or captcha_language.
  177. captcha_secret/captcha_secret
  178. To get key and secret for HCaptcha go to https://hCaptcha.com/?r=6d4f9117ba12
  179. To get key and secret for Recaptcha go to https://www.google.com/recaptcha
  180. captcha_language
  181. https://docs.hcaptcha.com/languages
  182. https://developers.google.com/recaptcha/docs/language
  183. =====================================================================
  184. ******Uncomment extension=gd2 in your php.ini******
  185. =====================================================================*/
  186. $config['captcha_type'] = 0;
  187. $config['captcha_key'] = '';
  188. $config['captcha_secret'] = '';
  189. $config['captcha_language'] = 'en';
  190. /*===================================================================
  191. soap_for_register
  192. Don't Enable it for AzerothCore/TrinityCore/SkyFire and AshamaneCore.
  193. If you enable that you need to disabled change password feature.
  194. If you want to enable Two-Factor Authentication (2FA) you don't need to enable this option.
  195. For Two-Factor Authentication (2FA) just need to config other parts of the SOAP.
  196.  
  197. SOAP features need to enable soap in your PHP.
  198.  
  199. soap_host
  200. SOAP server address
  201. soap_port
  202. SOAP server port.
  203. soap_uri
  204. urn:TC for TrinityCore
  205. urn:AC for AzerothCore
  206. urn:MaNGOS for Mangos
  207. soap_style
  208. SOAP style
  209. soap_username
  210. SOAP account username
  211. soap_password
  212. SOAP account password
  213. soap_ca_command
  214. Create account command
  215. You can use it like this too: '.account create {USERNAME} {PASSWORD} {PASSWORD} {EMAIL}'
  216. Check create account command in your server!
  217. soap_cp_command
  218. Change password command
  219. account set password {USERNAME} {PASSWORD} {PASSWORD}
  220. Check change password command in your server
  221. soap_asa_command
  222. If you use soap_for_register, You need to set this command.
  223. This command will be run after soap_ca_command.
  224. If you don't want to run any command after soap_ca_command you can make it empty like this: ''
  225. account set addon {USERNAME} {EXPANSION}
  226. =====================================================================
  227. ******Uncomment extension=soap in your php.ini******
  228. =====================================================================*/
  229. $config['soap_for_register'] = false;
  230. $config['soap_host'] = '127.0.0.1';
  231. $config['soap_port'] = '7878';
  232. $config['soap_uri'] = 'urn:MaNGOS';
  233. $config['soap_style'] = 'SOAP_RPC';
  234. $config['soap_username'] = 'admin_soap';
  235. $config['soap_password'] = 'admin_soap';
  236. $config['soap_ca_command'] = 'account create {USERNAME} {PASSWORD}';
  237. $config['soap_cp_command'] = 'account set password {USERNAME} {PASSWORD} {PASSWORD}';
  238. $config['soap_asa_command'] = 'account set addon {USERNAME} {EXPANSION}';
  239. /*===================================================================
  240. Two-Factor Authentication (2FA)
  241. Your core must support 2fa.
  242. This feature just works for cores that have 2fa command.
  243. If your core support 2fa but don't have any command, you can check this: https://github.com/masterking32/WoWSimpleRegistration/pull/20 (Support some of the cores, Required to use 2fa for registration.)
  244.  
  245. You need to config SOAP too but you don't need to enable 'soap_for_register'.
  246. For security reasons, We used email to enable 2fa, You need to enable SMTP config.
  247.  
  248. 2fa_support
  249. You can enable or disable it. (true/false)
  250. soap_2d_command
  251. Command to disable 2fa.
  252. account set 2fa {USERNAME} off
  253. soap_2e_command
  254. Command to enable 2fa.
  255. account set 2fa {USERNAME} {SECRET}
  256. =====================================================================*/
  257. $config['2fa_support'] = false;
  258. $config['soap_2d_command'] = 'account set 2fa {USERNAME} off';
  259. $config['soap_2e_command'] = 'account set 2fa {USERNAME} {SECRET}';
  260. /*===================================================================
  261. You Auth/Realmd MySQL information.
  262. db_auth_host
  263. Auth Database Host
  264. db_auth_port
  265. Auth Database Port
  266. db_auth_user
  267. Auth Database Username
  268. db_auth_pass
  269. Auth Database Password
  270. db_auth_dbname
  271. Auth Database DBName
  272. =====================================================================*/
  273. $config['db_auth_host'] = 'localhost';
  274. $config['db_auth_port'] = '3306';
  275. $config['db_auth_user'] = 'root';
  276. $config['db_auth_pass'] = 'xxxxxxx';
  277. $config['db_auth_dbname'] = 'acore_auth';
  278. /*===================================================================
  279. Your character's databases.
  280. If your server has a lot of realms you can check the example at the bottom of the file.
  281. =====================================================================*/
  282. $config['realmlists'] = array(
  283. "1" => array(
  284. 'realmid' => 0, // Realm ID
  285. 'realmname' => "Realm 0", // Realm Name
  286. 'db_host' => "127.0.0.1", // MySQL Host IP
  287. 'db_port' => "3306", // MySQL Host Port
  288. 'db_user' => "root", // MySQL username
  289. 'db_pass' => 'xxxxxx', // MySQL password
  290. 'db_name' => "realmcharacters" // Characters database name
  291. )
  292. );
  293.  
  294. /*
  295. **********************************
  296. * EXMAPLE OF MORE THAN ONE REALM *
  297. **********************************
  298.  
  299. $config['realmlists'] = array( // Add your realmlist here
  300. "1" => array(
  301. 'realmid' => 1,
  302. 'realmname' => "Realm 1",
  303. 'db_host' => "127.0.0.1",
  304. 'db_port' => "3306",
  305. 'db_user' => "root",
  306. 'db_pass' => "root",
  307. 'db_name' => "rm1_chars"
  308. ),
  309. "2" => array(
  310. 'realmid' => 2,
  311. 'realmname' => "Realm 2",
  312. 'db_host' => "127.0.0.1",
  313. 'db_port' => "3306",
  314. 'db_user' => "root",
  315. 'db_pass' => "root",
  316. 'db_name' => "rm2_chars"
  317. ),
  318. "3" => array(
  319. 'realmid' => 3,
  320. 'realmname' => "Realm 3",
  321. 'db_host' => "127.0.0.1",
  322. 'db_port' => "3306",
  323. 'db_user' => "root",
  324. 'db_pass' => "root",
  325. 'db_name' => "rm3_chars"
  326. )
  327. );
  328. */
  329.  
  330.  
  331.  
  332. $config['script_version'] = '2.0.2';
  333.  
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment