CCcam PHP Webinfo v.01b

Status
Not open for further replies.

Rocknroll

Staff member
Administrator
Messages
6,174
Thx to Ermethic

v.01b - initial version

Features:
- Header with general emu info and total number of cards on server
- Recognizal of account types by cfg format
(Client/Server pairs, single clients, single servers, suspended or not
see CCcam_format example.cfg for examples)
- Detection of online status for clients/servers using webinfo
(port is detected from cfg or if setting not present - from default)
- Detection of local cards and number of cards in each distance (up to 5)
from each server
- Client settings info for each client
- Notes field taken from #line before account, for keeping track of
comments, contact data, etc
An additional tool to administration and test of your CCcam server.

This script is intended only for technology testing purposes, the author does not condone piracy or cardsharing of any type.
This script is not to be modified in any way other than by the author.

USAGE INSTRUCTIONS

The main file to be run is index.php.
You need a PHP enabled web-host (local or not) for running the script.
The script reads the information from your CCcam.cfg and processes the webinfo and accounts so you need an open ftp port, a user and a pass through which the script can access your CCcam.cfg file.
If your server is on dreambox, just type in the dns, ftp port (which by default is 21 - just make sure it's open in the router), user and pass, and click connect. Also make sure that the CCcam webinfo port is open (default is 16001, unless you have set it to another port in the cfg).
Because of extensive access and calculations, the script takes a little long to process, so just wait.

Your CCcam.cfg line has to be formatted like in the CCcam_format example.cfg file for optimum results (errors might occur otherwise and it's a good thing to keep it organized anyway :p ).
The "accounts" recognized are based on Client/Server pairs (CS pair), Single Clients, Single Servers - suspended or not (suspending a line is done by adding a # before the line). Always put a Client line (F line) before the Server line (C line) or else it will not be recognized as a CS pair.
Newcamd, Camd3 or Radegast servers are always recognized as single servers.

The script connects to your CCcam.cfg line, reads the account and orders them by type. Then it connects to your CCcam webinfo and processes the /clients, /servers and especially /shares.
It calculates the online status of each client/server and counts the number of cards from each server in each distance up to 5.
Next it shows a "Client settings" field, with the clients' settings from the cfg and a "Notes" field with the comments on the # line in the cfg which appears BEFORE the account.

Beware, the script does not check if everything's in place, it assumes all of the above conditions are met, otherwise it will end in error.

That's it for now, the next step is to implement CCcam.providers, to count the number of cards/providers/server and to count the number of unique nodes and nodes/server, considering the resharing feature of CCcam, it's difficult to keep track of how many unique cards there are on server.
 
Status
Not open for further replies.
Top