on the old forum an user (i dont' remember who)...posted a "tutorial" or something like that...that explained a way to register users on ptoka....via Web..........
This user used php to do this.....
anyone remember how?
sorry for my english
Yes I do and the good news is that the same post has touched the Ptokax Download Central site as well and I have full database backup of that tiny board :) I'll try to find the post.
Thank you!....
when you find it......
if you want....
post it here..... :P
Right one?
QuoteOriginally posted by daniele_dll on PtokaX Download Central
[size=1]daniele_dll (no_mail) --- 10.4.2003 12:13:50
Hi to all...talking about hub reg list...i've written this little server in PERL.
It must run on a LinuxBsd system but should run on a Windows System too. I haven't tested it on windows!
you can download it from:
[URL=http://www.phpsoft.it/uploads/plHUBReg.zip]plHUBReg.zip[/URL]
it at first version (v0.1)
Into the package there are three files:
- plHUBReg_0_1.pl Perl HUB Reg List Server
- plHUBReg_0_1.sql SQL File to use with MySQL
- Date-Simple-2.04.tar.gz This shouldn't be necessary but if u get an error install it into your perl PM dir
To configure it u should open the plHUBReg_0_1.pl and edit these lines:
#-----------------------------------------------------------------------------------------#
# START CONFIG #
#-----------------------------------------------------------------------------------------#
my $PORT="2501"; #Port of the server
my $TIMEOUT="2"; #Connection Timeout when check if the hub is online in minutes
my $GARBAGE_TIME="1500"; #Garbage Time in seconds
my $max_socket_timeout = "300"; #Socket Timeout in seconds
my $max_socket_buffer = 5 * 1024; #Max Buffer for socket that waiting datas from HUB Server
my $max_users_x_hub = "2000";
my %DB; #DB Config
$DB{'host'}="localhost"; #Host
$DB{'user'}="Your_Username"; #Username
$DB{'pass'}="Your_Password"; #Password
$DB{'dbname'}="plHUBReg"; #DB Name
$DB{'prefix'}="plHUBReg_"; #Table Prefix
#User needs there grant:
# SELECT, INSERT, DELETE, UPDATE
# If you get MySQL Permission Errors give it other permissions
#-----------------------------------------------------------------------------------------#
# END CONFIG #
#-----------------------------------------------------------------------------------------#
Configure these params in the PL file to run it!
Create a user in mysql and give it SELECT, UPDATE, INSERT, DELETE permissions.
Create a DB in your mysql and remember to set that the user that u have created can use this DB and no one other!
After that you execute .SQL file to add to the DB the table
MyAPP is at 0.1 version...you can only test it...i'll write a php app to print the list of the hub in DB ordered by USERS
a last thing i'll add the possibility to make searches using get string in PHP file!
for any problem contact me at [EMAIL]daniele_dll@yahoo.it[/EMAIL]!
:)
byz
PS: u can create the db and add the user with this syntax:
CREATE DATABASE plHUBReg;
GRANT SELECT, UPDATE, INSERT, DELETE
ON plHUBReg
TO Your_Username@localhost IDENTIFIED BY 'Your_Password';
with these 2 commands u create the db and create user granting to him permissions :)
remember to change Your_Username with a username and Your_Password with your password :D[/size]
The link is still alive and on http://www.phpsoft.it/downloads.php (http://www.phpsoft.it/downloads.php) there is probably a newer version.
I think he means my little work...
THE LINK... (http://www.dchubers.net/files/WebUserReg.rar)
Sorry, but link is broken, i hope soon will be back...
/shipis
uhm....only on linux???
what about a windows-side webhubReg?
what about your work servaks?
HTTP Server down...
/shipis
errors when i try it
Warning: fopen(C:\Documents and Settings\Owner\Desktop\Max\Hub Software\PtoKaX DC Hub\RegUserQueue.dat): failed to open stream: Permission denied in C:\Inetpub\wwwroot\addusr.php on line 11
Warning: fwrite(): supplied argument is not a valid stream resource in C:\Inetpub\wwwroot\addusr.php on line 12
Warning: fclose(): supplied argument is not a valid stream resource in C:\Inetpub\wwwroot\addusr.php on line 13
User successfuly added.
well how is it goin rip long time no see :)
the problem here is a simple one i think
this is how it should look
C:\\Documents and Settings\\Owner\\Desktop\\Max\\Hub Software\\PtoKaX DC Hub\\RegUserQueue.dat
this is what you have
C:\Documents and Settings\Owner\Desktop\Max\Hub Software\PtoKaX DC Hub\RegUserQueue.dat
hope that fixes it for ya :)
_________________
saveing lua
-=T-G-T=- network
Network Webpage: //www.t-g-t.nl
Network forum http://tgt.shows.it
Hub address: houseofkings.no-ip.org
hub webpage: http://houseofkings.no-ip.org
hi
i'm reading this post only now :)
Quoteon the old forum an user (i dont' remember who)...posted a "tutorial" or something like that...that explained a way to register users on ptoka....via Web..........
to do this you need a good guide to dc protocol, a good guide on socket used with php ^^
you can found the second in //www.php.net/sockets
read user comments...there are many and many examples
i've written a powerful class in php to interface with dc
http://www.phpsoft.it/downloads/PHPDCFramework 0.1.0.rar (http://www.phpsoft.it/downloads/PHPDCFramework%200.1.0.rar)
with this...you need only to know some php :)
you can create an user op\admin on your hub...or hovewer that can register other users...and with this class...you must connect to the server using this user and after you must send the reg command for ptokax ^^
if you have problems call me ^^