PtokaX forum

Archive => Archived 5.1 boards => Request for scripts => Topic started by: Yahoo on 15 April, 2007, 17:00:04

Title: Net Login
Post by: Yahoo on 15 April, 2007, 17:00:04
i will like to have a script in which only masters must be able to know about the users which have login from net and must get the following info about the users 

Nick             Ip               TimeOfLogin                  DateOfLastlogin                   IpOfLastLogin 
       
bcoz  in my hub most of the users are from LAN and recently i have started the hub from net also
and it should be based on sum command like +netlogin
Title: Re: Net Login
Post by: Yahoo on 24 April, 2007, 13:01:13
thanks a lot. thank u very very much
Title: Re: Net Login
Post by: achiever on 24 April, 2007, 18:58:29
[21:21] Syntax ...:\(0.3.5.2)Fusion Hub\scripts\netlogin.lua:190: attempt to concatenate field 'Pfx' (a nil value)
when i tried +netuser.

thks,
hi
Quote from: Yahoo on 15 April, 2007, 17:00:04
i will like to have a script in which only masters must be able to know about the users which have login from net bcoz  in my hub most of the users are from LAN and recently i have started the hub from net also

but mutor i think this script shows lan user and net users alike
Title: Re: Net Login
Post by: achiever on 25 April, 2007, 09:24:40
hi,

--Set range(s) for LAN, IP's within these ranges will not be checked
--Delete any not used in your network
NetRange = {
{"10.0.0.1","10.0.0.254"},
{"172.0.0.1","172.0.0.254"},
{"192.168.0.1","192.168.0.254"},
},
}


so should i add the range of ip not to be checked in the NetRange part??
thks,
p.s: actually for lan i would like all ip starting form "172." to be ignored.
so what should i add??
Title: Re: Net Login
Post by: achiever on 25 April, 2007, 14:38:04
Quote[17:57:27] <Fusion>

   ??????????????????????????????????????????????????????????????????????????????????????????
   Listing [ 3 ] logged users for Fusion Hub         04/25/07      05:57:00 pm

   ??????????????????????????????????????????????????????????????????????????????????????????
   Nick                                       Current I.P.   Logged In Since    Last Log In Time   Previous I.P.

   tandya                                     172.13.3.33   17:35  4/25/2007   17:35  4/25/2007   172.13.3.33
   hbk                                        172.128.23.54   17:14  4/25/2007   17:14  4/25/2007   172.128.23.54
   issoricks                                  172.19.14.179   17:19  4/25/2007   17:19  4/25/2007   172.19.14.179

   ??????????????????????????????????????????????????????????????????????????????????????????

its still checking these ips, i need it to stop looking in for ips starting with 172.
Title: Re: Net Login
Post by: Yahoo on 26 April, 2007, 17:12:02
what setting should be done by me in order to get ips in this range 221.xxx.xxx.xxx only
Title: Re: Net Login
Post by: Yahoo on 28 April, 2007, 07:06:00
i have put the following ranges
NetRange = {
   {"172.16.6.1","172.16.6.254"},
   {"172.0.0.1","172.255.255.255"},
   {"172.19.1.1","172.19.1.254"},
and the output is as follows
Nick                                       Current I.P.   Logged In Since    Last Log In Time   Previous I.P.

   fuel                                    172.172.3.2   7:57  4/26/2007   8:9  4/26/2007   172.172.3.2
   sans                                      172.16.1.92   3:28  4/26/2007   3:45  4/26/2007   172.16.1.92
   red_x                                     172.19.101.24   7:41  4/26/2007   9:33  4/26/2007   172.19.101.24
   grasim                                    172.16.99.15   8:29  4/26/2007   8:37  4/26/2007   172.16.99.15
   coolsid                                   172.19.17.16   7:55  4/26/2007   8:0  4/26/2007   172.19.17.16
   daredevil                                 172.16.47.42   9:24  4/25/2007   9:28  4/25/2007   172.16.47.42

actually i want the ip range put in NetRanges must be checked instead of not checking
tht is the ips given in NetRange must only be checked
Title: Re: Net Login
Post by: achiever on 28 April, 2007, 08:02:37
Quote from: Mutor on 28 April, 2007, 02:50:47
Perhaps it's your PX network settings.
which settings should be changed to get the desired results?

Quote from: Mutor on 28 April, 2007, 02:50:47
P.S.
Has anyone else tried this script and if so what are your results?
then what have i posted if i have not tried ur script yet?

thks,
Title: Re: Net Login
Post by: Yahoo on 29 April, 2007, 11:18:04
actually as per u r script the ips in NetRange must not been show in netlist
but even when i type a ip range in tht NetRange it shows me tht range ips also in tht netlist
i have not tried u r latest version of netlogin this is wat i have exprienced with the 1st version
the version v 1.0b is working great but can u added the status of the user in tht script means the user is online or offline
thanks for the script
Title: Re: Net Login
Post by: achiever on 29 April, 2007, 15:08:02
happy birthday mutor!!!

well i as i have said i report what i c on my hub and its u all scripters who kno ur scripts best.
i can just give my appologies to all who feel i m wrong.

thks for the new version, will report my progress ;)
Title: Re: Net Login
Post by: Yahoo on 29 April, 2007, 16:49:19
the script is working great and it is not having any problem

   ????????????????????????????????????????????????????????????????????????????????????????????????????
   Listing [ 3 ] logged users for ]-[ 3 ][ 3 ][ 3 ][ 3 ]-[UB?         04/29/07      08:11:00 pm

   ????????????????????????????????????????????????????????????????????????????????????????????????????
   Nick                                       Current I.P.   Logged In Since    Last Log In Time   Previous I.P.   Status

   rishabh                                    202.177.239.201   07:04  4/26/2007   07:18  4/26/2007   202.177.239.201   offline
   avi                                        221.135.179.207   01:23  4/26/2007   01:44  4/26/2007   221.135.179.207   offline
   prathmesh                                  221.135.238.148   06:20  4/26/2007   07:26  4/26/2007   221.135.238.148   offline

   ????????????????????????????????????????????????????????????????????????????????????????????????????
thanks mutor for making such a nice script
Title: Re: Net Login
Post by: achiever on 30 April, 2007, 11:47:27
thks mutor its working good now.
thks for the help.
Title: Re: Net Login
Post by: Yahoo on 07 May, 2007, 18:49:28
i will like to have one change in the script.. When a user login frm net he must get a pm on connecting (it must appear only for net user)
-----------------------------------------------------------------------------

ATTENTION   MEMBERS:

If you want to block your uploads and downloads in this hub just set Passive mode.

If you set Active mode you will be able to download from and upload to other Active users.

Remember that the downloads and uploads will be through net.

-----------------------------------------------------------------------------

i will like to have a small change in the script when a master type +netlist command it must display online users only and there must be one more command +netlistall which will be showing list of all users login through net.. bcoz the current netlist show a long list as it shows both offline and online users
Title: Re: Net Login
Post by: Yahoo on 13 May, 2007, 19:24:54
thank you very much for the script. mutor u r the best scripter
i will like to have one more change in the script the command +netlist must be also available for net user only and not for lan user
Title: Re: Net Login
Post by: Yahoo on 14 May, 2007, 11:01:38
the netlist command is not working
Title: Re: Net Login
Post by: Yahoo on 14 May, 2007, 15:15:00
sorry for tht but i didnt get u i can get right click menu but in tht menu netlist command is missing other all commands are working
Title: Re: Net Login
Post by: Yahoo on 15 May, 2007, 06:37:09
sorry sir, but i wanted this command for net users bcoz net users cant get lan users filelist and atleast they must be able to know frm which users they will be able to d/l thts y i asked for this command which should have been work for both masters and net user
Title: Re: Net Login
Post by: Yahoo on 16 May, 2007, 07:29:52
Thanks for the new script but it is still not working
the command +netlist does not show any output
even if WAN user(s) are in the hub for both master(s)
and WAN user(s)
But Instead of netlist command when i tried netlistall command
it showed me the proper output of online and offline user present
at tht time
Quote[PoTtEr:10:43:16] *** Server command: +netlist
[PoTtEr:10:43:28] *** Server command: +ip valmiki
[PoTtEr:10:43:28] <potter> +ip valmiki
[PoTtEr:10:43:28] <IpInfo> Nick: valmiki   IP: 203.192.227.194   LastSeen: Currently Online
[PoTtEr:10:43:35] *** Server command: +netlist
[PoTtEr:10:43:46] *** Server command: +netlistall
[PoTtEr:10:43:47] <[HeavY]>

   ????????????????????????????????????????????????????????????????????????????????????????????????????
   Listing [ 23 ] total logged users for ]-[ 23 ][ 23 ][ 23 ][ 23 ]-[UB? (Back-up)         05/16/07      10:43:00 am

   ????????????????????????????????????????????????????????????????????????????????????????????????????
   Nick                                       Current I.P.   Logged In Since    Last Log In Time   Previous I.P.   Status

   d-seeker                                   221.134.196.82   00:55  5/14/2007   01:11  5/14/2007   221.134.196.82   offline
   prathu                                     221.134.84.91   11:08  5/2/2007   11:41  5/2/2007   221.134.84.224   offline
   bijoy                                      221.135.232.52   19:48  5/15/2007   19:48  5/15/2007   221.135.232.52   offline
   valkyrie1                                  58.146.97.236   00:41  5/13/2007   00:41  5/13/2007   58.146.97.236   offline
   friend                                     82.71.21.32   02:58  5/5/2007   02:58  5/5/2007   82.71.21.32   offline
   prathmesh                                  124.7.82.25   06:54  5/14/2007   07:04  5/14/2007   124.7.82.25   offline
   rincewind                                  82.71.21.32   03:01  5/5/2007   03:11  5/5/2007   82.71.21.32   offline
   vinayd                                     202.177.239.211   00:17  5/13/2007   00:40  5/13/2007   202.177.239.211   offline
   veda                                       202.177.255.130   20:58  5/15/2007   21:29  5/15/2007   202.177.255.130   offline
   rishabh                                    202.177.239.211   07:05  5/14/2007   07:06  5/14/2007   202.177.239.211   offline
   premraj                                    221.135.251.28   05:41  5/3/2007   05:48  5/3/2007   221.135.251.28   offline
   mowgli                                     221.128.172.126   04:14  5/13/2007   04:21  5/13/2007   221.128.172.126   offline
   vinays                                     210.214.12.224   19:23  5/15/2007   19:32  5/15/2007   210.214.12.224   offline
   anand                                      210.214.14.142   01:01  5/14/2007   01:11  5/14/2007   210.214.14.142   offline
   rishank                                    124.7.82.220   06:50  5/14/2007   06:51  5/14/2007   124.7.82.220   offline
   dbzravi                                    221.134.198.217   20:32  5/13/2007   20:33  5/13/2007   221.134.198.217   offline
   rishik                                     210.211.132.158   07:41  5/13/2007   08:36  5/13/2007   210.211.132.158   offline
   viruss                                     221.128.172.138   20:49  5/13/2007   21:22  5/13/2007   221.128.172.138   offline
   avi                                        221.135.177.49   10:43  5/5/2007   10:43  5/5/2007   221.135.177.49   offline
   kk                                         202.177.255.131   14:04  5/2/2007   14:04  5/2/2007   202.177.255.131   offline
   psychotron                                 221.128.168.150   09:48  5/13/2007   10:04  5/13/2007   221.128.168.150   offline
   valmiki                                    203.192.227.194   10:19  5/16/2007   10:15  5/16/2007   203.192.227.194   online
   navinkp                                    202.177.241.237   13:54  5/13/2007   13:55  5/13/2007   202.177.241.237   offline

   ????????????????????????????????????????????????????????????????????????????????????????????????????

my setting are
--Delete any not used in your network
LanRange = {
   {"10.0.0.0","10.255.255.255"},
   {"172.0.0.0","172.255.255.255"},
   },
in the above quote the netlist command does not display
any online WAN user but it netlistall command shows the
current online WAN user
Title: Re: Net Login
Post by: achiever on 16 May, 2007, 08:25:20
what will be the difference between the 2 commands both will show just net loggined users, isnt it?

and y not make that command available for all profile so that as u said
Quote from: Yahoo on 15 May, 2007, 06:37:09
i wanted this command for net users bcoz net users cant get lan users filelist and atleast they must be able to know frm which users they will be able to d/l
the same goes for lan users too, they will come to kno the net users and wouldnt try d/l from them.
Title: Re: Net Login
Post by: Yahoo on 18 June, 2007, 19:31:44
if i want to show (all) the users the net user what should me my code??? the display must be somewhat like this
onliner users: mutor, yahoo, achiever, speedx, creative

can some plzz tell me the code to show output to reg users also