![]() |
|
[Script] All in one - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Website Scripting & Security (https://lckb.dev/forum/forumdisplay.php?fid=197) +---- Forum: Website Releases (https://lckb.dev/forum/forumdisplay.php?fid=135) +----- Forum: Ep1 Websites (https://lckb.dev/forum/forumdisplay.php?fid=185) +----- Thread: [Script] All in one (/showthread.php?tid=572) Pages:
1
2
|
- diabllolord - 01-02-2012 [script] All in one Script All inclusive by Diabllolord v1.0 Hello In this script Ive put together everything that I found on the server last chaos added his =) This script is for EP1 1) locks and their owners 2) The register 3) Status 4) Online 5) Top 6) as a bonus advertising of other successful server in the sidebar 7) A little throw at, and made attendance page =) Information about the installation: All throws in htdocs go to Config ---> Config.php and set up a register go to top u Status - where I wrote what and where to change the same scheme set up Fail zamki Voila youre done go to the address 2 Memorable for all links should work so that Apache was included 2 This is my first job execution in php untried strictly =) Do not forgot about Thanks xD Sorry for my english =) - renehnew - 01-02-2012 give me credis for banlist and others and warmonger for status please.. regards - diabllolord - 01-02-2012 banlist <?php //currently an example, change to your desired infomation $dbuser = "root"; $dbpass = ""; $dbhost = "localhost"; $dbname = "newproject_db"; //connect to database $msconn = mysql_connect($dbhost, $dbuser, $dbpass); $db = mysql_select_db($dbname, $msconn); mysql_query("set names UTF8"); $q = mysql_query("SELECT a_idname, a_detail, a_modify_date FROM t_users_block"); echo "</pre> <table width="450" border="0" cellpadding="2" cellspacing="2">AccountnameReasonBandate".$row["a_idname"]."".$row["a_detail"]."".$row["a_modify_date"]."</table> <br>";<br status <?php // Enter Server Connection Info Here $server = array( host => "your ip", lport => "4001", gport => "4110" ); // Enter MySQL Connection Info Here $mysql = array( host => "localhost", user => "root", pass => "" ); echo ""; // Check Active Sockets echo "Server StatusLoginServerOnlineOffline"; } echo "GameServer"; $fp2 = @fsockopen($server[host],$server[gport],$errno,$errstr,2); if($fp2) { echo "Online"; fclose($fp2); } else { echo "Offline"; } echo ""; // Pull Online Player Count $con = mysql_connect($mysql[host],$mysql[user],$mysql[pass]); $result = mysql_query("SELECT COUNT(*) FROM newproject_db.t_users WHERE a_zone_num <> -1",$con); $online = mysql_result($result, 0); echo "Online Players".$online.""; echo ""; // Coded By Warmonger ?> - lol102 - 01-02-2012 Nice work but if we add everything in htdocs folder, where do we need to go ? which link ?- renehnew - 01-02-2012 banlist <?php //currently an example, change to your desired infomation $dbuser = "root"; $dbpass = ""; $dbhost = "localhost"; $dbname = "newproject_db"; //connect to database $msconn = mysql_connect($dbhost, $dbuser, $dbpass); $db = mysql_select_db($dbname, $msconn); mysql_query("set names UTF8"); $q = mysql_query("SELECT a_idname, a_detail, a_modify_date FROM t_users_block"); echo "</pre> <table width="450" border="0" cellpadding="2" cellspacing="2">AccountnameReasonBandate".$row["a_idname"]."".$row["a_detail"]."".$row["a_modify_date"]."</table> <br>";<br status <?php // Enter Server Connection Info Here $server = array( host => "your ip", lport => "4001", gport => "4110" ); // Enter MySQL Connection Info Here $mysql = array( host => "localhost", user => "root", pass => "" ); echo ""; // Check Active Sockets echo "Server StatusLoginServerOnlineOffline"; } echo "GameServer"; $fp2 = @fsockopen($server[host],$server[gport],$errno,$errstr,2); if($fp2) { echo "Online"; fclose($fp2); } else { echo "Offline"; } echo ""; // Pull Online Player Count $con = mysql_connect($mysql[host],$mysql[user],$mysql[pass]); $result = mysql_query("SELECT COUNT(*) FROM newproject_db.t_users WHERE a_zone_num <> -1",$con); $online = mysql_result($result, 0); echo "Online Players".$online.""; echo ""; // Coded By Warmonger ?> i mean.. wrote in your post "Ban list by reneh" etc best regards; ) - diabllolord - 01-02-2012 Nice work but if we add everything in htdocs folder, where do we need to go ? which link ?you mean it? 2 I bad speek in inglish=( - lol102 - 01-02-2012 Yes, but i have test it it work good. But about ur english, thats not a probleme, you can learn more english here ![]() - Kenpachi - 01-03-2012 can anyone give me a little bit more info about this site please? I have it going but Im not use to using xampp and some of the .php files Im not seeing. the site is 2 if you could look at it and help me please, thanks ![]() - someone - 01-03-2012 can anyone give me a little bit more info about this site please? I have it going but Im not use to using xampp and some of the .php files Im not seeing. the site is 2 if you could look at it and help me please, thanks ![]() Sure, Ill look, only if I have access to your local network. 2 No one has access to your private network, unless they are in your private network. - Kenpachi - 01-03-2012 okay so what would I put for a port? anything? |