diff --git a/app/controllers/Welcome.php b/app/controllers/Welcome.php index 731db0a..e104cee 100644 --- a/app/controllers/Welcome.php +++ b/app/controllers/Welcome.php @@ -1,4 +1,5 @@ [ 'ip' => getIPAddress(), - 'user_agent' => $this->input->user_agent(true) + 'user_agent' => $this->input->user_agent(true), + 'php_version' => PHP_VERSION ] ]; $this->output @@ -39,7 +41,9 @@ public function index(): void public function ip(): void { - $this->output->set_status_header()->set_content_type('application/json', 'utf-8')->set_output(getIpInformation())->_display(); + $this->output->set_status_header()->set_content_type('application/json', 'utf-8')->set_output( + getIpInformation() + )->_display(); exit; }