Show hosts name in quotas

Suggest improvements and new features for Gargoyle.

Moderator: Moderators

Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Show hosts name in quotas

Post by Tareq »

Is there any way or additional code lines to show hosts name in quotas?

It would be useful.



Image
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Re: Show hosts name in quotas

Post by Tareq »

No one answer :roll:
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Show hosts name in quotas

Post by Lantis »

I'm sure there is a built in function if you check out the source code

Alternatively, write your own.
My approach would be to parse the ip's against the /etc/hosts file.

Have fun.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

nworbnhoj
Posts: 916
Joined: Mon Jul 21, 2014 10:08 am
Location: Australia
Contact:

Re: Show hosts name in quotas

Post by nworbnhoj »

This will probably seem a bit redundant once the known devices function is merged
Can you help someone else get Gargoyle up and running?
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E

Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Re: Show hosts name in quotas

Post by Tareq »

Sorry, and thank you all.
I don't know any thing about this programming language.

Just i ask if one programmers did that. I think that code must be in quota.js file.
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Show hostnames in quotas.sh

Post by Tareq »

Hi there,

I need to show every hostname beside of ip address in "quotas.sh".

Please help me to write script doing that in quotas.sh

Image
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Show hosts name in quotas

Post by Lantis »

Merged with your original request for this 3 years ago.
And my answer still remains the same :)
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Re: Show hosts name in quotas

Post by Tareq »

Lantis wrote:Merged with your original request for this 3 years ago.
And my answer still remains the same :)
But please I need the exact code that doing what I want, and where should put it.
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Re: Show hosts name in quotas

Post by Tareq »

Lantis wrote:Merged with your original request for this 3 years ago.
And my answer still remains the same :)

How you got what i said before 3 years?, i don't remember. :D
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Show hosts name in quotas

Post by Lantis »

I have a very good memory.

You said you were a vb.net programmer, but it looks like you haven't bothered to read the source code to even try? Why should i be inclined to help you?

The way i would approach it, is i would look at a page that already does this, and figure out how it does it.

An example would be the hosts.sh page.
Looking at the source, an iptohostname[] array is formed.
Looking at where that comes from, it is produced by gargoyle_header_footer with a particular option.
So now you know how to get the iptohostname array to come up in quotas.sh.
Now you just need to write some code to replace the IP addresses with the hostnames, which should be very simple as the IP addresses are the keys to the array.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply