Moderators: Support Team, Other Language Team
/// <summary>
/// This method defines and formats the various strings to be used
/// </summary>
private static void StartList()
{
//Get Playing Clients Count
string ClientCount = WorldMgr.GetAllClientsCount().ToString();
//Set up our URI to be passed to the WebClient.
string Updater = UrlEncode("http://portal.dolserver.net/serverlist.php?action=submit&username=" + UserName + "&password=" + Password + "&totalclients=" + ClientCount + "&version=" + ScriptVersion);
if (!ListUpdater(Updater))
{
if (log.IsInfoEnabled)
log.Info("Your server's entry was not updated!");
}
else
{
if (log.IsInfoEnabled)
log.Info("Your server's entry was successfully updated!");
}
}
WorldMgr.GetAllClientsCount().ToString(); $sql = "UPDATE clients_update_web SET nbr = '$ClientCount' WHERE id = '1' " ;
/// <summary>
/// This method send numbers of connected people on Realm Wars server
/// </summary>
private static void StartList()
{
//Get Playing Clients Count
string ClientCount = WorldMgr.GetAllClientsCount().ToString();
//Set up our URL to send on.
string Updater = UrlEncode("http://www.realm-wars.com/?connectes=" + ClientCount);
if (!ListUpdater(Updater))
{
if (log.IsInfoEnabled)
log.Info("Number of connected people sended !");
}
else
{
if (log.IsInfoEnabled)
log.Info("Number of connected people NOT sended !");
}
}
<?php if(isset($_GET['connectes'])) {
$connectes = $GET_['connectes'] ;
mysql_query("Update xxx SET nbr = '$connectes' WHERE id='1' "); } ?>

I love itvoila. Ton php est faux mais c'est l'idée.
Users browsing this forum: No registered users and 1 guest