Guest User

Config.php myacc

a guest
Feb 16th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 13.96 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 2019 MyAAC
  16.  * @link      https://my-aac.org
  17.  */
  18.  
  19. $config = array(
  20.     // directories & files
  21.     'server_path' => '', // path to the server directory (same directory where config file is located)
  22.  
  23.     /**
  24.      * Environment Setting
  25.      *
  26.      * if you use this script on your live server - set to 'prod' (production)
  27.      * if you want to test and debug the script locally, or develop plugins, set to 'dev' (development)
  28.      * WARNING: on 'dev' cache is disabled, so site will be significantly slower !!!
  29.      * WARNING2: on 'dev' all PHP errors/warnings are displayed
  30.      * Recommended: 'prod' cause of speed (page load time is better)
  31.      */
  32.     'env' => 'prod', // 'prod' for production and 'dev' for development
  33.  
  34.     'template' => 'kathrine', // template used by website (kathrine, tibiacom)
  35.     'template_allow_change' => true, // allow users to choose their own template while browsing website?
  36.  
  37.     'vocations_amount' => 4, // how much basic vocations your server got (without promotion)
  38.  
  39.     // what client version are you using on this OT?
  40.     // used for the Downloads page and some templates aswell
  41.     'client' => 1098, // 954 = client 9.54
  42.  
  43.     'session_prefix' => 'myaac_', // must be unique for every site on your server
  44.     'friendly_urls' => false, // mod_rewrite is required for this, it makes links looks more elegant to eye, and also are SEO friendly (example: https://my-aac.org/guilds/Testing instead of https://my-aac.org/?subtopic=guilds&name=Testing). Remember to rename .htaccess.dist to .htaccess
  45.     'gzip_output' => false, // gzip page content before sending it to the browser, uses less bandwidth but more cpu cycles
  46.  
  47.     // gesior backward support (templates & pages)
  48.     // allows using gesior templates and pages with myaac
  49.     // might bring some performance when disabled
  50.     'backward_support' => true,
  51.  
  52.     // head options (html)
  53.     'meta_description' => 'Tibia is a free massive multiplayer online role playing game (MMORPG).', // description of the site
  54.     'meta_keywords' => 'free online game, free multiplayer game, ots, open tibia server', // keywords list separated by commas
  55.     'title_separator' => ' - ',
  56.  
  57.     // footer
  58.     'footer' => ''/*'<br/>Your Server &copy; 2016. All rights reserved.'*/,
  59.  
  60.     'language' => 'en', // default language (currently only 'en' available)
  61.     'language_allow_change' => false,
  62.  
  63.     'visitors_counter' => true,
  64.     'visitors_counter_ttl' => 10, // how long visitor will be marked as online (in minutes)
  65.     'views_counter' => true,
  66.  
  67.     // cache system. by default file cache is used
  68.     'cache_engine' => 'auto', // apc, apcu, eaccelerator, xcache, file, auto, or blank to disable.
  69.     'cache_prefix' => 'myaac_', // have to be unique if running more MyAAC instances on the same server (except file system cache)
  70.  
  71.     // database details (leave blank for auto detect from config.lua)
  72.     'database_host' => '',
  73.     'database_port' => '', // leave blank to default 3306
  74.     'database_user' => '',
  75.     'database_password' => '',
  76.     'database_name' => '',
  77.     'database_log' => false, // should database queries be logged and displayed in the page source? They will be included at the end of the .html source of the page
  78.     'database_socket' => '', // set if you want to connect to database through socket (example: /var/run/mysqld/mysqld.sock)
  79.     'database_persistent' => false, // use database permanent connection (like server), may speed up your site
  80.  
  81.     // multiworld system (only TFS 0.3)
  82.     'multiworld' => false, // use multiworld system?
  83.     'worlds' => array( // list of worlds
  84.         //'1' => 'Your World Name',
  85.         //'2' => 'Your Second World Name'
  86.     ),
  87.  
  88.     // images
  89.     'outfit_images_url' => 'http://outfit-images.ots.me/outfit.php', // set to animoutfit.php for animated outfit
  90.     'item_images_url' => 'http://item-images.ots.me/1092/', // set to images/items if you host your own items in images folder
  91.  
  92.     // account
  93.     'account_management' => true, // disable if you're using other method to manage users (fe. tfs account manager)
  94.     'account_create_auto_login' => false, // auto login after creating account?
  95.     'account_create_character_create' => true, // allow directly to create character on create account page?
  96.     'account_mail_verify' => false, // force users to confirm their email addresses when registering account
  97.     'account_mail_unique' => true, // email addresses cannot be duplicated? (one account = one email)
  98.     'account_premium_days' => 0, // default premium days on new account
  99.     'account_premium_points' => 0, // default premium points on new account
  100.     'account_welcome_mail' => true, // send welcome email when user registers
  101.     'account_mail_change' => 2, // how many days user need to change email to account - block hackers
  102.     'account_country' => true, // user will be able to set country of origin when registering account, this information will be viewable in others places aswell
  103.     'account_country_recognize' => true, // should country of user be automatically recognized by his IP? This makes an external API call to http://ipinfo.io
  104.     'account_change_character_name' => false, // can user change their character name for premium points?
  105.     'account_change_character_name_points' => 30, // cost of name change
  106.     'account_change_character_sex' => false, // can user change their character sex for premium points?
  107.     'account_change_character_sex_points' => 30, // cost of sex change
  108.     'characters_per_account' => 10, // max. number of characters per account
  109.  
  110.     // mail
  111.     'mail_enabled' => false, // is aac maker configured to send e-mails?
  112.     'mail_address' => 'no-reply@your-server.org', // server e-mail address (from:)
  113.     'mail_admin' => 'your-address@your-server.org', // admin email address, where mails from contact form will be sent
  114.     'mail_signature' => array( // signature that will be included at the end of every message sent using _mail function
  115.         'plain' => ""/*"--\nMy Server,\nhttp://www.myserver.com"*/,
  116.         'html' => ''/*'<br/>My Server,\n<a href="http://www.myserver.com">myserver.com</a>'*/
  117.     ),
  118.     'smtp_enabled' => false, // send by smtp or mail function (set false if use mail function, set to true if you use GMail or Microsoft Outlook)
  119.     'smtp_host' => '', // mail host. smtp.gmail.com for GMail / smtp-mail.outlook.com for Microsoft Outlook
  120.     'smtp_port' => 25, // 25 (default) / 465 (ssl, GMail) / 587 (tls, Microsoft Outlook)
  121.     'smtp_auth' => true, // need authorization?
  122.     'smtp_user' => 'admin@example.org', // here your email username
  123.     'smtp_pass' => '',
  124.     'smtp_secure' => '', // What kind of encryption to use on the SMTP connection. Options: '', 'ssl' (GMail) or 'tls' (Microsoft Outlook)
  125.     'smtp_debug' => false, // set true to debug (you will see more info in error.log)
  126.  
  127.     // reCAPTCHA (prevent spam bots)
  128.     'recaptcha_enabled' => false, // enable recaptcha verification code
  129.     'recaptcha_site_key' => '', // get your own site and secret keys at https://www.google.com/recaptcha
  130.     'recaptcha_secret_key' => '',
  131.     'recaptcha_theme' => 'light', // light, dark
  132.  
  133.     //
  134.     '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)
  135.     'generate_new_reckey_price' => 20,          // price for new recovery key
  136.     'send_mail_when_change_password' => true,   // send e-mail with new password when change password to account
  137.     'send_mail_when_generate_reckey' => true,   // send e-mail with rec key (key is displayed on page anyway when generate)
  138.  
  139.     // genders (aka sex)
  140.     'genders' => array(
  141.         0 => 'Female',
  142.         1 => 'Male'
  143.     ),
  144.  
  145.     // new character config
  146.     'character_samples' => array( // vocations, format: ID_of_vocation => 'Name of Character to copy'
  147.         //0 => 'Rook Sample',
  148.         1 => 'Sorcerer Sample',
  149.         2 => 'Druid Sample',
  150.         3 => 'Paladin Sample',
  151.         4 => 'Knight Sample'
  152.     ),
  153.  
  154.     // town list used when creating character
  155.     // won't be displayed if there is only one item (rookgaard for example)
  156.     'character_towns' => array(1),
  157.  
  158.     // characters lenght
  159.     // This is the minimum and the maximum length that a player can create a character. It is highly recommend the maximum lenght be 21.
  160.     'character_name_min_length' => 4,
  161.     'character_name_max_length' => 21,
  162.  
  163.     // list of towns
  164.     // if you use TFS 1.3 with support for 'towns' table in database, then you can ignore this - it will be configured automatically (generated from your .OTBM map)
  165.     'towns' => array(
  166.         0 => 'No town',
  167.         1 => 'Sample town'
  168.     ),
  169.  
  170.     // guilds
  171.     'guild_management' => true, // enable guild management system on the site?
  172.     'guild_need_level' => 1, // min. level to form a guild
  173.     'guild_need_premium' => true, // require premium account to form a guild?
  174.     'guild_image_size_kb' => 80, // maximum size of the guild logo image in KB (kilobytes)
  175.     'guild_description_chars_limit' => 1000, // limit of guild description
  176.     'guild_description_lines_limit' => 6, // limit of lines, if description has more lines it will be showed as long text, without 'enters'
  177.     'guild_motd_chars_limit' => 150, // limit of MOTD (message of the day) that is shown later in the game on the guild channel
  178.  
  179.     // online page
  180.     'online_record' => true, // display players record?
  181.     'online_vocations' => false, // display vocation statistics?
  182.     'online_vocations_images' => false, // display vocation images?
  183.     'online_skulls' => false, // display skull images
  184.     'online_outfit' => true,
  185.     'online_afk' => false,
  186.  
  187.     // support list page
  188.     'team_style' => 2, // 1/2 (1 - normal table, 2 - in boxes, grouped by group id)
  189.     'team_display_status' => true,
  190.     'team_display_lastlogin' => true,
  191.     'team_display_world' => false,
  192.     'team_display_outfit' => true,
  193.  
  194.     // bans page
  195.     'bans_limit' => 50,
  196.     'bans_display_all' => true, // should all bans be displayed? (sorted page by page)
  197.  
  198.     // highscores page
  199.     'highscores_vocation_box' => true, // show 'Choose a vocation' box on the highscores (allowing peoples to sort highscores by vocation)?
  200.     'highscores_vocation' => true, // show player vocation under his nickname?
  201.     'highscores_frags' => false, // show 'Frags' tab (best fraggers on the server)? Only 0.3
  202.     'highscores_balance' => false, // show 'Balance' tab (richest players on the server)
  203.     'highscores_outfit' => true, // show player outfit?
  204.     'highscores_country_box' => false, // doesnt work yet! (not implemented)
  205.     'highscores_groups_hidden' => 3, // this group id and higher won't be shown on the highscores
  206.     'highscores_ids_hidden' => array(0), // this ids of players will be hidden on the highscores (should be ids of samples)
  207.     'highscores_length' => 100, // how many records per page on highscores
  208.  
  209.     // characters page
  210.     'characters' => array( // what things to display on character view page (true/false in each option)
  211.         'level' => true,
  212.         'experience' => false,
  213.         'magic_level' => false,
  214.         'balance' => false,
  215.         'marriage_info' => true, // only 0.3
  216.         'outfit' => true,
  217.         'creation_date' => true,
  218.         'quests' => true,
  219.         'skills' => true,
  220.         'equipment' => true,
  221.         'frags' => false,
  222.         'deleted' => false, // should deleted characters from same account be still listed on the list of characters? When enabled it will show that character is "[DELETED]"
  223.     ),
  224.     'quests' => array(), // quests list (displayed in character view), name => storage
  225.     'signature_enabled' => true,
  226.     'signature_type' => 'tibian', // signature engine to use: tibian, mango, gesior
  227.     'signature_cache_time' => 5, // how long to store cached file (in minutes), default 5 minutes
  228.     'signature_browser_cache' => 60, // how long to cache by browser (in minutes), default 1 hour
  229.  
  230.     // news page
  231.     'news_limit' => 5, // limit of news on the latest news page
  232.     'news_ticker_limit' => 5, // limit of news in tickers (mini news) (0 to disable)
  233.     'news_date_format' => 'j.n.Y', // check php manual date() function for more info about this
  234.     'news_author' => true, // show author of the news
  235.  
  236.     // gifts/shop system
  237.     'gifts_system' => false,
  238.  
  239.     // support/system
  240.     'bug_report' => true, // this configurable has no effect, its always enabled
  241.  
  242.     // forum
  243.     '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
  244.     'forum_level_required' => 0, // level required to post, 0 to disable
  245.     'forum_post_interval' => 30, // in seconds
  246.     'forum_posts_per_page' => 20,
  247.     'forum_threads_per_page' => 20,
  248.     // uncomment to force use table for forum
  249.     //'forum_table_prefix' => 'z_', // what forum mysql table to use, z_ (for gesior old forum) or myaac_ (for myaac)
  250.  
  251.     // last kills
  252.     'last_kills_limit' => 50, // max. number of deaths shown on the last kills page
  253.  
  254.     // status, took automatically from config file if empty
  255.     'status_ip' => '',
  256.     'status_port' => '',
  257.     'status_timeout' => 2, // how long to wait for the initial response from the server (default: 2 seconds)
  258.  
  259.     // how often to connect to server and update status (default: every minute)
  260.     // if your status timeout in config.lua is bigger, that it will be used instead
  261.     // when server is offline, it will be checked every time web refreshes, ignoring this variable
  262.     'status_interval' => 60,
  263.  
  264.     // admin panel
  265.     'admin_panel_modules' => 'lastlogin,points,coins',
  266.  
  267.     // other
  268.     'anonymous_usage_statistics' => true,
  269.     'email_lai_sec_interval' => 60, // time in seconds between e-mails to one account from lost account interface, block spam
  270.     'google_analytics_id' => '', // e.g.: UA-XXXXXXX-X
  271.     'experiencetable_columns' => 3, // how many columns to display in experience table page. * experiencetable_rows, 5 = 500 (will show up to 500 level)
  272.     'experiencetable_rows' => 200, // till how many levels in one column
  273.     'date_timezone' => 'Europe/Berlin', // more info at http://php.net/manual/en/timezones.php
  274.     'footer_show_load_time' => true, // display load time of the page in the footer
  275.  
  276.     'npc' => array()
  277. );
Add Comment
Please, Sign In to add comment