Beispiel #1
0
 /**
  * __construct 
  * 
  * Make sure an account was supplied
  * 
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     if (!isset($_GET['account'])) {
         throw new Framework_Exception(_('Error: no account supplied'));
     }
     if (!preg_match('/[a-zA-Z0-9_.-]+/i', $_GET['account'])) {
         throw new Framework_Exception(_('Error: invalid account supplied'));
     }
     $this->account = $_GET['account'];
 }
Beispiel #2
0
 /**
  * __construct 
  * 
  * Make sure a domain was supplied
  * 
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->noDomainSupplied();
 }