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
  #62  
Old 01-02-2003, 04:24 PM
drumsy's Avatar
drumsy drumsy is offline
 
Join Date: Nov 2001
Location: Charlotte, NC
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on 2.2.8
Reply With Quote
  #63  
Old 01-02-2003, 06:18 PM
VeoMorphine VeoMorphine is offline
 
Join Date: Nov 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by TECK
VeoMorphine, your site promotes illegal activities, hacking, cracking, phreaking, serials, etc.
You are not allowed to use my hacks on a site like yours.
I hope you realize you infringe the Jelsoft agreement, when you use their software.

I'm going to report you for illegal activity:
http://www.diablo3k.net/forums/
Report me:
Http://www.diablo3k.net/forums/ USED to be on my licence. I have it swiched over to Http://www.wowforge.com now.

http://www.wowforge.com/forums/membe...tinfo&userid=1 Noticce the user id. and then try to find me on d3k.

And please do report them. They have been running a copy of my vbulletin that i demanded they take down when i left.(i left b/c they simply kicked me out..)
Reply With Quote
  #64  
Old 01-02-2003, 06:25 PM
VeoMorphine VeoMorphine is offline
 
Join Date: Nov 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh ya Take a look at this :P
http://www.hackers.com/________.________/

Wonder why vb hasnt got them yet.

But yes please. I DO want d3k taken down. They are using a copy of the board that i downloaded and im unconftrable with that.
Reply With Quote
  #65  
Old 01-03-2003, 01:29 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by VeoMorphine
Report me:
Http://www.diablo3k.net/forums/ USED to be on my licence. I have it swiched over to Http://www.wowforge.com now.

http://www.wowforge.com/forums/membe...tinfo&userid=1 Noticce the user id. and then try to find me on d3k.

And please do report them. They have been running a copy of my vbulletin that i demanded they take down when i left.(i left b/c they simply kicked me out..)
Aha, you should contact vBulletin team for this matter. You could have problems because of this...
Cheers.
Reply With Quote
  #66  
Old 01-22-2003, 10:28 AM
Dark Blaze's Avatar
Dark Blaze Dark Blaze is offline
 
Join Date: Nov 2001
Location: World Wide Web
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent hack, make no mistake

Well done TECK
Reply With Quote
  #67  
Old 01-27-2003, 01:57 PM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool Hack!!
Thanks Teck...

[high]* Kars10 klicks install![/high]
Reply With Quote
  #68  
Old 02-02-2003, 03:31 PM
Stu's Avatar
Stu Stu is offline
 
Join Date: Aug 2002
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Teck,
Excellent work.
Installed and running great.

is it possible to drag Bandwidth useage the same as you do Server uptime, or is that completely different?
Reply With Quote
  #69  
Old 02-02-2003, 04:13 PM
Intex Intex is offline
 
Join Date: Apr 2002
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you configure your server to support the uptime features? I'm running Apache.
Reply With Quote
  #70  
Old 02-02-2003, 06:28 PM
Logik's Avatar
Logik Logik is offline
 
Join Date: Nov 2002
Location: Tx
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a pretty nice hack.. I like it
Reply With Quote
  #71  
Old 02-07-2003, 07:22 PM
Mutt's Avatar
Mutt Mutt is offline
 
Join Date: Nov 2001
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Earlier, I posted directions for getting it to work with attachments as files. I've updated the function so it's a little nicer and handles errors better. Now if you have the dir path set wrong, safe mode is on, or you don't have permission for some reason, you'll get "NA" instead of a nasty looking error. Plus It now tells you how many files there are instead of just total file size. I use this to read server dirs, custom avs as files, attachments as files, profile pics, and sig pics. If you already installed this before, just replace the old dizsize function with this one

UPDATED : modified it to work with attachments af files

replace this
PHP Code:
$attach $DB_site->query_first("SELECT SUM(LENGTH(filedata)) AS size FROM attachment"); 
with this
PHP Code:
function dirsize($path) {
  
$totalsize 0;
  
$totalcount 0;
  if (
$handle = @opendir($path)) {
    while (
false !== ($file readdir($handle))) {
      
$nextpath $path '/' $file;
      if (
$file != '.' && $file != '..' && !is_link ($nextpath)) {
        if (
is_dir ($nextpath)) {
          
$result dirsize($nextpath);
          
$totalsize += $result[size];
          
$totalcount += $result[count];
        } elseif (
is_file ($nextpath)) {
          
$totalsize += filesize ($nextpath);
          
$totalcount++;
        }
      }
    }
    
closedir ($handle);
    
$totalsize sprintf('%.2f',$totalsize/1048576);
    
$mgs_size $totalcount.' files : '.$totalsize.' MB';
  } else {
    
$mgs_size "<em><font color=#FF0000>NA</font></em>";
  }
  return 
$mgs_size;

then replace this
PHP Code:
makelabelcode('Attachment Usage:'kbtomb($attach['size'])); 
with this
PHP Code:
makelabelcode('Attachment Usage:'dirsize($attachpath)); 
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 04:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05181 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_php
  • (2)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
  • (4)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_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