old forum...
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

old forum...

Started by angelsanges, 21 October, 2003, 10:00:05

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

angelsanges

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

ptaczek

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.
-ptaczek-

This whole physical universe is a hologram.
[Cosmosis - Contact: The First Step]

angelsanges

Thank you!....
when you find it......
if you want....
post it here..... :P

ptaczek

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  there is probably a newer version.
-ptaczek-

This whole physical universe is a hologram.
[Cosmosis - Contact: The First Step]

servaks

#4
I think he means my little work...

THE LINK...

Sorry, but link is broken, i hope soon will be back...

/shipis
My hub is back! (yeeeeeey)

hub.servaks.com


angelsanges

uhm....only on linux???
what about a windows-side webhubReg?

angelsanges

what about your work servaks?

servaks

HTTP Server down...

/shipis
My hub is back! (yeeeeeey)

hub.servaks.com


RiPOFF

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.

kbeh273300

#9
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
-=United Kings network=-
Network Webpage?
Hub address: houseofkings.no-ip.org:420
hub webpage
hub forum

daniele_dll

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

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 ^^
VB\\PHP\\PERL\\MYSQL - Some C\\C++\\Java\\Python

To destroy a Linux Box you have to make it on purpose... to destroy a windows machine you just need to turn it off....

SMF spam blocked by CleanTalk