I don't think it's that much, I was just trying to understand what the situation is. Give me a few minutes...
OK, hopefully this helps:
PHP Code:
// you may need to adjust this path if your custom php
// isn't in the forum directory.
include('./includes/config.php');
$server = $config['MasterServer']['servername'];
if (!empty($config['MasterServer']['port']))
$server .= ':' . $config['MasterServer']['port'];
if (mysql_connect($server, $config['MasterServer']['username'], $config['MasterServer']['password']))
{
mysql_selectdb($config['Database']['dbname']);
$result = mysql_query("SELECT * FROM " . $config['Database']['tableprefix'] . "datastore WHERE title = 'userstats'");
if ($result AND ($row = mysql_fetch_assoc($result)))
{
$vals = unserialize($row['data']);
echo "Forum has " . $vals['numbermembers'] . " registered members";
}
mysql_close();
}