public function execute() { if (false === ($this->row = BAIM_MC::getByUID(GWF_Session::getUserID()))) { return $this->module->error('err_not_purchased'); } if ($this->row->isDemo()) { return $this->module->error('err_not_purchased'); } // var_dump($this->row); $back = ''; if (false !== Common::getPost('set')) { $back = $this->onSetMC($this->row); } return $back . $this->templateMC($this->row); }
private static function getIniContent(BAIM_MC $row) { return Module_BAIM::getInstance()->lang('key.dat', array($row->getVar('bmc_uid') + 1000, $row->getVar('bmc_token'))); }
private function hash(BAIM_MC $row) { $s = self::SHARED_SECRET; return strtolower(hash('SHA512', $s . $row->getToken() . $s . $row->getMC() . $s)); }