- Joined
- Dec 22, 2004
- Messages
- 513
- Reaction score
- 162
Online Count Players for Acturus as example for dev...
Ореn SHO_GS.DLL (HEX) , find
Change path
For an example:
and
Create two scripts:
mon1.php and monitorn2.php
mon1(thia script log in text file for dev now):
monitorn2:
Note:
$Channelname="ChannelName" u need open DB seven_ORA->Statistic and add Channelname in txtChannel;
Next
For RoseCP:
Open: \libs->rosecp_ae.php and add
I hope that it will be to whom that interestingly =)
Ореn SHO_GS.DLL (HEX) , find
You must be registered to see links
and
You must be registered to see links
Change path
For an example:
You must be registered to see links
and
You must be registered to see links
Create two scripts:
mon1.php and monitorn2.php
mon1(thia script log in text file for dev now):
Code:
<?php
//*****This monitoring level 1******
//Config----------------------------
$mysecretfile='secretfilename.txt';
//Data from Server------------------
$server_ip=$_GET['server_ip'];
$total_count=$_GET['total_count'];
$HG_count=$_GET['HG_count'];
$EX_count=$_GET['EX_count'];
$BB_count=$_GET['BB_count'];
$GL_count=$_GET['GL_count'];
//Log in text file-----------------
$f=fopen($mysecretfile,"a");
fputs($f, "server_ip-".$server_ip."total_count-".$total_count."HG_count-".$HG_count."EX_count-".$EX_count."BB_count-".$BB_count."GL_count-".$GL_count.' '.date("d.m.Y H:i",time())."\r\n");
fclose($f);
//In MSSQL-------------------------
?>
Code:
<?php
//*****This monitoring level 2******
//Config----------------------------
$mysecretfile='secretfilename2.txt';
$myServer = "YOU IP DB";
$myUser = "USER";
$myPass = "PASSWD";
$myDB = "seven_ORA";
$Channelname="ChannelName";
//Data from Server------------------
$ip=$_GET['ip'];
$cnt=$_GET['cnt'];
//Log in text file-----------------
$f=fopen($mysecretfile,"a");
fputs($f, "ip-".$ip." count-".$cnt.' '.date("d.m.Y H:i",time())."\r\n");
fclose($f);
//MSSQL-------------------------
$conn=mssql_connect($myServer,$myUser,$myPass);
if (!$conn)
{exit("Connection Failed: " . $conn);}
$selected = mssql_select_db($myDB, $conn) or die("Couldn't open database $myDB");
$sql="UPDATE Statistic SET txtChannel =\"$Channelname\", intCount =\"$cnt\"";
$rs=mssql_query($sql);
if (!$rs)
{exit("Error in SQL");}
mssql_close($conn);
?>
$Channelname="ChannelName" u need open DB seven_ORA->Statistic and add Channelname in txtChannel;
Next
For RoseCP:
Open: \libs->rosecp_ae.php and add
Code:
function onlieuser()
{
$myServer = "YOU IP DB";
$myUser = "USERDB";
$myPass = "PASSWD";
$myDB = "seven_ORA";
$conn=mssql_connect($myServer,$myUser,$myPass);
if (!$conn)
{exit("Connection Failed: " . $conn);}
$selected = mssql_select_db($myDB, $conn) or die("Couldn't open database $myDB");
//echo "You are connected to the " . $myDB . " database on the " . $myServer . ".";
$sql="SELECT txtChannel, intCount FROM Statistic";
$rs=mssql_query($sql);
if (!$rs)
{exit("Error in SQL");}
while (mssql_fetch_row($rs))
{
$channel=mssql_result($rs,0,"txtChannel");
$playercount=mssql_result($rs,0,"intCount");
}
mssql_close($conn);
return "<b>$channel</b> Players- <b>$playercount</b>";
}
function stats()
{
$s = '<h2>Server Info</h2>
<ul>
<li>Server : '.$this->check_port("127.0.0.1","29000").''.$this->check_port("127.0.0.1","29100").''.$this->check_port("127.0.0.1","29200").'</li>
<li>Channel: - '.$this->onlieuser().'</li>
.....
......
.
I hope that it will be to whom that interestingly =)