Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Online Count Players for Acturus as example for dev...
- Ореn SHO_GS.DLL (HEX) , find http://ruff-rose.com and http://aruarose.com
- Change path
- For an example:
- http://yoursrose.com/mon1.php?server...%d&GL_count=%d
- and
- http://yoursrose.com/monitor/monitorn2.php?ip=%s&cnt=%d
- 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-------------------------
- ?>
- monitorn2:
- 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);
- ?>
- 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
- 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 =)
- Code:
- 5765207374616E64206265747765656E207468652063616E646C6520616E64207468652073746
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement