Guest User

Untitled

a guest
Dec 11th, 2017
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.17 KB | None | 0 0
  1. <?
  2. define( 'IPS_IS_SHELL', TRUE );
  3. define( 'IPB_THIS_SCRIPT', 'public' );
  4.  
  5. if ( file_exists( 'beta/initdata.php' ) )
  6. {
  7.     require_once( 'beta/initdata.php' );
  8. }
  9. else
  10. {
  11.     require_once( '/home/thegsn/public_html/beta/initdata.php' );
  12. }
  13.  
  14. //------------------------------------------------
  15. require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );
  16. require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );
  17.  
  18. $reg = ipsRegistry::instance();
  19. $reg->init();
  20.  
  21. $forumConnect = new forumConnect($reg);
  22.  
  23. class forumConnect
  24. {
  25.     /**
  26.     * ToEmail - invites@gamingsynergies.net
  27.     */
  28.     public $toEmail = "invites@gamingsynergies.net";
  29.     /**
  30.     * Default Message to send.
  31.     * Add <#EMAIL#> for the users email address.
  32.     */
  33.     public $message = "<#EMAIL#> has just requested a beta invite.";
  34.     /**
  35.     * Error Message
  36.     */
  37.     public $errorMessages = array(  "bad_email"     => "That is in an invalid email address.",
  38.                                     "no_email"      => "You must specify an email address.",
  39.                                     "err"           => "There was an unknown error requesting your beta invite. Please try again later.",
  40.                                     "bad_invite"    => "You have entered an invalid invite redemption code.",
  41.                                     "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.",
  42.                                     "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.",
  43.                                     "no_invite"     => "We were unable to find an invite request for that email address.<br /><br />Would you like to re-submit your request?",
  44.                                     "used_invite"   => "The invite associated with this email address has already been used.",
  45.                                     "invalid_invite"=> "You have specified an invalid invite code. Please try again.",
  46.                                     "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.",
  47.                                     "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."
  48.                                    
  49.                                 );
  50.        
  51.     public $templates = array();
  52.    
  53.     public $invites = 20;
  54.    
  55.     public $username;
  56.        
  57.     function __construct( ipsRegistry $registry )
  58.     {
  59.         // INIT
  60.         $this->registry     =  $registry;
  61.         $this->DB           =  $this->registry->DB();
  62.         $this->settings     =& $this->registry->fetchSettings();
  63.         $this->request      =& $this->registry->fetchRequest();
  64.         $this->cache        =  $this->registry->cache();
  65.         $this->caches       =& $this->registry->cache()->fetchCaches();
  66.         $this->member       =  $this->registry->member();
  67.         $this->memberData   =& $this->registry->member()->fetchMemberData();
  68.         $this->request      =& $this->registry->fetchRequest();
  69.         $this->lang         =  $this->registry->getClass('class_localization');
  70.            
  71.         $this->doExecute();
  72.     }
Add Comment
Please, Sign In to add comment