Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- define( 'IPS_IS_SHELL', TRUE );
- define( 'IPB_THIS_SCRIPT', 'public' );
- if ( file_exists( 'beta/initdata.php' ) )
- {
- require_once( 'beta/initdata.php' );
- }
- else
- {
- require_once( '/home/thegsn/public_html/beta/initdata.php' );
- }
- //------------------------------------------------
- require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );
- require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );
- $reg = ipsRegistry::instance();
- $reg->init();
- $forumConnect = new forumConnect($reg);
- class forumConnect
- {
- /**
- * ToEmail - invites@gamingsynergies.net
- */
- public $toEmail = "invites@gamingsynergies.net";
- /**
- * Default Message to send.
- * Add <#EMAIL#> for the users email address.
- */
- public $message = "<#EMAIL#> has just requested a beta invite.";
- /**
- * Error Message
- */
- public $errorMessages = array( "bad_email" => "That is in an invalid email address.",
- "no_email" => "You must specify an email address.",
- "err" => "There was an unknown error requesting your beta invite. Please try again later.",
- "bad_invite" => "You have entered an invalid invite redemption code.",
- "invite_sent" => "An invite registered to this email address has already been requested. <br /><br />Please send an email to invites@gamingsynergies.net if you have not received it.",
- "member_exist" => "A member has already registered with that email address.<br /><br />We do not allow multiple accounts to be created with the same email address.",
- "no_invite" => "We were unable to find an invite request for that email address.<br /><br />Would you like to re-submit your request?",
- "used_invite" => "The invite associated with this email address has already been used.",
- "invalid_invite"=> "You have specified an invalid invite code. Please try again.",
- "too_many" => "The friend who sent you this invite link has used all of their invites.<br /><br /> You are more than welcome to request your own personal invite, however.",
- "ips" => "A person on this IP Address has already used this link to claim an account. <br /><br />If you still need another invite please feel free to request an invite by using the form."
- );
- public $templates = array();
- public $invites = 20;
- public $username;
- function __construct( ipsRegistry $registry )
- {
- // INIT
- $this->registry = $registry;
- $this->DB = $this->registry->DB();
- $this->settings =& $this->registry->fetchSettings();
- $this->request =& $this->registry->fetchRequest();
- $this->cache = $this->registry->cache();
- $this->caches =& $this->registry->cache()->fetchCaches();
- $this->member = $this->registry->member();
- $this->memberData =& $this->registry->member()->fetchMemberData();
- $this->request =& $this->registry->fetchRequest();
- $this->lang = $this->registry->getClass('class_localization');
- $this->doExecute();
- }
Add Comment
Please, Sign In to add comment