Advertisement
chubbyninja

Untitled

Sep 21st, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. <?php
  2.  
  3. // Disallow direct access to this file for security reasons.
  4. if (!defined('IN_LINKTS')) {
  5. die('Direct initialization of this file is not allowed.');
  6. }
  7.  
  8. // Database configuration.
  9. $hostname = 'localhost';
  10. $username = 'gclan-amd';
  11. $password = 'CDBcdWDUKh7UKU8A';
  12. $database = 'gclan-amd';
  13.  
  14. // The MyBB users table in the DB. This should be just fine, but if you are also using this plugin from outside MyBB you'll have to enter it fully like in the second (disabled) line.
  15. //$table = TABLE_PREFIX.'users';
  16. $table = 'mybb_users';
  17.  
  18. // Teamspeak connection.
  19. $ts3_server = '51.254.72.112';
  20. $ts3_server_port = '6118'; // 9987 is default
  21. $ts3_query_port = '10016'; // 10011 is default
  22. $ts3_username = 'Apokalypse';
  23. $ts3_password = 'xU1uDN3V';
  24. $ts3_nickname = 'AMD Bot';
  25.  
  26. // Teamspeak groups.
  27. $ts3_sgid_member = '4267'; // the group id of the group which should be added to a user on teamspeak after they register on the forum
  28. $ts3_sgid_don_member = '4272'; // the group id of the group which should be set when a user is a Donating member
  29. $ts3_sgid_vip_member = '4271'; // the group id of the group which should be set when a user is a vip member
  30. $ts3_sgid_masters = '3259';
  31. $ts3_sgid_smajor = '3258';
  32. $ts3_sgid_1stliet = '3257';
  33. $ts3_sgid_major = '569';
  34. $ts3_sgid_commander = '559';
  35. $ts3_sgid_colonel = '560';
  36.  
  37. // Define the servergroups the plugin shouldn't even try to remove.
  38. $ts3_sgid_dont_remove = ['559', '4269', '4271', '4274'];
  39.  
  40. // Define which groups should have access to the TS Link ModCP module.
  41. $tslink_modcp_groups = ('559');
  42.  
  43. // DONT CHANGE ANYTHING UNDERNEATH!!!!
  44. // Piece of pie to determine which IP to work with.
  45. if (!isset($givenip)) {
  46. $givenip = '';
  47. }
  48.  
  49. if ($givenip == '') {
  50. $givenip = $_SERVER['REMOTE_ADDR'];
  51. print $givenip . "<br>";
  52. $pton_ip = inet_pton($givenip);
  53. print $pton_ip . "<br>";
  54. $mybb_ip = bin2hex($pton_ip);
  55. print $mybb_ip;
  56. } else {
  57. $mybb_ip = bin2hex(inet_pton($givenip));
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement