vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Server Info in Admin Control Panel (https://vborg.vbsupport.ru/showthread.php?t=39110)

Darren Lewis 05-28-2002 01:33 PM

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.

KarateKid 05-28-2002 01:37 PM

@Slynderdale: Could you combine your addons with the hack here and bring it out together? :)

Darren Lewis 05-28-2002 01:43 PM

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(); 


Darren Lewis 05-28-2002 03:33 PM

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 :)

Chris M 05-28-2002 06:28 PM

Nice...

Satan

lohman 06-03-2002 12:32 AM

Very Convenient, thank you

centris 06-03-2002 02:36 AM

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.

eytan 06-03-2002 12:57 PM

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

Thanks

Eytan

Darren Lewis 06-03-2002 06:46 PM

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.

Stretchr 06-11-2002 06:17 AM

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! :D


All times are GMT. The time now is 06:59 AM.

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.01489 seconds
  • Memory Usage 1,757KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete