RegHub Redirect
 

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

RegHub Redirect

Started by Psycho_Chihuahua, 24 June, 2004, 12:39:32

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Psycho_Chihuahua

Hi there, i need some help with this one.

It's supposed to redirect "non registered" users to a PartnerHub seeming though my Hub is now Registered Only.
Could someone check whats wrong so that it works with TD4.99 ? (or do i really have to go back to TD4 ;))

-----------------------------------------------------------------------------------------
--                                                                                     --
--                                     RegHub Script                                   --
--                                                                                     --
-----------------------------------------------------------------------------------------
        --???????????????????????????????????????????????????????????????????????????????
	--?               ???????????? HELVETIA REG HUB ????????????               ?
        --???????????????????????????????????????????????????????????????????????????????
addy="oberlausitzer.homeip.net"			-- ? <<<<< Enter the Redirect Adress here	?
					-- ??????????????????????????????????????????????
text=	"                                                  Sorry, only for registered Users\n"..
	"  <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>\n"..
	" Interested in becoming Reg User? Then ask one of the Admin's in our Open Hub\n"..
	"  <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>\n"..
	"                            You will now be redirected to our PartnerHub > oberlausitzer.homeip.net"	-- ? <<<<< Put your Info Text here	?
        --???????????????????????????????????????????????????????????????????????????????
	--?                        ???????????? End ????????????                        ?
        --???????????????????????????????????????????????????????????????????????????????
function NewUserConnected(user)
if (user.iProfile == -1) then
user:SendData(text)
user:SendData("$ForceMove "..addy.."|")
end
end
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

plop

try this.
user:SendData(text.."|$ForceMove "..addy.."|")

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Psycho_Chihuahua

QuoteOriginally posted by plop
try this.
user:SendData(text.."|$ForceMove "..addy.."|")

plop

 8o  should of seen that one..lol.. thnx alot plop
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

plop

http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Psycho_Chihuahua

#4
OK, after having the script running 4 a while, i had another minor problem.
The hublistpinger coulndt enter either, so i modified the script with help from another forum.

Now this is what i have:

       --???????????????????????????????????????????????????????????????????????????????
	--?               ???????????? HELVETIA REG HUB ????????????               ?
        --???????????????????????????????????????????????????????????????????????????????
addy="oberlausitzer.homeip.net"			-- ? <<<<< Hier die UmleitungsAdresse angeben	?
					-- ??????????????????????????????????????????????
text=	"Dieser Hub ist nur f?r registrierte User\n"..
	"  <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>\n"..
	" Interesse Reg User zu werden dann fragt mal Puppa, Domenik oder Simba im Oberlausitzer Hub\n"..
	"  <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>\n"..
	" Du wirst nun zu unserem PartnerHub > oberlausitzer.homeip.net < weitergeleitet\n"			-- ? <<<<< Hier denn zusendenen Text angeben	?
        --???????????????????????????????????????????????????????????????????????????????
	--?                        ???????????? Oberlausitzer Open Hub ????????????                        ?
        --???????????????????????????????????????????????????????????????????????????????
function NewUserConnected(user)
if (user.iProfile == -1 and (user.sName ~= "{HubListPinger}" or "HubListPinger") then
user:SendData(text.."|$ForceMove "..addy.."|")
end
end
which should actually only let HubListPinger or {HubListPinger} in without a password.
The Problem is that it doesnt redirect as it should. Only a small percentage gets redirected and a lot of unregistered users ended up in my RegHub  ;(
I need the Pinger to be able to enter without other unregged Users slipping in as well.




***EDIT***
found the answer....

instead of....
function NewUserConnected(user)
if (user.iProfile == -1 and (user.sName ~= "{HubListPinger}" or "HubListPinger") then
user:SendData(text.."|$ForceMove "..addy.."|")
end
end

i now have:
function NewUserConnected(user)
 if (user.iProfile == -1) then
  if (user.sName =="{HubListPinger}") then
  else
user:SendData(text.."|$ForceMove "..addy.."|")
  end
 end
end
function DataArrival(user,data)
 if (strsub( data, 1, 8 ) == "$MyINFO ") and (user.iProfile == -1) then
  if (user.sName =="{HubListPinger}") then
  else
user:SendData(text.."|$ForceMove "..addy.."|")
  end
 end
end

and the way it seems - all is working correctly


***EDIT 2***

found an easier way to get the HubListPinger into the Hub without anyone else....has to be done from the same server as the hub is running

http://www.hublist.org/registerpinger.php?address=hubadress.no-ip.net&nick=Pinger&pass=Pinger



just fill in ur details for hubadress, nick and pass
so u can register the Bot in ur hub as well with the nick of ur choice
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

NeoUltimicia

I only want to register the hub in the hublist.org that I can see withen DC++
the website is working alright and I can see that it detected that I can PtokaX and the requiremnts (share/slots/etc..)
the thing is that I can't see my hubs name in the hublist.org in DC++

I placed > reg.hublist.org < in the register Address in PtokaX

I have tried this link many times, but didn't work:
http://www.hublist.org/registerpinger.php?address=hubadress.no-ip.net&nick=Pinger&pass=Pinger
and also tried using the script  provided by hublist.org.

any idea why am I having this?
--[using]-----
PtokaX DC Hub 0.3.3.0 build 15.25 [debug]
RoboCopv9.0a
----------------

Psycho_Chihuahua

QuoteOriginally posted by NeoUltimicia
I only want to register the hub in the hublist.org that I can see withen DC++
the website is working alright and I can see that it detected that I can PtokaX and the requiremnts (share/slots/etc..)
the thing is that I can't see my hubs name in the hublist.org in DC++

I placed > reg.hublist.org < in the register Address in PtokaX

I have tried this link many times, but didn't work:
http://www.hublist.org/registerpinger.php?address=hubadress.no-ip.net&nick=Pinger&pass=Pinger
and also tried using the script  provided by hublist.org.

any idea why am I having this?
--[using]-----
PtokaX DC Hub 0.3.3.0 build 15.25 [debug]
RoboCopv9.0a
----------------


Well i have the same Probs (running a reg only hub) and on top of that the hublist.org page is having quit a few ups and downs lately
I have at least 25 Ppz in my Hub at all Times and even then the Pinger mostly says 0 Users

http://www.hublist.org/?p=hub&id=77588
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

SMF spam blocked by CleanTalk