Guest User

Untitled

a guest
Jun 24th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. <?
  2. $cyts = new cyts ();
  3. if($cyts->connect('87.98.245.77','5001'))
  4. {
  5. $ts_online_1 = 1;
  6. }
  7. else
  8. {
  9. $ts_online_1 = 0;
  10. }
  11. $si = $cyts->info_serverInfo();
  12. $gs = $cyts->info_globalInfo ();
  13. $traffictotalu = (double)$gs["total_bytessend"] + (double)$gs["total_bytesreceived"];
  14. $bandbreiteu = (double)$gs["total_bwinlastsec"] + (double)$gs["total_bwoutlastsec"];
  15.  
  16. // Stats ->-> Fl0.
  17.  
  18.  
  19. $uptime_1 = explode(" ", $gs["total_server_uptime"]); // $uptime_1[0] -> Ausgabe in Tagen (13D) , $uptime_1[1] -> in Stunden (20:43:07)
  20. $freeslots_1 = 5000 - $gs["total_users_maximal"];
  21. $total_servers_1 = $gs["total_servers"];
  22. $total_users_online_1 = $gs["total_users_online"];
  23. $total_users_maximal_1 = $gs["total_users_maximal"];
  24. $trafficdown_1 = round($gs["total_bytesreceived"]/1024/1024/1024, 1);
  25. $trafficup_1 = round($gs["total_bytessend"]/1024/1024/1024, 1);
  26. $traffictotal_1 = round($traffictotalu/1024/1024/1024, 1);
  27. $bandbreite_1 = round($bandbreiteu/1024/1024, 1);
  28.  
  29. //
  30.  
  31.  
  32.  
  33. $cyts->disconnect();
  34. ?>
Add Comment
Please, Sign In to add comment