This Client
User Agent
' . $_SERVER['HTTP_USER_AGENT'] . '
Browser Resolution:
General
Full Date
' . $formatted_date . '
Date
' . $formatted_date2 . '
Date2
' . $formatted_date3 . '
Timezone
' . $timeZone . '
Uptime
' . $stat['uptime'] . '
Operating System
' . $stat['os_version'] . '
CPU Name:
' . $stat['cpu_model'] . '
CPU Cores:
' . $stat['cpu'] . ' @ ' . $stat['cpu_frequ'] . ' MHz
Memory:
' . $stat['mem_used'] . ' MB / ' . $stat['mem_total'] . ' MB
Memory %:
' . $memory_usage_percent . ' %
Total memory:
' . $total_memory . ' MB
Load AVG:
'. $load_average[0] .' '. $load_average[1] .' '. $load_average[2] .'
Storage
';
$storage_lsblk = shell_exec("lsblk -io NAME,SIZE,TYPE,MOUNTPOINT,MODEL --list | tail -n +2 | awk '{print $1\"#\"$2\"#\"$3\"#\"$4\"#\"$5}'");
$storage_lsblk_line = explode("\n", $storage_lsblk);
$storage_lsblk_line = array_filter($storage_lsblk_line);
for ($x = 0; $x < sizeof($storage_lsblk_line); $x++) {
$temp = array();
$temp = explode("#", $storage_lsblk_line[$x]);
$storage_lsblk_line[$x] = $temp;
}
// echo '
'; // print_r($storage_lsblk_line); // echo ''; for ($x = 0; $x < sizeof($storage_lsblk_line); $x++) { //if (stristr($hdd_devices[$x], '/dev/')) { echo '
';
if (preg_match('~[0-9]+~', $storage_lsblk_line[$x][0])) {
echo '
';
//}
}
echo ' Mount point "' . $storage_lsblk_line[$x][3] . '"
';
} else {
echo '"' . str_replace('_', ' ', $storage_lsblk_line[$x][3]) . '"
';
}
echo 'Device: /dev/' . $storage_lsblk_line[$x][0] . '
';
echo 'Size: ' . $storage_lsblk_line[$x][1] . '
';
echo 'Type: ' . $storage_lsblk_line[$x][2] . '
';
echo 'Storage usage
';
for ($x = 0; $x < sizeof($hdd_devices); $x++) {
if (stristr($hdd_devices[$x], '/dev/')) {
if ($hdd_devices_total[$x] == 0) {$temp_total = 0;} else { $temp_total = number_format(round(($hdd_devices_total[$x] / 1024 / 1024), 2), 2, ',', '.');}
if ($hdd_devices_used[$x] == 0) {$temp_used = 0;} else { $temp_used = number_format(round(($hdd_devices_used[$x] / 1024 / 1024), 2), 2, ',', '.');}
if ($hdd_devices_free[$x] == 0) {$temp_free = 0;} else { $temp_free = number_format(round(($hdd_devices_free[$x] / 1024 / 1024), 2), 2, ',', '.');}
echo '
' . $pia_lang['SysInfo_storage_note']; echo '
';
echo '
';
}
}
echo 'Mount point "' . $hdd_devices_mount[$x] . '"
';
echo 'Total: ' . $temp_total . ' GB
';
echo 'Used: ' . $temp_used . ' GB (' . number_format($hdd_devices_percent[$x], 1, ',', '.') . '%)
';
echo 'Free: ' . $temp_free . ' GB
';
echo '' . $pia_lang['SysInfo_storage_note']; echo '
Network
IP Internet:
' . shell_exec("curl https://ifconfig.co") . '
IP connection:
' . $_SERVER['REMOTE_ADDR'] . '
Server IP:
' . $_SERVER['SERVER_ADDR'] . '
Server name:
' . $_SERVER['SERVER_NAME'] . '
Connection port:
' . $_SERVER['REMOTE_PORT'] . '
Secure connection:
' . $_SERVER['HTTPS'] . '
Server Version:
' . $_SERVER['SERVER_SOFTWARE'] . '
Request URI:
' . $_SERVER['REQUEST_URI'] . '
Server query:
' . $_SERVER['QUERY_STRING'] . '
HTTP_host:
' . $_SERVER['HTTP_HOST'] . '
HTTP_referer:
' . $_SERVER['HTTP_REFERER'] . '
MIME:
' . $_SERVER['HTTP_ACCEPT'] . '
Accept language:
' . $_SERVER['HTTP_ACCEPT_LANGUAGE'] . '
Accept encoding:
' . $_SERVER['HTTP_ACCEPT_ENCODING'] . '
Request_Method:
' . $_SERVER['REQUEST_METHOD'] . '
Request_time:
' . $_SERVER['REQUEST_TIME'] . '
Network Hardware
';
for ($x = 0; $x < sizeof($net_interfaces); $x++) {
$interface_name = str_replace(':', '', $net_interfaces[$x]);
$interface_ip_temp = exec('ip addr show ' . $interface_name . ' | grep inet');
$interface_ip_arr = explode(' ', trim($interface_ip_temp));
if (!isset($interface_ip_arr[1])) {$interface_ip_arr[1] = '--';}
if ($net_interfaces_rx[$x] == 0) {$temp_rx = 0;} else { $temp_rx = number_format(round(($net_interfaces_rx[$x] / 1024 / 1024), 2), 2, ',', '.');}
if ($net_interfaces_tx[$x] == 0) {$temp_tx = 0;} else { $temp_tx = number_format(round(($net_interfaces_tx[$x] / 1024 / 1024), 2), 2, ',', '.');}
echo '
';
echo '
';
}
echo ' ' . $interface_name . '
';
echo '' . $interface_ip_arr[1] . '
';
echo 'RX:
';
echo '' . $temp_rx . ' MB
TX:
';
echo '' . $temp_tx . ' MB
Services (running)
';
echo '
';
exec('systemctl --type=service --state=running', $running_services);
echo '';
echo '
';
echo '
';
echo ' | Service Name | Service Description |
|---|---|
| ' . substr($servives_name, 0, -8) . ' | ' . $servives_description . ' |
USB Devices
';
echo ' ';
$table_color = 'odd';
sort($usb_devices_mount);
for ($x = 0; $x < sizeof($usb_devices_mount); $x++) {
$cut_pos = strpos($usb_devices_mount[$x], ':');
$usb_bus = substr($usb_devices_mount[$x], 0, $cut_pos);
$usb_dev = substr($usb_devices_mount[$x], $cut_pos + 1);
if ($table_color == 'odd') {$table_color = 'even';} else { $table_color = 'odd';}
echo '
';
echo '
| ' . str_replace('Device', 'Dev.', $usb_bus) . ' | ' . $usb_dev . ' |
'; ?>