Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Admin CP UserTools and ServerStats Details »»
Admin CP UserTools and ServerStats
Version: 1.00, by TECK TECK is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-05-2002 Last Update: Never Installs: 98
 
No support by the author.

This hack will replace your server average loads with a more detailed table schema.
The following options are available:
- quick user finder (placed at the top)
- useful links (reorganised)
- members online (now viewable even if your sever is not Linux)
- server type (with php and mysql version)
- server uptime
- host name
- host IP address
- your IP address (port number also)
- load averages
- database (name) usage (data and index)
- attachment usage (if enabled)
- custom avatar usage (if enabled)
- users awaiting moderation
- attachments awaiting moderation
- new users today
- registered visitors today
- new threads today
- new posts today

[high]CREDITS:[/high] Freddie Bingham
Integration of Admin Quick Stats options.
I decided to integrate Freddie's hack because I anticipated that several users will ask for it.

ESTIMATED INSTALL TIME: 2 minutes
REQUESTED BY: Nobody
TESTED IN VERSION: 2.2.7

[high]NOTE:[/high] If your server does not support @exec('uptime'), the following stats will be disabled:
- server uptime
- host name
- host IP address (only)
- load averages

The way it was written the code before, you couldn't see any 'members online' stats, if you didnt run(host) a linux box. I enabled it so it's viewable all the time.
Also, notice the way it changes the plural of words, based on the value. for example, if the 'hour' value is higher then 1, it will show as 'hours'. This is available for all words that change, depending on the number variable.

NOTE: If you installed PPN's Attachments as Files, read this post.

HACK UPDATES
Version 1.1
------------------------------------
Changes:
- added 'Your IP Address' option.
If you installed the hack, go here to view the changes.



To download the latest version of this hack, click on the link below:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 02-07-2003, 07:23 PM
Mutt's Avatar
Mutt Mutt is offline
 
Join Date: Nov 2001
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Intex
How do you configure your server to support the uptime features? I'm running Apache.
my new server won't read uptime either. I'd love to get it working again, but not sure how
Reply With Quote
  #73  
Old 02-07-2003, 08:36 PM
wooolF[RM]'s Avatar
wooolF[RM] wooolF[RM] is offline
 
Join Date: Jan 2002
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

]
Quote:
Originally posted by Mutt


my new server won't read uptime either. I'd love to get it working again, but not sure how
the problem is in user rights... look here :

Quote:
Warning: SAFE MODE Restriction in effect. The script whose uid is 1740 is not allowed to access /proc/uptime owned by uid 0 in /home/www/web1/html/forum/admin/index.php on line 158

Warning: fopen("/proc/uptime", "r") - Success in /home/www/web1/html/forum/admin/index.php on line 158

Warning: fgets(): supplied argument is not a valid File-Handle resource in /home/www/web1/html/forum/admin/index.php on line 159

Warning: fclose(): supplied argument is not a valid File-Handle resource in /home/www/web1/html/forum/admin/index.php on line 160
Server Uptime:
0 days, 0 hours and 0 minutes

Load Averages:
: :


Warning: SAFE MODE Restriction in effect. The script whose uid is 1740 is not allowed to access /proc/sys/kernel/hostname owned by uid 0 in /home/www/web1/html/forum/admin/index.php on line 140

Warning: fopen("/proc/sys/kernel/hostname", "r") - Success in /home/www/web1/html/forum/admin/index.php on line 140
don't look at the number of lines and try to compare to yours... the main idea is to chmod + chown /proc/sys/kernel/hostname to the same uid as your webuser (vbb)
Reply With Quote
  #74  
Old 02-07-2003, 08:48 PM
wooolF[RM]'s Avatar
wooolF[RM] wooolF[RM] is offline
 
Join Date: Jan 2002
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

actually I can say it in other words :

u must :

a) run index.php as root and then u'll get rights to run uptime commands (which is owned by root)

OR

b) make uptime command owned by your webuser (same uid as vbb user)

OR (dunno if possible)

c) let uptime command be run as root and as webuser
Reply With Quote
  #75  
Old 02-09-2003, 03:24 AM
BigCheeze BigCheeze is offline
 
Join Date: Oct 2002
Location: Lost in Colorado
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice!

/me installs!
Reply With Quote
  #76  
Old 02-17-2003, 10:02 PM
Les Shaw Les Shaw is offline
 
Join Date: Dec 2001
Location: Oshawa, Ontario, Canada
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Love the install , and it looks great , I get this though ?

Warning: fopen("/proc/uptime", "r") - No such file or directory in /home/www/forums/admin/index.php on line 217

Warning: Supplied argument is not a valid File-Handle resource in /home/www/forums/admin/index.php on line 218

Warning: Supplied argument is not a valid File-Handle resource in /home/www/forums/admin/index.php on line 219
Server Uptime:
0 days, 0 hours and 0 minutes

Load Averages:
1.44 : 1.45 : 1.39


Warning: fopen("/proc/sys/kernel/hostname", "r") - No such file or directory in /home/www/forums/admin/index.php on line 199


Any help ?
Reply With Quote
  #77  
Old 02-23-2003, 04:25 AM
WoodiE WoodiE is offline
 
Join Date: May 2002
Posts: 317
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works like a charm on 2.2.9

Thanks TECK!

-WoodiE
Reply With Quote
  #78  
Old 02-23-2003, 06:48 AM
alamuae alamuae is offline
 
Join Date: Sep 2002
Location: uae in alain
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works 2.3.0

Thanks TECK!
Reply With Quote
  #79  
Old 03-06-2003, 08:08 PM
Dan's Avatar
Dan Dan is offline
 
Join Date: Dec 2002
Location: Titusville, Florida
Posts: 1,787
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me clicks install

Works excellent!

Makes my acp a lot better.
Reply With Quote
  #80  
Old 04-26-2003, 02:11 AM
Stud_Muffin Stud_Muffin is offline
 
Join Date: Sep 2002
Location: UK
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed over here on 2.3.0 :smoke:
Reply With Quote
  #81  
Old 04-27-2003, 02:36 AM
SharronH SharronH is offline
 
Join Date: Mar 2003
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm wondering if this is just me or is the admin home page is taking very long to load? The server is on a dedicated server btw.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:33 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08374 seconds
  • Memory Usage 2,305KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete