Exemplo n.º 1
0
 function Check()
 {
     $dbr_member = CControllerMember::GetByGuid($this->member_id);
     if (!($ar_member = $dbr_member->Fetch())) {
         $e = new CApplicationException("Bad member_id: " . $this->member_id . "");
         $GLOBALS["APPLICATION"]->ThrowException($e);
         return false;
     }
     $this->secret_id = $ar_member["SECRET_ID"];
     return parent::Check();
 }
Exemplo n.º 2
0
 function Check()
 {
     $member_id = COption::GetOptionString("main", "controller_member_id", "");
     if (strlen($member_id) <= 0 || $member_id != $this->member_id) {
         $e = new CApplicationException("Bad member_id: ((get)" . $member_id . "!=(own)" . $this->member_id . ")");
         $GLOBALS["APPLICATION"]->ThrowException($e);
         return false;
     }
     $member_secret_id = COption::GetOptionString("main", "controller_member_secret_id", "");
     $this->secret_id = $member_secret_id;
     return parent::Check();
 }