Jump to content

ringo

Member
  • Posts

    24
  • Joined

  • Last visited

ringo's Achievements

Casual Member

Casual Member (3/8)

0

Reputation

  1. ringo

    Languages

    Any way to remove the languages drop down from the login page? Any help is appreciated.
  2. ringo

    Help

    Yeah SteamCMD no longer supports Centos 5.X, best update to 6.X
  3. ringo

    Help

    What OS are you running? do a "cat /etc/system-release"
  4. It should probably be possible. I'll have to play around with it and see if I can't work something up.
  5. Totally forgot about manually updating..Thank you.
  6. Currently getting this error when checking for updates. "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel." Is this an easy fix or should a support ticket be submitted?
  7. I was thinking with the Current Activity and Stats page, maybe there should be a way for customers to post the graphs or stats of a server on their own website for other to see. Items such as the current activity or the graphs and history stats. Obviously there are other programs that do this such as Gametracker and others but, was just an idea.
  8. Here is a more detailed table of most of the items that can be queried. <?php $con=mysqli_connect('HOST', 'DB_USER', 'DB_PASS', 'tcadmin'); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $result = mysqli_query($con,"SELECT * from tc_game_service_live_stats") or die(mysqli_error($con)); echo "<table border='1' style='background-color:gray';> <tr> <th>Colored Name</th> <th>Name</th> <th>Memory Used</th> <th>CPU Usage (%)</th> <th>Service ID</th> <th>Process ID</th> <th>Current Map</th> <th>Online?</th> <th>Players Online</th> <th>Game Type</th> <th>Game (Mod)</th> <th>Queried Last</th> </tr>"; while($row = mysqli_fetch_array($result)) { $test = $row['memory'] /1024 /1024; $format = number_format($test,0); echo "<tr>"; echo "<td>" . $row['html_name'] . "</td>"; echo "<td>" . $row['name'] . "</td>"; echo "<td>" . $format . " MB</td>"; echo "<td>" . $row['cpu'] . "</td>"; echo "<td>" . $row['service_id'] . "</td>"; echo "<td>" . $row['pid'] . "</td>"; echo "<td>" . $row['map'] . "</td>"; echo "<td>"; if ($row['online'] == '1') {echo "Online";} else echo "Offline"; echo "</td>"; echo "<td>" . $row['players'] . "/" . $row['max_players'] . "</td>"; echo "<td>" . $row['game_type'] . "</td>"; echo "<td>" . $row['game'] . "</td>"; echo "<td>" . $row['query_time'] . "</td>"; echo "</tr>"; } echo "</table>"; mysqli_close($con); ?>
  9. Here is an edited version from long ago to display total player online out of how many slots and how many servers are online. Database Query File include.php: <?php ini_set('precision', 5); $link = mysql_connect('LOCALHOST', 'DATABASE_USER', 'DATABASE PASSWORD'); if (!$link) { die('Not connected : ' . mysql_error()); } $db_selected = mysql_select_db('DATABASE_NAME', $link); if (!$db_selected) { die ('Can\'t Find DB : ' . mysql_error()); } //Query Stuff $active = mysql_query("SELECT SUM(online) FROM tc_game_service_live_stats"); $act = mysql_result($active, 0); $totalslots = mysql_query("SELECT SUM(slots) FROM tc_game_services"); $tsc = mysql_result($totalslots, 0); $totalplayers = mysql_query("select sum(players) from tc_game_service_live_stats"); $po = mysql_result($totalplayers, 0); ?> Don't forget to include the above file where ever your going to display the info. <?php include 'include.php'; ?> Display Queried Info: <p>Players Online: <?php echo $po; ?>/<?php echo $tsc; ?></p> <p>Servers Online: <?php echo $act; ?></p> There is so much more info that can be queried, per server or as a whole.
  10. Here's the solution for anyone that may need it in the future. The problem is that mono 2.10.8 does support binding to a specific IP. You need 3.0.6 or greater. What you can do is configure the website on port 8880. Then use iptables to only redirect port 80 to 8880 only YOURIP. You can use this command: iptables -A PREROUTING -t nat -p tcp -d YOURIPHERE -m tcp --dport 80 -j REDIRECT --to-ports 8880 service iptables save Then you are free to use port 80 on other IPs without having it redirect to the control panel website. Thank you Luis.
  11. I was able to snatch up an extra IP block and imported it into TCAdmin. I removed one of the IPs that I wanted to reserve for another application and rs'd the monitor. The IP I wanted for the other application is still pointing to the TCA control panel. Anyone know how I can stop that. Thanks in advance.
  12. ringo

    Opera Support?

    I have had no issues with Chrome.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use