count(); if ($iCountByIp != 0) { return 'no'; } } $this->code = $code; $this->type = $type; $this->date = date("Y-m-d"); $this->ip = $ip; $this->save(); return $this->code; } }