PDA

View Full Version : ACP Infomation


Hostboard
08-27-2020, 03:25 PM
On the index page of the ACP you have the top block that displays various bits of information. I would like to have a few added fields as well as a few areas more verbose.

To start where it says "Web Server" I would like to have it also report the version. The code for this section is


else if (strtoupper($_SERVER['SERVER_SOFTWARE']) == 'APACHE')
{
$webserver = 'Apache';
if (SAPI_NAME == 'cgi' OR SAPI_NAME == 'cgi-fcgi')
{
$addsapi = true;
}
}


Now while I do not know how, from what I hvae read I should be able to just add


apache_get_version();


However this is reliant upon the server tokens as set in the conf file. So is there a way toi get around this? I do not want to open the token globally as security would dictate masking the system as best as possible.