' . lang('Systeminfo_General') . '
' . lang('Systeminfo_General_Full_Date') . '
' . $formatted_date . '
' . lang('Systeminfo_General_Date') . '
' . $formatted_date2 . '
' . lang('Systeminfo_General_Date2') . '
' . $formatted_date3 . '
' . lang('Systeminfo_General_TimeZone') . '
' . $timeZone . '
' . lang('Systeminfo_This_Client') . '
' . lang('Systeminfo_Client_User_Agent') . '
' . $_SERVER['HTTP_USER_AGENT'] . '
' . lang('Systeminfo_Client_Resolution') . '
' . lang('Systeminfo_System') . '
' . lang('Systeminfo_System_Uptime') . '
' . $stat['uptime'] . '
' . lang('Systeminfo_System_Kernel') . '
' . $system_namekernel . '
' . lang('Systeminfo_System_System') . '
' . $system_namesystem . '
' . lang('Systeminfo_System_OSVersion') . '
' . $stat['os_version'] . '
' . lang('Systeminfo_System_Uname') . '
' . $system_full . '
' . lang('Systeminfo_System_Architecture') . '
' . $system_architecture . '
' . lang('Systeminfo_System_AVG') . '
'. $load_average[0] .' '. $load_average[1] .' '. $load_average[2] .'
' . lang('Systeminfo_Motherboard') . '
' . lang('Systeminfo_Motherboard_Name') . '
' . $motherboard_name . '
' . lang('Systeminfo_Motherboard_Manufactured') . '
' . $motherboard_manufactured . '
' . lang('Systeminfo_Motherboard_Revision') . '
' . $motherboard_revision. '
' . lang('Systeminfo_Motherboard_BIOS') . '
' . $motherboard_bios . '
' . lang('Systeminfo_Motherboard_BIOS_Date') . '
' . $motherboard_biosdate . '
' . lang('Systeminfo_Motherboard_BIOS_Vendor') . '
' . $motherboard_biosvendor . '
' . lang('Systeminfo_CPU') . '
' . lang('Systeminfo_CPU_Vendor') . '
' . $cpu_vendor . '
' . lang('Systeminfo_CPU_Name') . '
' . $stat['cpu_model'] . '
' . lang('Systeminfo_CPU_Cores') . '
' . $stat['cpu'] . '
' . lang('Systeminfo_CPU_Speed') . '
' . $stat['cpu_frequ'] . ' MHz
' . lang('Systeminfo_CPU_Temp') . '
'. $cpu_temp .' °C
CPU Temp ' . $a . ':
' . $cpu_tempxx . ' °C
' . lang('Systeminfo_Memory') . '
' . lang('Systeminfo_Memory_Usage_Percent') . '
' . $memory_usage_percent . ' %
' . lang('Systeminfo_Memory_Usage') . '
' . $mem_used . ' MB / ' . $total_memorymb . ' MB
' . lang('Systeminfo_Memory_Total_Memory') . '
' . $total_memorymb . ' MB (' . $total_memorykb . ' KB)
' . lang('Systeminfo_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 ' "' . lang('Systeminfo_Storage_Mount') . ' ' . $storage_lsblk_line[$x][3] . '"
';
} else {
echo '"' . str_replace('_', ' ', $storage_lsblk_line[$x][3]) . '"
';
}
echo '' . lang('Systeminfo_Storage_Device') . ' /dev/' . $storage_lsblk_line[$x][0] . '
';
echo '' . lang('Systeminfo_Storage_Size') . ' ' . $storage_lsblk_line[$x][1] . '
';
echo '' . lang('Systeminfo_Storage_Type') . ' ' . $storage_lsblk_line[$x][2] . '
';
echo '' . lang('Systeminfo_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, ',', '.'); $temp_total = trim($temp_total);}
if ($hdd_devices_used[$x] == 0) {$temp_used = 0;} else { $temp_used = number_format(round(($hdd_devices_used[$x] / 1024 / 1024), 2), 2, ',', '.'); $temp_used = trim($temp_total);}
if ($hdd_devices_free[$x] == 0) {$temp_free = 0;} else { $temp_free = number_format(round(($hdd_devices_free[$x] / 1024 / 1024), 2), 2, ',', '.'); $temp_free = trim($temp_total);}
echo '
' . $lang['SysInfo_storage_note']; echo '
';
echo '
';
}
}
#echo '"' . lang('Systeminfo_Storage_Usage_Mount') . ' ' . $hdd_devices_mount[$x] . '"
';
echo '' . lang('Systeminfo_Storage_Usage_Total') . ' ' . $temp_total . ' GB
';
echo '' . lang('Systeminfo_Storage_Usage_Used') . ' ' . $temp_used . ' GB (' . number_format($hdd_devices_percent[$x], 1, ',', '.') . '%)
';
echo '' . lang('Systeminfo_Storage_Usage_Free') . ' ' . $temp_free . ' GB
';
echo '' . $lang['SysInfo_storage_note']; echo '
' . lang('Systeminfo_Network') . '
' . lang('Systeminfo_Network_IP') . '
' . shell_exec("curl https://ifconfig.co") . '
' . lang('Systeminfo_Network_IP_Connection') . '
' . $_SERVER['REMOTE_ADDR'] . '
' . lang('Systeminfo_Network_IP_Server') . '
' . $_SERVER['SERVER_ADDR'] . '
' . lang('Systeminfo_Network_Server_Name') . '
' . $network_NAME . '
' . lang('Systeminfo_Network_Connection_Port') . '
' . $_SERVER['REMOTE_PORT'] . '
' . lang('Systeminfo_Network_Secure_Connection') . '
' . $network_HTTPS . '
' . lang('Systeminfo_Network_Server_Version') . '
' . $_SERVER['SERVER_SOFTWARE'] . '
' . lang('Systeminfo_Network_Request_URI') . '
' . $_SERVER['REQUEST_URI'] . '
' . lang('Systeminfo_Network_Server_Query') . '
' . $network_QueryString . '
' . lang('Systeminfo_Network_HTTP_Host') . '
' . $_SERVER['HTTP_HOST'] . '
' . lang('Systeminfo_Network_HTTP_Referer') . '
' . $network_referer . '
' . lang('Systeminfo_Network_MIME') . '
' . $_SERVER['HTTP_ACCEPT'] . '
' . lang('Systeminfo_Network_Accept_Language') . '
' . $_SERVER['HTTP_ACCEPT_LANGUAGE'] . '
' . lang('Systeminfo_Network_Accept_Encoding') . '
' . $_SERVER['HTTP_ACCEPT_ENCODING'] . '
' . lang('Systeminfo_Network_Request_Method') . '
' . $_SERVER['REQUEST_METHOD'] . '
' . lang('Systeminfo_Network_Request_Time') . '
' . $_SERVER['REQUEST_TIME'] . '
' . lang('Systeminfo_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
' . lang('Systeminfo_Services') . '
';
echo '
';
exec('systemctl --type=service --state=running', $running_services);
echo '';
echo '
';
echo '
';
echo ' | ' . lang('Systeminfo_Services_Name') . ' | ' . lang('Systeminfo_Services_Description') . ' |
|---|---|
| ' . substr($servives_name, 0, -8) . ' | ' . $servives_description . ' |
' . lang('Systeminfo_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 . ' |
'; ?>