PDA

View Full Version : Administrative and Maintenance Tools - Webmaster Tools (WMT4vB)


toonysnn
08-16-2009, 10:00 PM
Webmaster Tools

These tools are for administrators to check their pagerank, whois domains, and looking up IP addresses. This may all be done easily, but if you're in the Admin CP, it's that much handier. Brought to you by vBWMS.com (http://www.vBWMS.com/forum/)

I want to make this clear, this modification will (at some point) request information from a remote server. This is not a bug, this is not an exploit. This is a simple data request, basically version checking (when requested) and all the functionality on the mod.
I'll find a way to eliminate this in the future, but this is a beta release. Probably will eliminate the need for it (except for version checking) soon.

Features
Lookup IP
Whois Domain
Check PageRanks
[Product] Check for WMT Updates
To come:
Server Stats (Implemented)
Process List
Load Time Averages (On Hold)
IP Lookup (Implemented)
IP Location (On Hold) Server Sided

This modifications relies on three different methods of checking via WHOIS and IP Lookup. One method for PageRank.
For Whois/IP Lookup, you'll either need php's shell_exec(), system(), or fopen() available.
For PageRanks, you'll be required to have php's fopen() available, otherwise you cannot check the pagerank. (Unless visiting manually)
This is a *nix modification only. Windows based systems will NOT work with this modification.

Please click Install if you install this modification. :)

Version History
1.0.1
Removed bug where, even if having shell_exec or system but not fopen() (whois / ip lookup)
Added functionality that removes options from the main stats page should the functions not be available.
Added Server Statistics / Status
1.0.0
Initial ReleaseScreenshots
http://vbwms.com/screenshots/wmtools/

Piratos
08-17-2009, 09:25 AM
Hum nice and happy to be the 1st one who say that (:

Regards!

elenh
08-17-2009, 09:31 AM
Thanks a llot! INSTALLED

apiasto
08-17-2009, 10:34 AM
sound nice n i installed it and now i get this fatal error messege when i click on web tools,how can i fix this?thanks
Call to undefined function stri_replace() in /home/********/*****/admincp/whtools.php on line 15

Ljusya
08-17-2009, 10:40 AM
after install i`ve message
Fatal error: Call to undefined function stri_replace() in my/path/odmincp/whtools.php on line 15

toonysnn
08-17-2009, 12:28 PM
oh woops. I was doing some testing and trying to mess around with settings. One moment and I'll have that removed.

toonysnn
08-17-2009, 12:30 PM
Okay anyone receiving the stri_replace error, it should be fixed now. :)

apiasto
08-17-2009, 03:18 PM
ok great its working thanks.by the way does it get page rank info and is it possible to add 1 more feature to this like to find ip location.thanks

saadessa
08-17-2009, 03:28 PM
installed its working fine without any error thank you for this greate hack

toonysnn
08-17-2009, 03:29 PM
Sure, I'll add IP Location in the next release. :)

apiasto
08-17-2009, 04:26 PM
Sure, I'll add IP Location in the next release. :)

that will be cherry on top thnx :D

pein87
08-17-2009, 05:23 PM
nice to see you got it all working good job.

toonysnn
08-17-2009, 05:39 PM
Thanks. I had everything done, I just needed to test it a little bit and get more features implemented. :)

toonysnn
08-18-2009, 05:50 AM
Upgraded to 1.0.1. Added a feature or two. :)

Floris
08-18-2009, 11:23 AM
Small typo line 120 of the admincp file
print_cp_message("None of the methods attempted are availble. Please contact your host about enabling system, fopen, or shell_exec.");

availble = available

Scovic
08-18-2009, 12:05 PM
Nice toonysnn,
Installed and working fine.

toonysnn
08-18-2009, 01:32 PM
Thanks Floris for reporting that. I've been coding more late at night, typos are unavoidable. Lol.

bleros
08-19-2009, 01:48 AM
Whois a domain / Lookup IP

Warning: shell_exec() [function.shell-exec]: Cannot execute using backquotes in Safe Mode in [path]/admincp/whtools.php on line 105

Warning: shell_exec() [function.shell-exec]: Cannot execute using backquotes in Safe Mode in [path]/admincp/whtools.php on line 122

Server Statistics / Status

$$$$$$$ RAM INFO $$$$$$$
$ cat /proc/meminfo

Warning: shell_exec() [function.shell-exec]: Cannot execute using backquotes in Safe Mode in [path]/admincp/whtools.php on line 70

$$$$$$$ CPU INFO $$$$$$$
$ cat /proc/cpuinfo

Warning: shell_exec() [function.shell-exec]: Cannot execute using backquotes in Safe Mode in [path]/admincp/whtools.php on line 73

$$$$$$$ DISKINFO $$$$$$$
$ df -aH

Warning: shell_exec() [function.shell-exec]: Cannot execute using backquotes in Safe Mode in [path]/admincp/whtools.php on line 76

$$$$$$$ LOADAVGS $$$$$$$
$ cat /proc/loadavg

Warning: shell_exec() [function.shell-exec]: Cannot execute using backquotes in Safe Mode in [path]/admincp/whtools.php on line 79

Brandon Sheley
08-19-2009, 02:08 AM
can you upload a screenshot?
is the something that only admin can see, if all members

Faizan
08-19-2009, 02:29 AM
Nice Hack

toonysnn
08-19-2009, 02:35 AM
Whois a domain / Lookup IP

[snip]
Server Statistics / Status
[snip]

I did not expect users to run this in safe mode, I will have to add safemode functionality in order to get this working right. Thanks for reporting it.

can you upload a screenshot?
is the something that only admin can see, if all members
Currently it's only admincp. I will have the availability of the public viewing this script though, when this goes completely stable (no bugs, all features that should be in it is there, etc.)

For screenshots: http://vbwms.com/screenshots/wmtools/