Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/AphrontRequest.php
| Show First 20 Lines • Show All 477 Lines • ▼ Show 20 Lines | /* -( Accessing Request Data )--------------------------------------------- */ | ||||
| final public function getRemoteAddr() { | final public function getRemoteAddr() { | ||||
| return $_SERVER['REMOTE_ADDR']; | return $_SERVER['REMOTE_ADDR']; | ||||
| } | } | ||||
| public function isHTTPS() { | public function isHTTPS() { | ||||
| if (empty($_SERVER['HTTPS'])) { | if (empty($_SERVER['HTTPS'])) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| if (!strcasecmp($_SERVER["HTTPS"], "off")) { | if (!strcasecmp($_SERVER['HTTPS'], 'off')) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function isContinueRequest() { | public function isContinueRequest() { | ||||
| return $this->isFormPost() && $this->getStr('__continue__'); | return $this->isFormPost() && $this->getStr('__continue__'); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines | |||||