Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * This file is the central configuration file for the PRT event and roster management.
- * It is used to set up the necessary teams, ranks, squads, links to art etc.
- * This should be the only file necessary to edit by PRT admins/management.
- * @author Senshi (complete overhaul)
- * @author Aleon (complete overhaul)
- */
- error_reporting( E_ALL & ~ E_NOTICE & ~ E_DEPRECATED & ~E_STRICT );
- // Setup vBulletin backend
- // Not necessary if files are embedded in vB PHP pages. Avoids double init
- // confusion/destruction
- global $vbulletin;
- if (! isset( $vbulletin ) || is_null($vbulletin)) {
- chdir( __DIR__ . "/../../" ); // Specify the path to the main VB forum here
- require_once ('./global.php'); // This initializes vBulletin functions
- chdir(__DIR__ . "/../../" );
- }
- error_reporting( E_ALL & ~ E_NOTICE & ~ E_DEPRECATED & ~E_STRICT );
- $host = "localhost";
- $username = "prtadmin";
- $password = "ZiRjw0oqQW";
- $db_vb = "realitym_tourn";
- $db_tm = "prt_teammanager";
- $CAMPAIGNID = 12;
- $PRT_DEFAULT_UGID = 2; //Usergroup of "registered users"
- $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.
- $PRT_ADMIN_UGIDS = [
- 43,
- 105,
- 106,
- 104
- ];
- // Administrators - 43; Lead Administrators - 105; Senior Administrators - 106;
- // Event Organizers - 114; Contributors - 66, Management - 104
- // TODO: Remember to remove event organizers and contributors for actual
- // publish!
- // These user ids will be granted admin rights.
- $PRT_TM_DEV_UIDS = [
- 13371554,
- 13371741,
- 3688
- ];
- // A list of regular expressions that indicate nametags to be omitted on the
- // teamviewer page
- $PRT_NAME_TAGS = [
- '/\[PR\].*\|/', // ex. "[PR]MRF|..."
- '/\[T-.*\]/' // ex. "[T-CON]..."
- ];
- require_once (__DIR__ . '/includes/nestablepdo.php');
- try {
- $conn = new NestablePDO( "mysql:host=localhost;dbname=$db_tm", $username, $password );
- $conn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
- } catch ( PDOException $e ) {
- echo "Failed to connect to MySQL! ";
- debugLog( "Failed to connect to MySQL: " . $e->getMessage(), 'config-connection' );
- }
- require_once (__DIR__ . '/includes/functions.php');
- require_once (__DIR__ . '/includes/enums.php');
- require_once (__DIR__ . '/includes/log.php');
- require_once (__DIR__ . '/includes/event.php');
- require_once (__DIR__ . '/includes/team.php');
- require_once (__DIR__ . '/includes/rank.php');
- require_once (__DIR__ . '/includes/signup.php');
- require_once (__DIR__ . '/includes/squad.php');
- require_once (__DIR__ . '/includes/player.php');
- require_once (__DIR__ . '/includes/action.php');
- require_once (__DIR__ . '/includes/messagelist.php');
- require_once (__DIR__ . '/includes/countgroup.php');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement