Guest User

Untitled

a guest
Nov 4th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.86 KB | None | 0 0
  1. <?php
  2. /**
  3. * This is MyAAC's Main Configuration file
  4. *
  5. * All the default values are kept here, you should not modify it but use
  6. * a config.local.php file instead to override the settings from here.
  7. *
  8. * This is a piece of PHP code so PHP syntax applies!
  9. * For boolean values please use true/false.
  10. *
  11. * Minimally 'server_path' directive have to be filled, other options are optional.
  12. *
  13. * @package MyAAC
  14. * @author Slawkens <slawkens@gmail.com>
  15. * @copyright 2017 MyAAC
  16. * @version 0.6.6
  17. * @link http://my-aac.org
  18. */
  19.  
  20. $config = array(
  21. // directories & files
  22. 'server_path' => '', // path to the server directory (same directory where config file is located)
  23.  
  24. 'template' => 'tibiacom', // template used by website (kathrine, tibiacom)
  25. 'template_allow_change' => false, // allow users to choose their own template while browsing website?
  26.  
  27. 'vocations_amount' => 4, // how much basic vocations your server got (without promotion)
  28.  
  29. // what client version are you using on this OT?
  30. // used for the Downloads page and some templates aswell
  31. 'client' => 1098, // 954 = client 9.54
  32.  
  33. 'session_prefix' => 'myaac_', // must be unique for every site on your server
  34. 'friendly_urls' => false, // mod_rewrite is required for this, it makes links looks more elegant to eye, and also are SEO friendly (example: http://my-aac.org/guilds/Testing instead of http://my-aac.org/?subtopic=guilds&name=Testing). Remember to rename .htaccess.dist to .htaccess
  35. 'gzip_output' => false, // gzip page content before sending it to the browser, uses less bandwidth but more cpu cycles
  36.  
  37. // gesior backward support (templates & pages)
  38. // allows using gesior templates and pages with myaac
  39. // might bring some performance when disabled
  40. 'backward_support' => true,
  41.  
  42. // head options (html)
  43. 'meta_description' => 'Tibia is a free massive multiplayer online role playing game (MMORPG).', // description of the site
  44. 'meta_keywords' => 'free online game, rpg, otserver, free multiplayer game, ots, open tibia server', // keywords list separated by commas
  45. 'title_separator' => ' - ',
  46.  
  47. // footer
  48. 'footer' => 'Fantasy &copy; 2018. All rights reserved.'/*'<br/>Your Server &copy; 2016. All rights reserved.'*/,
  49.  
  50. 'debug_level' => 0, // 0 - disabled, 1 - show load time, 2 - show db query counter, 3 - both, 4 - memory usage, 5 - load time & memory usage, 6 - queries & memory usage, 7 - all
  51.  
  52. 'language' => 'en', // default language (currently only 'en' available)
  53. 'language_allow_change' => true,
  54.  
  55. 'visitors_counter' => true,
  56. 'visitors_counter_ttl' => 10, // how long visitor will be marked as online (in minutes)
  57. 'views_counter' => true,
  58.  
  59. // cache system. by default file cache is used
  60. 'cache_engine' => 'auto', // apc, eaccelerator, xcache, file, auto, or blank to disable.
  61. 'cache_prefix' => 'myaac_', // have to be unique if running more MyAAC instances on the same server (except file system cache)
  62.  
  63. // database details (leave blank for auto detect from config.lua)
  64. 'database_host' => '',
  65. 'database_port' => '', // leave blank to default 3306
  66. 'database_user' => '',
  67. 'database_password' => '',
  68. 'database_name' => '',
  69.  
  70. // multiworld system (only TFS 0.3)
  71. 'multiworld' => false, // use multiworld system?
  72. 'worlds' => array( // list of worlds
  73. //'1' => 'Your World Name',
  74. //'2' => 'Your Second World Name'
  75. ),
  76.  
  77. // images
  78. 'outfit_images_url' => 'http://outfit-images.ots.me/outfit.php', // set to animoutfit.php for animated outfit
  79. 'item_images_url' => 'http://item-images.ots.me/1096/', // set to images/items if you host your own items in images folder
  80.  
  81. // account
  82. 'account_management' => true, // disable if you're using other method to manage users (fe. tfs account manager)
  83. 'account_mail_verify' => false, // force users to confirm their email addresses when registering account
  84. 'account_mail_unique' => true, // email addresses cannot be duplicated? (one account = one email)
  85. 'account_premium_days' => 0, // default premium days on new account
  86. 'account_premium_points' => 0, // default premium points on new account
  87. 'account_welcome_mail' => true, // send welcome email when user registers
  88. 'account_mail_change' => 2, // how many days user need to change email to account - block hackers
  89. 'account_country' => true, // user will be able to set country of origin when registering account, this information will be viewable in others places aswell
  90. 'account_country_recognize' => true, // should country of user be automatically recognized by his IP? This makes an external API call to http://ipinfo.io
  91. 'account_change_character_name' => true, // can user change their character name for premium points?
  92. 'account_change_character_name_points' => 20, // cost of name change
  93. 'account_change_character_sex' => true, // can user change their character sex for premium points?
  94. 'account_change_character_sex_points' => 20, // cost of sex change
  95. 'characters_per_account' => 10, // max. number of characters per account
  96.  
  97. // mail
  98. 'mail_enabled' => false, // is aac maker configured to send e-mails?
  99. 'mail_address' => 'no-reply@your-server.org', // server e-mail address (from:)
  100. 'mail_admin' => 'your-address@your-server.org', // admin email address, where mails from contact form will be sent
  101. 'mail_signature' => array( // signature that will be included at the end of every message sent using _mail function
  102. 'plain' => ''/*'--\nMy Server,\nhttp://www.myserver.com'*/,
  103. 'html' => ''/*'<br/>My Server,\n<a href="http://www.myserver.com">myserver.com</a>'*/
  104. ),
  105. 'smtp_enabled' => false, // send by smtp or mail function (set false if use mail function)
  106. 'smtp_host' => '', // mail host
  107. 'smtp_port' => 25, // 25 (default) / 465 (ssl, e.g. gmail)
  108. 'smtp_auth' => true, // need authorization?
  109. 'smtp_user' => 'admin@example.org',
  110. 'smtp_pass' => '',
  111.  
  112. // reCAPTCHA (prevent spam bots)
  113. 'recaptcha_enabled' => false, // enable recaptcha verification code
  114. 'recaptcha_site_key' => '', // get your own site and secret keys at https://www.google.com/recaptcha
  115. 'recaptcha_secret_key' => '',
  116. 'recaptcha_theme' => 'light', // light, dark
  117.  
  118. //
  119. 'generate_new_reckey' => true, // let player generate new recovery key, he will receive e-mail with new rec key (not display on page, hacker can't generate rec key)
  120. 'generate_new_reckey_price' => 20, // price for new recovery key
  121. 'send_mail_when_change_password' => true, // send e-mail with new password when change password to account
  122. 'send_mail_when_generate_reckey' => true, // send e-mail with rec key (key is displayed on page anyway when generate)
  123.  
  124. // genders (aka sex)
  125. 'genders' => array(
  126. 0 => 'Female',
  127. 1 => 'Male'
  128. ),
  129.  
  130. // new character config
  131. 'character_samples' => array( // vocations, format: ID_of_vocation => 'Name of Character to copy'
  132. //0 => 'Rook Sample',
  133. 1 => 'Sorcerer Sample',
  134. 2 => 'Druid Sample',
  135. 3 => 'Paladin Sample',
  136. 4 => 'Knight Sample'
  137. ),
  138.  
  139. // town list used when creating character
  140. // won't be displayed if there is only one item (rookgaard for example)
  141. 'character_towns' => array(1),
  142.  
  143. // list of towns
  144. 'towns' => array(
  145. 1 => 'Trevolk',
  146. 2 => 'Rhyves',
  147. 3 => "Varak",
  148. 4 => 'Jorvik',
  149. 5 => 'Saund',
  150. 6 => 'Fantasy'
  151.  
  152.  
  153. ),
  154.  
  155. // guilds
  156. 'guild_management' => true, // enable guild management system on the site?
  157. 'guild_need_level' => 50, // min. level to form a guild
  158. 'guild_need_premium' => false, // require premium account to form a guild?
  159. 'guild_image_size_kb' => 80, // maximum size of the guild logo image in KB (kilobytes)
  160. 'guild_description_chars_limit' => 1000, // limit of guild description
  161. 'guild_description_lines_limit' => 6, // limit of lines, if description has more lines it will be showed as long text, without 'enters'
  162. 'guild_motd_chars_limit' => 150, // limit of MOTD (message of the day) that is shown later in the game on the guild channel
  163.  
  164. 'quests' => array(), // quests list (displayed in character view), name => storage
  165.  
  166. 'signature_enabled' => true,
  167. 'signature_type' => 'tibian', // signature engine to use: tibian, mango, gesior
  168. 'signature_cache_time' => 5, // how long to store cached file (in minutes), default 5 minutes
  169. 'signature_browser_cache' => 60, // how long to cache by browser (in minutes), default 1 hour
  170.  
  171. // online page
  172. 'online_record' => true, // display players record?
  173. 'online_vocations' => false, // display vocation statistics?
  174. 'online_vocations_images' => false, // display vocation images?
  175. 'online_skulls' => true, // display skull images
  176. 'online_outfit' => true,
  177. 'online_afk' => false,
  178.  
  179. // support list page
  180. 'team_style' => 2, // 1/2 (1 - normal table, 2 - in boxes, grouped by group id)
  181. 'team_display_status' => true,
  182. 'team_display_lastlogin' => true,
  183. 'team_display_world' => false,
  184.  
  185. // bans page
  186. 'bans_limit' => 50,
  187. 'bans_display_all' => true, // should all bans be displayed? (sorted page by page)
  188.  
  189. // highscores page
  190. 'highscores_vocation_box' => false, // show 'Choose a vocation' box on the highscores (allowing peoples to sort highscores by vocation)?
  191. 'highscores_vocation' => true, // show player vocation under his nickname?
  192. 'highscores_frags' => true, // show 'Frags' tab (best fraggers on the server)? Only 0.3
  193. 'highscores_outfit' => true, // show player outfit?
  194. 'highscores_country_box' => false, // doesnt work yet! (not implemented)
  195. 'highscores_groups_hidden' => 3, // this group id and higher won't be shown on the highscores
  196. 'highscores_length' => 100, // how many records per page on highscores
  197.  
  198. // characters page
  199. 'characters' => array( // what things to display on character view page (true/false in each option)
  200. 'level' => true,
  201. 'experience' => false,
  202. 'magic_level' => false,
  203. 'balance' => false,
  204. 'marriage_info' => true, // only 0.3
  205. 'outfit' => true,
  206. 'creation_date' => true,
  207. 'quests' => true,
  208. 'skills' => true,
  209. 'equipment' => true,
  210. 'frags' => false
  211. ),
  212.  
  213.  
  214.  
  215.  
  216. // news page
  217. 'news_limit' => 5, // limit of news on the latest news page
  218. 'news_ticker_limit' => 5, // limit of news in tickers (mini news) (0 to disable)
  219. 'news_date_format' => 'j.n.Y', // check php manual date() function for more info about this
  220. 'news_author' => true, // show author of the news
  221.  
  222. // gifts/shop system
  223. 'gifts_system' => true,
  224.  
  225. // forum
  226. 'forum' => 'site', // link to the server forum, set to "site" if you want to use build in forum system, otherwise leave empty if you aren't going to use any forum
  227. 'forum_level_required' => 0, // level required to post, 0 to disable
  228. 'forum_post_interval' => 30, // in seconds
  229. 'forum_posts_per_page' => 20,
  230. 'forum_threads_per_page' => 20,
  231.  
  232. // last kills
  233. 'last_kills_limit' => 50, // max. number of deaths shown on the last kills page
  234.  
  235. // status, took automatically from config file if empty
  236. 'status_ip' => '',
  237. 'status_port' => '',
  238.  
  239. // other
  240. 'email_lai_sec_interval' => 60, // time in seconds between e-mails to one account from lost account interface, block spam
  241. 'google_analytics_id' => '', // e.g.: UA-XXXXXXX-X
  242. 'experiencetable_columns' => 5, // how many columns to display in experience table page. * experiencetable_rows, 5 = 500 (will show up to 500 level)
  243. 'experiencetable_rows' => 100, // till how many levels in one column
  244. 'date_timezone' => 'Europe/Berlin', // more info at http://php.net/manual/en/timezones.php
  245.  
  246. 'monsters' => array(),
  247. 'npc' => array()
  248.  
  249.  
  250. );
  251.  
  252. // Pagseguro Automático by Absolute on Luminera
  253. // Seu email cadastrado no PagSeguro
  254. $config['pagseguro']['email'] = 'arteimpressaosr@gmail.com';
  255. // Nome do produto
  256. $config['pagseguro']['produtoNome'] = 'Premium Points';
  257.  
  258. // Valor de cada ponto
  259. // Exemplo de valores:
  260. // 100 = R$ 1,00
  261. // 250 = R$ 2,50
  262. $config['pagseguro']['produtoValor'] = '100';
  263.  
  264.  
  265. // download link to client.
  266. $config['client_download'] = 'http://tibia-clients.com/clients/download/'. $config['client'] .'/exe/windows';
  267. $config['client_download_linux'] = 'http://tibia-clients.com/clients/download/'. $config['client'] .'/tar/linux';
  268.  
  269. ?>
Add Comment
Please, Sign In to add comment