You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
621 B

<?php
const SERVER_LTS = 0;
const SERVER_CPU_1 = 1;
const SERVER_CPU_5 = 2;
const SERVER_CPU_15 = 3;
const SERVER_MEM_T = 4;
const SERVER_MEM_C = 5;
const SERVER_MEM = 6;
const SERVER_DISK_T = 7;
const SERVER_DISK_C = 8;
const SERVER_DISK = 9;
const SERVER_SYS_TEMP = 10;
const SERVER_VERSION = 11;
const SERVER_OS = 12;
const SERVER_HW = 13;
const SERVER_CPU_CORES = 14;
function getServerProp( $prop_en_val ){
global $DATABASE;
$QS = "SELECT * FROM `mem_server_stats` WHERE `prop_enumerating`={$prop_en_val}";
$R = $DATABASE->Query( $QS );
if( count( $R ) ){
return $R[0]['prop_value'];
};
return '';
};
?>