self registeration form
 

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

self registeration form

Started by achiever, 13 November, 2006, 14:01:01

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

achiever

hi,

when a un-registered user tries to enter a hub (which is for registered uers only ) then he gets a msg to contact ops or something of this sort.

But what i need is when the unregistered user will try to enter the hub he will not be allowed to enter
( by that i mean he will not be able to c the things in main chat i.e main chat will be blocked,
he will not see ne users of the hub i.e all the users will be hidden ,
he will not be able to download or even seach from this hub )
but should get something of this form:-

He should be said that
this is a Hub for registered users only.
Plzz reg ur self for entering this hub
So plzz enter ur nick:-
(the user will just type his nick n press enter)

enter ur pass:-
(the user will just type his pass n press enter)

then the user will be asked for his ip:-
enter ur ip:-
(the user will just type his ip n press enter again)
if the ip was used by some other user then he will get a Warning:- (this ip was used last by XYZ user on DATE n if he tries to enter u might get disconnected)

then he will get a message u r now registered to this hub
reconnect to this hub to enter.
enjoy ur stay 


i hope i was clear in explaining.

can such a script be made  ???

thanking you,

achiever.
thks,
achiever.

Herodes

First of all this is not a private hub by definition.
If anyone that comes by can register himself and get in this is not private...
If you want something like a private hub why don't you have a hub that acts 'like a proxy' for users.

User connects to the Proxy-hub
If he passes all the checks (client-share, etc..) and you like him you invite him to the "private" hub.

Getting your users to register doesn't mean that you get them to stay eternally.. thats a promise.
How come you want him to type his ip? It is available anyhow thorugh user.sIP, anyhow..

achiever

#2
sir,

this script should work only for the NONREGISTERED users, n not for those already registered in my hub

i m not clear with ur idea of private hub
but in my hub ne user who wishes to join can join, but will have to get himself registered 1st from ne operator and to avoid his search for operators i needed this script
i kno that self registeration can also be done by +regme command but there r manny users who r not familer with this n r very new to hubs system so i wanted an this script

regarding ip part if its not there in the script that will be good with me just added it to keep records of user ip

i hope i answered what u asked :(

ps:-
Getting your users to register doesn't mean that you get them to stay eternally

its thier wish if they wish to login another time or not but if they r unreged then they should get reged to login.

thks,

achiever.
thks,
achiever.

achiever

sir,

thks now i understood what is ment by a private hub, n now i must say that my hub is a private hub n only reged ppl can only enter the hub.
as my hub is a LAN hub so ppl generally kno their ip's so that wont be problem and i have ur ip script and i had included this ip part b'coz i dont want ne person to get himeself registered again by 2 or 3 different nick, so ip can be a check for that nick, that was the reason i asked a warning to be included after the ip is entered and found to be already in use by some other person.
i have found the script u mentioned and it allows the unregistered to c the main chat download n do all the things a reg can do (if i remove the option of registered user only in option tab)
and the said script regs the person only if he types +regme command, so can u plzz modify this script according to my need  :(

here is the script u mentioned
1.0
--## Secure Pass and Nick (thanks to RabidWombat) 
--## Made by nErBoS
--## Updated to Lua 5 by Pothead
--## Commands;
--##	!regme - Register the user who uses the command
--
--	+Mod request by Mutor 6/26/05 request by Loading
--		+Added User, Op and Main chat message
--		+Added check if nick is already registered
--
sBot = "Reg-Bot"

function Main()
frmHub:RegBot(sBot)
end

function ChatArrival(user, data)
	if (string.sub(data,1,1) == "<" or string.sub(data,1,5+strlen(sBot)) == "$To: "..sBot) then
		data = string.sub(data,1,string.len(data)-1)
		s,e,cmd = string.find(data, "%b<>%s+(%S+)")
		if (cmd == "!regme") then
			if not frmHub:isNickRegged(user.sName)	then
				local s,e,pass = string.find(data, "%b<>%s+%S+%s+(%S+)")
				if (pass == nil) then
					user:SendData(sBot, "Syntax Error, !regme , you must write a password.")
				elseif (string.find(pass, "[%c|\n\r]")) then
					user:SendData(sBot, "Invalid Password. Try Again.")
				elseif (string.find(user.sName, "[%c|\n\r]")) then 
					user:SendData(sBot, "Your nick is invalid. Please choose a new one.")
				else
					AddRegUser(user.sName, pass, 3)
					local OpMsg="The User ( "..user.sName.." )\r\n"..
					"With the IP: ( "..user.sIP.." )\r\n".. 
					"With this Share: ( "..user.iShareSize.." )\r\n"..
					"With this Connection: ( "..user.sConnection.." )\r\n"..
					"With this Mode: ( "..user.sMode.." )\r\n"..
					"With this E-Mail: ( "..user.sEmail.." )\r\n"..
					"With this Client: ( "..user.sClient.." )\r\n\r\n"..
					"Registered Theirself \r\n"..
					"With the Pass: ( "..pass.." )\r\n"
					
					SendPmToOps(sBot,OpMsg)
					
					local UserPm="You are Now Registered\r\n"..
					"With the Nick: ( "..user.sName.." )\r\n"..
					"With the pass: ( "..pass.." )\r\n"..
					"Your IP: ( "..user.sIP.." )\r\n"..
					"Your Share: ( "..user.iShareSize.." )\r\n"..
					"Your Connection: ( "..user.sConnection.." )\r\n"..
					"Your Mode: ( "..user.sMode.." )\r\n"..
					"Your E-Mail: ( "..user.sEmail.." )\r\n"..
					"Your Client: ( "..user.sClient.." )\r\n\r\n"..
					"***Please reconnect and type your password.***\r\n"
					user:SendPM(sBot,UserPm)
					
					local MainMsg="\r\n"..
					"(\ ,_____,-/) \r\n"..
					"_.-'-.( d\_/b ).-'-._ \r\n"..
					"/'.-' ' .---. ' '-. \ The User ( "..user.sName.." ) Registered Theirself \r\n"..
					"/' .' (= (_) =) '. \ \r\n"..
					"/' .', -.__.-.__.-' ,'. \ WELCOME TO "..string.upper(frmHub:GetHubName()).." !\r\n"..
					"( .'. V V ; '. ) \r\n"..
					"( :: -,__.-.__,-' :: ) \r\n"..
					"} / :. .:' \ { \r\n"..
					"} / :. :' \ { \r\n"..
					"} ( ( :. .: ) ) { \r\n"..
					"( ( ( :. :' ) ) ) \r\n"..
					"( ( \ :. .: / ) ) \r\n"..
					"( ( \ :. .:'/ ) ) \r\n"..
					") ( \ :. .:'/' ) ( \r\n"..
					"( )_ ) :._.:' ( _( ) \r\n"..
					"\ ' _) .' . (_ / \r\n"..
					"\ '_) / .'' ''. \ (_ / \r\n"..
					"'' \ ( ) / '' \r\n"..
					"___ '.'. .'.' ___ \r\n"..
					". ''''''-- _) (_'--'''''' \r\n"..
					"(_(_(___...--''' '''--...___)_)_) \r\n"
					
					SendToAll(MainMsg)
			   	end
			   	return 1
			else
			    	user:SendData("\t\t*** Sorry, the username "..user.sName.." is already registered")
				return 1
			end
		end
	end
end


thks,

achiever
thks,
achiever.

speedX

Quote from: achiever on 14 November, 2006, 07:53:08
sir,
as my hub is a LAN hub so ppl generally kno their ip's so that wont be problem and i have ur ip script and i had included this ip part b'coz i dont want ne person to get himeself registered again by 2 or 3 different nick, so ip can be a check for that nick, that was the reason i asked a warning to be included after the ip is entered and found to be already in use by some other person.

If 2-3 ppl are using the same IP thn they'll automatically get an IP conflict, so y need to enter IP?

Or I misunderstood, be short and clear plzz
Thanking You,

speedX

achiever

#5
hi,

ok i m trying again
I would like a script which will block all the features of non-registered and will send a PM or ask in MAIN to that user, demanding for a nick and pass to get regged
like this:
A user connects to the hub
he gets this
-
Quote

You are a non-registered user, to get regiserted:-
Type a suitable nick
(after entering nick)

Type a suitable password
(after entering pass)

Type your IP

You have Successfully yourself with the following details]
Nick:
Pass:
IP:

Please reconnect using the above details
-

Thanx for any help,

achiever
thks,
achiever.

TTB

#6
When ppl reg themselves, you also can get their IP automaticly and let the user proceed with the notice that they need to login with this IP. Saves a little time  ;D

To make yourself clear, you want a script like this:

+ nonregs can't download and search
+ nonregs will only get a message to reg hemselves with +regme, where nick & pass & ip is required
+ nonregs can't register when they are registered with an IP what has already been used by a reg
+ nonregs will get an overview of all his info which can be confirmed by the user?!
+ regs can download from nonregs?!


TTB

(? ?.??.-> Admin @ Surfnet hubs <-.??.???)

Herodes

Quote from: TTB on 14 November, 2006, 09:43:44
When ppl reg themselves, you also can get their IP automaticly and let the user proceed with the notice that they need to login with this IP. Saves a little time  ;D

To make yourself clear, you want a script like this:

+ nonregs can't download and search
+ nonregs will only get a message to reg hemselves with +regme, where nick & pass & ip is required
+ nonregs can't register when they are registered with an IP what has already been used by a reg
+ nonregs will get an overview of all his info which can be confirmed by the user?!
+ regs can download from nonregs?!
I would also add the following questionable functions...
+ nonregs will not be able to get the userlist with all the people connected?!
+ operators would apporve the registration before it can be valid?!

TTB

ghe... If I had time I would create it... but school is first priority... damn I hate it sometimes. *skip*
TTB

(? ?.??.-> Admin @ Surfnet hubs <-.??.???)

achiever

hi,

ok, i m confirming what u asked

+ nonregs can't download and search(including they will not be able to get the userlist of ne person connected to this hub and if possible the USER;S of the hub will be HIDDEN from nonregs)

+nonreg's will NOT SEE THE CHAT going on in MAIN CHAT

+ nonregs will only get a message to reg themselves where nick , pass & ip is required (but they will just enter the nick , pass and ip BUT NOT THE COMMAND +REGME, it should be like the first word they enter is thier nick then pass and the ip)

+ nonregs will just get WARNING  when they try to registered with an IP what has already been used by a reg (BUT THEY WILL BE ALLOWED TO GET REG)

+ nonregs will get an overview of all his info which can be confirmed by the user

+ regs will not know that a nonreg has enetred the hub as non reg will not be added to userlist of hub(and nonreg's download n upload is blocked plzz remember)

+ nonregs will not be able to get the userlist with all the people connected

operators need not be concerned with this

thks a lot,

achiever
thks,
achiever.

achiever

Quote from: achiever on 14 November, 2006, 07:53:08

as my hub is a LAN hub so ppl generally kno their ip's so that wont be problem and i have ur ip script and i had included this ip part b'coz i dont want ne person to get himeself registered again by 2 or 3 different nick, so ip can be a check for that nick, that was the reason i asked a warning to be included after the ip is entered and found to be already in use by some other person.

Quote from: speedX on 14 November, 2006, 09:14:30
If 2-3 ppl are using the same IP thn they'll automatically get an IP conflict, so y need to enter IP?

Or I misunderstood, be short and clear plzz

here is a sollution to my problem if MAC ID is unique for each pc ???

+Can the MAC ID of the person trying to reg can also be stored on this script thus if a person whose Mac id is there in data base tries to register again he should not be allowed
sorry for the late addition of features but i just got the idea

thks for ne help.

achiever
thks,
achiever.

achiever

hi,

i m just making a reminder post so that if ne 1 feels like doing this script then plzz do.  :-\

thks,

achiever
thks,
achiever.

Naithif

#12
Quote from: achiever on 14 November, 2006, 14:14:52
...
+ nonregs can't download and search(including they will not be able to get the userlist of ne person connected to this hub and if possible the USER;S of the hub will be HIDDEN from nonregs)

+nonreg's will NOT SEE THE CHAT going on in MAIN CHAT

+ nonregs will only get a message to reg themselves where nick , pass & ip is required (but they will just enter the nick , pass and ip BUT NOT THE COMMAND +REGME, it should be like the first word they enter is thier nick then pass and the ip)

+ nonregs will just get WARNING  when they try to registered with an IP what has already been used by a reg (BUT THEY WILL BE ALLOWED TO GET REG)

+ nonregs will get an overview of all his info which can be confirmed by the user

+ regs will not know that a nonreg has enetred the hub as non reg will not be added to userlist of hub(and nonreg's download n upload is blocked plzz remember)

+ nonregs will not be able to get the userlist with all the people connected
...

So, unregs can't:
search, download, see the userlist, use/see the mainchat,
and even her/himself's hidden from the userlist...


You will need:
1.) A search/download blocker for unregs (search for it, there are many scripts here like this)
2.) A userhider for the regged folks (hiding the unreg) (search for it, there's a userhider script)
3.) Some kind of GetNickListArrival interruptor (Note that it's most likely not blockable)
4.) A mainchat blocker (search for it, there should be one at least)
5.) A registration form where user types in (s)he's nick&pass&IP(which can be dynamic, so no point in it compared to default regme command as I think...)

(You could as well make a regged only hub with handing out an email address to every connecter who tries to enter where you require their nick, and pass (and maybe ip...))

achiever

hi,

i have clumsily modified the above script (by mutor) to suit my basic requirement

here it is
sBot = "Fusion"

function Main()
frmHub:RegBot(sBot)
end

function NewUserConnected(user)
	if not frmHub:isNickRegged(user.sName)	then
		user:SendPM(sBot, "Your nick is not registered. Please register it NOW by Typing !regme pass.")
	end
end

function ChatArrival(user, data)
	if (string.sub(data,1,1) == "<" or string.sub(data,1,5+strlen(sBot)) == "$To: "..sBot) then
		data = string.sub(data,1,string.len(data)-1)
		s,e,cmd = string.find(data, "%b<>%s+(%S+)")
		if (cmd == "!regme") then
			if not frmHub:isNickRegged(user.sName)	then
				local s,e,pass = string.find(data, "%b<>%s+%S+%s+(%S+)")
				if (pass == nil) then
					user:SendData(sBot, "Syntax Error, !regme , you must write a password.")
				elseif (string.find(pass, "[%c|\n\r]")) then
					user:SendData(sBot, "Invalid Password. Try Again.")
				elseif (string.find(user.sName, "[%c|\n\r]")) then 
					user:SendData(sBot, "Your nick is invalid. Please choose a new one.")
				else
					AddRegUser(user.sName, pass, 3)
					local OpMsg="The User ( "..user.sName.." )\r\n"..
					"has Registered Theirself \r\n"..
					"With the Pass: ( "..pass.." )\r\n"
					
					SendPmToOps(sBot,OpMsg)
					
					local UserPm="You are Now Registered\r\n"..
					"With the Nick: ( "..user.sName.." )\r\n"..
					"With the pass: ( "..pass.." )\r\n"..
					"Your IP: ( "..user.sIP.." )\r\n"..
					"Your Share: ( "..user.iShareSize.." )\r\n"..
					"Your Connection: ( "..user.sConnection.." )\r\n"..
					"Your Client: ( "..user.sClient.." )\r\n\r\n"..
					"***Please reconnect and Enjoy ur your stay.***\r\n"
					user:SendPM(sBot,UserPm)
					
					local MainMsg="\r\n"..
					"The User ( "..user.sName.." ) Registered Theirself \r\n"..
					" WELCOME TO "..string.upper(frmHub:GetHubName()).." !\r\n"
					SendToAll(MainMsg)
			   	end
			   	return 1
			else
			    	user:SendData("\t\t*** Sorry, the username "..user.sName.." is already registered")
				return 1
			end
		end
	end
end


this script asks the user to register himself by PM but if the user gives the command in pm then the script does not work (no error mesg given) and it still work if the command is given in main chat
so can some make the script such that it works PM commands also

sorry to dig out old topics.

thks,
achiever.
thks,
achiever.

achiever

hi,

mutor the script in not working. it gives the mseg when an unreg user enters the hub as earlier but after that it doesn;t take the command neither from pm nor from main chat now.
the script gives no error

thks,
achiever.
thks,
achiever.

achiever

yes its working now.
thks a lot,
achiever.
thks,
achiever.

SMF spam blocked by CleanTalk