Unsupported PHP app for analysing and displaying stats for Team Fortress 2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config-sample.php 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?PHP
  2. // --------------------------------------------- Database Settings -----------
  3. // MySQL host
  4. define('DB_HOST', '127.0.0.1');
  5. // MySQL username
  6. define('DB_USER', '');
  7. // MySQL password
  8. define('DB_PASS', '');
  9. // MySQL database name
  10. define('DB_DBNAME', '');
  11. // -------------------------------------------- Directory Settings -----------
  12. // Directory containing HLDS log files
  13. define('LOG_DIR', '/home/sourceds/orangebox/tf/logs/');
  14. // The directory that the main statistics codebase is located in
  15. define('STATS_DIR', '/home/sourceds/stats/');
  16. // ---------------------------------------------- Ranking Settings -----------
  17. // Minimum number of kills needed to be ranked
  18. define('MIN_KILLS', 50);
  19. // ------------------------------------------------ Server Details -----------
  20. // Command to use to send player messages
  21. define('RCON_COMMAND', 'admin_msay "%s" "%s"');
  22. // --------------------------------------------- Feature Selection -----------
  23. // Death maps
  24. define('ENABLE_DEATHMAPS', true);
  25. // Awards
  26. define('ENABLE_AWARDS', true);
  27. // Group links
  28. define('ENABLE_GROUPS', true);
  29. // Steam community links
  30. define('ENABLE_COMMUNITY_LINKS', true);
  31. // Respond to messages said in global chat (when in daemon mode)
  32. define('ENABLE_SAY_TRIGGERS', true);
  33. // Server list on the overview page
  34. define('ENABLE_SERVER_LIST', true);
  35. // ----------------------------------- Overview Page Configuration -----------
  36. // Number of top players to show on the overview page
  37. define('OVERVIEW_PLAYERS', 15);
  38. // ------------------------------------------ Awards Configuration -----------
  39. // How often to give out awards (in days)
  40. define('AWARD_FREQUENCY', 7);
  41. // Number of previous winners to show on the award page (per award)
  42. define('AWARD_NUMBER', 5);
  43. // --------------------------------------- Death Map Configuration -----------
  44. // The file name for overview images
  45. define('OVERVIEW_IMAGE', '/home/sourceds/www/stats/res/maps/large/%s/Overview.png');
  46. // Arguments for the default death map
  47. define('DM_ARGS', '?map=%s&alpha=50&noteams');
  48. // Cache dir for DM images
  49. define('DM_CACHE', STATS_DIR . 'cache/');
  50. // ---------------------------------------------------------- URLs -----------
  51. // The base URL for the stats websites
  52. define('URL_BASE', '/stats/');
  53. // The URL for map images. Passed image size (tiny, small, large) and map name.
  54. define('URL_MAP', '/stats/res/maps/%s/%s/Main.png');
  55. // The URL for class images. Passed team and class name.
  56. define('URL_CLASS', '/stats/res/classes/small/%s/%s.png');
  57. // The URL for weapon images. Passed weapon name.
  58. define('URL_WEAPON', '/stats/res/weapons/%s.png');
  59. // The URL for award images. Passed award name.
  60. define('URL_AWARD', '/stats/res/awards/%s.png');
  61. ?>