Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 00:18

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Small Release] 5017 PHP Status Checker (LOTF)

Discussion on [Small Release] 5017 PHP Status Checker (LOTF) within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2009
Posts: 130
Received Thanks: 90
[Small Release] 5017 PHP Status Checker (LOTF)


THIS IS FOR LOTF!!
I Tested It And It Works!!

Code:
<?php
require ("connect.php");

$res = mysql_query("SELECT count(*) FROM accounts;");
$val = mysql_fetch_array($res);
echo "<div style='top'><font color='white'>Accounts Created: ".$val[0]."</div>";

$res = mysql_query("SELECT count(*) FROM characters;");
$val = mysql_fetch_array($res);
echo "<div style='top'><font color='white'>Characters Created: ".$val[0]."</div>";

$ip = "Your Server Ip";
$port = "9958"; //keep this what it is!!
if (! $sock = @fsockopen($ip, $port, $num, $error, 5))
echo "<body bgcolor='black'><font color='white'>Server: </font><B><FONT COLOR=red>Offline</b></FONT>";
else{
echo "<body bgcolor='black'><font color='white'>Server: </font><B><FONT COLOR=lime>Online</b></FONT>";
fclose($sock);
}

$res = mysql_query("SELECT count(*) FROM accounts WHERE online=1;");
$val = mysql_fetch_array($res);
echo "<div style='top'><font color='white'>Total Players Online: ".$val[0]."</div>";
?>
Then make a connect.php

Code:
<?php

$error = "<body bgcolor='black'><font color='white'>Problem connecting to database, Please try again later.</font>";

$connect = mysql_connect("localhost", "root", "password") or die($error);
mysql_select_db("coproj") or die($error);

?>
Then you should see this:

irritantgassie is offline  
Thanks
3 Users
Old 07/08/2010, 21:53   #2
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
Think yourl find nobody is gonna use this code.
MonstersAbroad is offline  
Old 07/09/2010, 01:23   #3
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
Preview please.
copz1337 is offline  
Thanks
1 User
Old 07/09/2010, 20:07   #4
 
elite*gold: 0
Join Date: Apr 2009
Posts: 130
Received Thanks: 90
Quote:
Originally Posted by copz1337 View Post
Preview please.
Ok
#Added preview!
irritantgassie is offline  
Old 07/12/2010, 02:18   #5
 
elite*gold: 0
Join Date: Oct 2007
Posts: 28
Received Thanks: 2
messy code....
kasene is offline  
Old 07/12/2010, 12:04   #6
 
elite*gold: 0
Join Date: Apr 2009
Posts: 130
Received Thanks: 90
Quote:
Originally Posted by kasene View Post
messy code....
Why messy, its just a PHP Code that works, try something else and it doesnt work so goodluck if you know it better then this code!
irritantgassie is offline  
Old 06/18/2011, 12:51   #7
 
JobvdH's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 371
Received Thanks: 120
Hmm nice work..
JobvdH is offline  
Old 06/18/2011, 22:43   #8
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,379
Quote:
Originally Posted by JobvdH View Post
Hmm nice work..
Nice like 10 month necro..
pro4never is offline  
Old 11/20/2011, 17:55   #9
 
[I]Inquisitor's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 62
Received Thanks: 4
Good job works !
[I]Inquisitor is offline  
Old 11/21/2011, 14:44   #10
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Quote:
Originally Posted by pro4never View Post
Nice like 10 month necro..
It's his own account.
BaussHacker is offline  
Old 11/21/2011, 15:54   #11


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
This is a bad way of doing it anyway =/
Korvacs is offline  
Old 12/01/2011, 14:52   #12
 
JobvdH's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 371
Received Thanks: 120
Uhh... irritantgassie ain't really my accounts. My brother owns it..
JobvdH is offline  
Reply


Similar Threads Similar Threads
[Big-Release] +13 - +15 Items with NPC (5017 LOTF)
07/19/2010 - CO2 PServer Guides & Releases - 12 Replies
THIS IS FOR 5017 LOTF!! I Tested It And It Is Working!! 1.) Download ItemAdd.ini here 2.) Put ItemAdd.ini in the ini folder! AND, in the debug folder of your source! 3.) The NPC! Search in Client.cs for:
[RELEASE] old 5017 lotf
03/20/2010 - CO2 PServer Guides & Releases - 8 Replies
it works okay... this is my second draft because my first one got wiped so dont expect it to be as good... haven't spent much time on it.. its all urs.. do what you want.. LOTF v5017.. put the database in your C: and define it directly in the src.. it loads dmaps and npcs from there.. to do npcs just go to NPcSystem.cs ... yeah just put it in recently .. it works ifne , i have tested it.
[Release]Portable Server Status Checker
09/09/2009 - CO2 PServer Guides & Releases - 34 Replies
Reasons I released this: 1) I know there are lots of people who have their servers in beta testing ect, and maybe you might not have a website as yet, or a server status page. 2) I was bored. So, by the Config.ini is set to: IP=127.0.0.1 Port=80
[Release]Simple Status Checker
12/29/2008 - CO2 PServer Guides & Releases - 8 Replies
Ok, today im releasing a Simple Status Checker! (Its my first code in C#) In Client.cs find : above add : then search for a second time 390 and add above :
[Release] Server Status Port Checker C# (Source)
04/12/2008 - CO2 Exploits, Hacks & Tools - 4 Replies
Nope.



All times are GMT +1. The time now is 00:23.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.