public function isCrsf($token) { if ($this->session->exists('CRSF_TOKEN') && $this->session->get('CRSF_TOKEN') === Input::item($token)) { $this->session->remove("CRSF_TOKEN"); return true; } else { $this->session->remove("CRSF_TOKEN"); return false; } }
/** * @param $item * @return value $_POST[$item] or $_GET[$item] */ public function item($item) { return $this->scape(Input::item($item)); }