DanCF Posted July 23, 2006 Share Posted July 23, 2006 is the ~7200 servers powered by TCadmin game servers or server machines? Link to comment Share on other sites More sharing options...
ECF Posted July 23, 2006 Share Posted July 23, 2006 Game and voice servers. Link to comment Share on other sites More sharing options...
I-WebSolutions Posted August 8, 2006 Share Posted August 8, 2006 Is it possible to generate an image similar with your own servers? Link to comment Share on other sites More sharing options...
studeggle Posted August 8, 2006 Share Posted August 8, 2006 That sounds like a interesting idea websolutions. I think I will hit the coding table if ECF says his code is to specialived to edit and pass out. Are you running with SQL or Access database? Link to comment Share on other sites More sharing options...
kalyse Posted August 8, 2006 Share Posted August 8, 2006 Yeah this is perfectly possible and actually quite easy. You can query your database for the amoutn of servers, or slots, then you will have the number you need, then you can just print it on any image. Sorry I dont have time to do the code but thats the basic idea. Link to comment Share on other sites More sharing options...
michael18 Posted November 20, 2006 Share Posted November 20, 2006 like this? Link to comment Share on other sites More sharing options...
swish Posted November 20, 2006 Share Posted November 20, 2006 ooo michael...how about some code now that you throw this teaser.. Link to comment Share on other sites More sharing options...
ECF Posted November 20, 2006 Share Posted November 20, 2006 Our code keeps a count of all servers and does not break them out according to client, Looks like Michael has figured out how to grab his count though. Link to comment Share on other sites More sharing options...
michael18 Posted November 21, 2006 Share Posted November 21, 2006 <?php $backimg = "tsig.png"; function db_connect($db_host, $db_user, $db_pass, $db_database) { mysql_connect($db_host,$db_user,$db_pass) or die(mysql_error()); mysql_select_db($db_database) or die(mysql_error()); } db_connect("server ip", "username", "pass", "database"); $result = @mysql_query("select * from tc_services "); $s = 0; while ( $row = mysql_fetch_array($result) ) { $s++; } header("Content-type: image/png"); $im = imagecreatefrompng($backimg); $green = imagecolorallocate($im, 0, 255, 42); $white = imagecolorallocate($im, 255, 255, 255); imagestring($im, 3, 10, 02, 'Gaming-Biz :: www.gaming-biz.net', $green); imagestring($im, 3, 10, 13, "Currently Hosting $s Servers", $white); $oheight = imagesy($map); imagecopyresized($map, $map, 0, 0, 0, 0, 65, 65, 150, $oheight); imagepng($im); imagedestroy($im); ?> that should work fine but yeah let me know if i scrwed anything up Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.