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.

29 lines
621 B

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