Advertisement
Guest User

Untitled

a guest
Oct 15th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. <?php
  2. /**
  3. * This file is the central configuration file for the PRT event and roster management.
  4. * It is used to set up the necessary teams, ranks, squads, links to art etc.
  5. * This should be the only file necessary to edit by PRT admins/management.
  6. * @author Senshi (complete overhaul)
  7. * @author Aleon (complete overhaul)
  8. */
  9. error_reporting( E_ALL & ~ E_NOTICE & ~ E_DEPRECATED & ~E_STRICT );
  10.  
  11. // Setup vBulletin backend
  12. // Not necessary if files are embedded in vB PHP pages. Avoids double init
  13. // confusion/destruction
  14. global $vbulletin;
  15. if (! isset( $vbulletin ) || is_null($vbulletin)) {
  16. chdir( __DIR__ . "/../../" ); // Specify the path to the main VB forum here
  17. require_once ('./global.php'); // This initializes vBulletin functions
  18. chdir(__DIR__ . "/../../" );
  19. }
  20. error_reporting( E_ALL & ~ E_NOTICE & ~ E_DEPRECATED & ~E_STRICT );
  21. $host = "localhost";
  22. $username = "prtadmin";
  23. $password = "ZiRjw0oqQW";
  24. $db_vb = "realitym_tourn";
  25. $db_tm = "prt_teammanager";
  26. $CAMPAIGNID = 12;
  27. $PRT_DEFAULT_UGID = 2; //Usergroup of "registered users"
  28. $PRT_LOCKED_UGIDS = [1,3,4,6,7,8,43,104,105,106]; // These may never be touched. Include any automated UGIDs and banned UGID.
  29. $PRT_ADMIN_UGIDS = [
  30. 43,
  31. 105,
  32. 106,
  33. 104
  34. ];
  35. // Administrators - 43; Lead Administrators - 105; Senior Administrators - 106;
  36. // Event Organizers - 114; Contributors - 66, Management - 104
  37. // TODO: Remember to remove event organizers and contributors for actual
  38. // publish!
  39.  
  40. // These user ids will be granted admin rights.
  41. $PRT_TM_DEV_UIDS = [
  42. 13371554,
  43. 13371741,
  44. 3688
  45. ];
  46.  
  47.  
  48. // A list of regular expressions that indicate nametags to be omitted on the
  49. // teamviewer page
  50. $PRT_NAME_TAGS = [
  51. '/\[PR\].*\|/', // ex. "[PR]MRF|..."
  52. '/\[T-.*\]/' // ex. "[T-CON]..."
  53. ];
  54.  
  55. require_once (__DIR__ . '/includes/nestablepdo.php');
  56.  
  57. try {
  58. $conn = new NestablePDO( "mysql:host=localhost;dbname=$db_tm", $username, $password );
  59. $conn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
  60. } catch ( PDOException $e ) {
  61. echo "Failed to connect to MySQL! ";
  62. debugLog( "Failed to connect to MySQL: " . $e->getMessage(), 'config-connection' );
  63. }
  64.  
  65. require_once (__DIR__ . '/includes/functions.php');
  66. require_once (__DIR__ . '/includes/enums.php');
  67. require_once (__DIR__ . '/includes/log.php');
  68.  
  69. require_once (__DIR__ . '/includes/event.php');
  70. require_once (__DIR__ . '/includes/team.php');
  71. require_once (__DIR__ . '/includes/rank.php');
  72. require_once (__DIR__ . '/includes/signup.php');
  73. require_once (__DIR__ . '/includes/squad.php');
  74. require_once (__DIR__ . '/includes/player.php');
  75. require_once (__DIR__ . '/includes/action.php');
  76. require_once (__DIR__ . '/includes/messagelist.php');
  77. require_once (__DIR__ . '/includes/countgroup.php');
  78.  
  79. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement