Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $cyts = new cyts ();
- if($cyts->connect('87.98.245.77','5001'))
- {
- $ts_online_1 = 1;
- }
- else
- {
- $ts_online_1 = 0;
- }
- $si = $cyts->info_serverInfo();
- $gs = $cyts->info_globalInfo ();
- $traffictotalu = (double)$gs["total_bytessend"] + (double)$gs["total_bytesreceived"];
- $bandbreiteu = (double)$gs["total_bwinlastsec"] + (double)$gs["total_bwoutlastsec"];
- // Stats ->-> Fl0.
- $uptime_1 = explode(" ", $gs["total_server_uptime"]); // $uptime_1[0] -> Ausgabe in Tagen (13D) , $uptime_1[1] -> in Stunden (20:43:07)
- $freeslots_1 = 5000 - $gs["total_users_maximal"];
- $total_servers_1 = $gs["total_servers"];
- $total_users_online_1 = $gs["total_users_online"];
- $total_users_maximal_1 = $gs["total_users_maximal"];
- $trafficdown_1 = round($gs["total_bytesreceived"]/1024/1024/1024, 1);
- $trafficup_1 = round($gs["total_bytessend"]/1024/1024/1024, 1);
- $traffictotal_1 = round($traffictotalu/1024/1024/1024, 1);
- $bandbreite_1 = round($bandbreiteu/1024/1024, 1);
- //
- $cyts->disconnect();
- ?>
Add Comment
Please, Sign In to add comment