芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/cloud.pulsehost.co.uk/vendor/sabre/http/lib/Auth/Bearer.php
request->getHeader('Authorization'); if (!$auth) { return null; } if ('bearer ' !== strtolower(substr($auth, 0, 7))) { return null; } return substr($auth, 7); } /** * This method sends the needed HTTP header and status code (401) to force * authentication. */ public function requireLogin() { $this->response->addHeader('WWW-Authenticate', 'Bearer realm="'.$this->realm.'"'); $this->response->setStatus(401); } }