Exemplo n.º 1
0
 /**
  * The License singleton
  *
  * @var License
  */
 function __construct()
 {
     $whmcs = Application::getinstance();
     $this->licensekey = $whmcs->get_license_key();
     $this->localkey = $whmcs->get_config('License');
     $this->salt = sha1('WHMCS' . $whmcs->get_config('Version') . 'TFB' . $whmcs->get_hash());
     $this->date = date('Ymd');
     $this->decodeLocalOnce();
     if (isset($_GET['forceremote'])) {
         $this->forceRemoteCheck();
         Terminus::getinstance()->doExit();
     }
 }