Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Server Info in Admin Control Panel Details »»
Server Info in Admin Control Panel
Version: 1.00, by Darren Lewis Darren Lewis is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

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

This hack is designed to create an option in your vBulletin admin control panel to display information about the server you are hosting your vBulletin on. I've tested this on V2.2.5, but it should also work on other versions.

Information displayed:-

Server Software Type & Version
Server IP Address
Server Admin email address

PHP version running on server

MySQL Server & Client versions running on server
MySQL Host and Protocol information.

Your current IP address.

Option to display detailed information about PHP running on your server.

Full instructions in the attached zip file.

NEW VERSION 1.10

The new version is now in the new zip file attachment
To upgrade, overwrite the serverinfo.php file with the one in this new zip package.

V1.10 28 May 2002
Added info about MySQL database size (taken from Freddie's Quick Stats Hack at http://www.vbulletin.org/forum/showt...threadid=37193).

I haven't added any other information from Freddie's hack as it's not really server info.

Show Your Support

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

Comments
  #12  
Old 05-28-2002, 01:33 PM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

JohnWarwick I can't understand why you're getting error messages. I tested this hack locally on my own computer (Windows and PHP 4.2.1) and also on my website (Linux and PHP 4.1.2). What system are you running? I haven't tried it with IIS.

Slynderdale I like the way you've done things there. I haven't looked at Freddie's hack, but will do so.
Reply With Quote
  #13  
Old 05-28-2002, 01:37 PM
KarateKid's Avatar
KarateKid KarateKid is offline
 
Join Date: Oct 2001
Location: Sydney
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Slynderdale: Could you combine your addons with the hack here and bring it out together?
Reply With Quote
  #14  
Old 05-28-2002, 01:43 PM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by NerdNations
why not have this on the main page when you enter ACP
To do this, open up your admin/index.php in your text editor.

Find this code (approx line 163)
PHP Code:
        <option value="http://www.mysql.com/documentation/">MySQL Documentation</option>
    </select></td>
</tr>
</form>
</table>
</td></tr></table>
</form>
<?php
Add this code below it (taken from the serverinfo.php file)
PHP Code:
// Server Info
$phpversion phpversion(); 
$mysqlhost mysql_get_host_info();
$mysqlproto mysql_get_proto_info();
$mysqlserver mysql_get_server_info();
$mysqlclient mysql_get_client_info();
doformheader("","");
maketableheader("Server Information");
makelabelcode("<b>Server Software</b>","$SERVER_SOFTWARE");
makelabelcode("<b>Server IP address</b>","$SERVER_ADDR");
makelabelcode("<b>Server Admin Email</b>","<a href=\"mailto:$SERVER_ADMIN\">$SERVER_ADMIN</a>");
makelabelcode("<b>Server Protocol</b>","$SERVER_PROTOCOL");
makelabelcode("<b>Server Port</b>","$SERVER_PORT");
makelabelcode("<b>Server Signature</b>","$SERVER_SIGNATURE");
maketableheader("PHP Information");
makelabelcode("<a href=\"http://www.php.net\" target=\"_blank\"><b>PHP Homepage</b></a>");
makelabelcode("<b>PHP Version</b>","$phpversion");
maketableheader("MySQL Information"""02);
makelabelcode("<a href=\"http://www.mysql.com\" target=\"_blank\"><b>MySQL Homepage</b></a>");
makelabelcode("<b>MySQL Host</b>","$mysqlhost");
makelabelcode("<b>MySQL Protocol</b>","$mysqlproto");
makelabelcode("<b>MySQL Server Version</b>","$mysqlserver");
makelabelcode("<b>MySQL Client Version</b>","$mysqlclient");
maketableheader("Other Information");
makelabelcode("<b>Your Current IP address</b>","$REMOTE_ADDR");
dotablefooter(); 
Reply With Quote
  #15  
Old 05-28-2002, 03:33 PM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've updated the zip file with some code from Freddie's Quick Stats hack so that the page also shows info about the size of your MySQL database.

The other info wasn't really related specifically to server details so I haven't included it. I can post some instructions of how to if people want.

I haven't formally asked Freddie if this is OK so I hope that he doesn't mind
Reply With Quote
  #16  
Old 05-28-2002, 06:28 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice...

Satan
Reply With Quote
  #17  
Old 06-03-2002, 12:32 AM
lohman lohman is offline
 
Join Date: Mar 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very Convenient, thank you
Reply With Quote
  #18  
Old 06-03-2002, 02:36 AM
centris's Avatar
centris centris is offline
 
Join Date: Nov 2001
Location: Scotland
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can see where a few have had problems LOL, this is the code you insert;

// *************************************************
makenavoption("Overview","serverinfo.php?action=de tail","|");
makenavoption("PHP Info","serverinfo.php?action=phpinfo");
makenavselect("Server Information","<hr>");


If you dont read it properly this is probably what you inserted;

// *************************************************
makenavoption("Overview","serverinfo.php?action=de tail","|");
makenavoption("PHP Info","serverinfo.php?action=phpinfo");
makenavselect("Server Information","<hr>");

So that it looks like this:-

// *************************************************
makenavoption("Overview","serverinfo.php?action=de tail","|");
makenavoption("PHP Info","serverinfo.php?action=phpinfo");
makenavselect("Server Information","<hr>");
// *************************************************
makenavoption("vBulletin Options","options.php?t=0","<br>");
if($debug==1) {
makenavoption("Edit Settings","setting.php?action=modify","<br>");
makenavoption("Add Setting","setting.php?action=add","<br>");
makenavoption("Add Setting Group","setting.php?action=addgroup");
}

Also the serverinfo.php file goes into the admin folder also.
Reply With Quote
  #19  
Old 06-03-2002, 12:57 PM
eytan eytan is offline
 
Join Date: Feb 2002
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I seem to be having some problems with it - I am using 2.2.1 - is this why?....

Thanks

Eytan
Reply With Quote
  #20  
Old 06-03-2002, 06:46 PM
Darren Lewis Darren Lewis is offline
 
Join Date: Mar 2002
Location: England
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by eytan
I seem to be having some problems with it - I am using 2.2.1 - is this why?....
What sort of problems are you having? I haven't been able to try it with earlier versions of vBulletin (I only bought vBulletinat V2.2.4). Do you know what web server software you have? I've only been able to try it on Apache (incl V2) but not on IIS.

Darren.
Reply With Quote
  #21  
Old 06-11-2002, 06:17 AM
Stretchr's Avatar
Stretchr Stretchr is offline
 
Join Date: Dec 2001
Location: Georgia, USA
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Darren! This is an excellent hack for me because I love to have so much functionality in a single place. Makes for a lot less work and, besides, I already have 20 or so windows open at once!
Reply With Quote
Reply


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 10:51 PM.


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.09560 seconds
  • Memory Usage 2,323KB
  • 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
  • (2)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
  • (2)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