Not a member yet? Register for your free account!


Go Back   elitepvpers > Conquer Online 2 > CO2 PServer - Discussions / Questions > CO2 PServer Guides & Releases
You last visited: Today at 18:15

  • Did you know? elitepvpers has its own image host, epvpimg.com.

 

5165 Source Character and Account Counter, and Epic Webserver...

This is a discussion on 5165 Source Character and Account Counter, and Epic Webserver... within the CO2 PServer Guides & Releases forum part of the CO2 PServer - Discussions / Questions category; I made this script to count the characters and accounts. It has to be on the same host, with the ...

Reply
 
Thread Tools
Old 01-10-2010, 14:29   #1
Member
 
Pitylee's Avatar
 
Join Date: Nov 2009
Posts: 52
Received Thanks: 6
5165 Source Character and Account Counter, and Epic Webserver...


I made this script to count the characters and accounts.
It has to be on the same host, with the server, otherwise it will not work.
If you'd like to use this script on an external host, you need to use <iframe> (more - below)
  • First of all, you need to be sure, that you have webserver (like Xampp, Wampp, Appserv ), with php support on your localhost. With epic webserver, this isn't working!
  • Than you need to create a file named counter.php and copy the code below.
PHP Code:
<?php
/*
Character and Account counter script
Made by Pityu from Bestudion, owner
of DimensionCO Private Server
Any question: http://www.elitepvpers.com/forum/members/1926551-pitylee.html
*/

//get path of User Directory
$dir1 "C:\OldCODB\Users";
//open a handle to User Directory
$handle1 opendir($dir1);
//intitialize The Counter
$count1 = -3;    // This is -3, cuz  there is the .(Thumbs, htacces), .., and the Characters folder which we dont count in...
//loop through the directory
while (false !== ($file1 readdir($handle1)))
{
$count1++;
}
echo 
"We have ";
echo 
$count1;
echo 
" registered accounts,<br> and ";


//get path of Characters Directory
$dir "C:\OldCODB\Users\Characters";
//open a handle to the Characters Directory
$handle opendir($dir);
//intitialize The Counter
$count = -2;  // This is -3, cuz  there is the .(Thumbs, htacces), ..,which we dont count in...
//loop through the directory
while (false !== ($file readdir($handle)))
{
$count++;
}
echo 
$count;
echo 
" registered characters!";
?>
  • If you did, you have to copy it in you wwwroot, or htdocs, (the root of the webserver).
  • Than open [Only registered and activated users can see links. ] . You'll see the number of accounts and the characters in your server's DB (which is OldCODB).
  • If you want to put to an external host, you need to use the following script:
PHP Code:
<iframe src="http://YOUREXTERNALIPHERE/count.php" frameborder="0" height="100" width="100%" scrollable="no"Your Browser Does not support iframes!</iframe
Any questions, suggestion, post it!
If you like it, push the button! (Thanks button)
__________________

Pitylee is offline  
Thanks
5 Users
Fleaman (01-10-2010), hady (02-22-2010), ktamer (04-02-2010), pintser (04-09-2010), swatdrgn666 (02-21-2010)
Old 01-10-2010, 14:36   #2
Pre MOD
 
Huseby's Avatar
 
Join Date: Oct 2006
Posts: 6,034
Received Thanks: 1,148
Wrong section

#Moved
Huseby is offline  
Old 01-10-2010, 22:57   #3
Banned
 
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
#edit:

they should make one like this compatible with Epic Webserver

Last edited by copz1337; 01-10-2010 at 23:04.
copz1337 is offline  
Old 01-10-2010, 23:48   #4
Banned
 
Join Date: Dec 2009
Posts: 79
Received Thanks: 36
Good job.
Fleaman is offline  
Old 01-11-2010, 00:28   #5
Banned
 
Join Date: Oct 2009
Posts: 8,744
Received Thanks: 5,234
Blog Entries: 13
Quote:
Originally Posted by copz1337 View Post
#edit:

they should make one like this compatible with Epic Webserver
What makes you think that?
Arcо is offline  
Old 01-11-2010, 04:46   #6
I Hax Your Sox
 
Join Date: Dec 2005
Posts: 229
Received Thanks: 85
Not bad, nice bro.
dragon89928 is offline  
Old 02-22-2010, 13:54   #7
ハディー
 
hady's Avatar
 
Join Date: Dec 2006
Posts: 73
Received Thanks: 9
look i am a noop coder can you help me plz pm me if you read this i need i huge help in you code and and in register page
hady is offline  
Old 02-22-2010, 21:09   #8
Banned
 
Join Date: Jan 2009
Posts: 1,934
Received Thanks: 490
hmm ask shunsi i think, i gave someone on how to count this like once it was released... it might work better/faster than this.. but good release.
PeTe Ninja is offline  
Old 02-23-2010, 03:50   #9
ConquerAI Mod
 
-Shunsui-'s Avatar
 
Join Date: Apr 2008
Posts: 1,077
Received Thanks: 303
Yeah i released it You dont need that -3 for it Since it Only Counts .usr Files wich is Users and for Chars Only Counts .chr Files

[Release] Total Accounts + Characters Made WebServer Checker
-Shunsui- is offline  
Old 02-23-2010, 12:04   #10
Banned
 
Join Date: Sep 2009
Posts: 323
Received Thanks: 59
Blog Entries: 1
epic webserver is a fail! lol
LegalConquer is offline  
Reply

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
5165 Epic WebServer error ASSN9NE CO2 PServer - Discussions / Questions 1 04-29-2010 02:17
5165 Source Character Creation error... killersub CO2 PServer - Discussions / Questions 13 03-09-2010 05:07
[GUIDE] How To Setup Registration Page (5165 Epic WebServer) Jedex CO2 PServer Guides & Releases 4 01-29-2010 23:49
[WTS] Steam Account mit Counter Strike Source und Day of Defeat Source Moonlight x3 Steam Trading 1 03-14-2009 17:12




All times are GMT +2. The time now is 18:15.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.