PDA

View Full Version : Global phpinfo with admin cp on/off switch (vb3 backport)


Brad
07-16-2003, 10:00 PM
Hack: Global phpinfo
By: Anime-loo
Hack info:

With this installed there is a new option avaiable in the admin cp, This option will allow you to turn global phpinfo on or off.

If on any vbulletin powered file called like this:

filename.php?action=phpinfo

will output your servers phpinfo. If turned off a standard error is displayed.

Changes to vbulletin:

Files to edit: 1 (global.php)
Templates to edit: 0
Templates to add: 1 (error_phpinfo)
Queries to run: 1 (add's new cp option).

This hack was inspired by the new phpinfo options in vBulletin 3 beta, works the same way aswell.

alkatraz
07-17-2003, 12:56 AM
whats "phpinfo"? I'm confused

Legendary Kid
07-17-2003, 04:15 AM
^^ I'm with stupid....

Erwin
07-17-2003, 04:27 AM
Make a new text file with the following contents:


<?php
phpinfo();
?>


Save it as phpinfo.php

Upload it to your forum directory, and run it. It is built into PHP to show you important information regarding your PHP compilation, and PHP modules installed.

vB3 has it built-in, and anime-loo is just doing a backport. :)

Logician
07-17-2003, 06:42 AM
This already exists in VB2 too. ;)

You can make it run by appending action=phpinfo into file admin/index.php

SharronH
07-18-2003, 02:17 AM
tru, but now you can do it from any page o_O

Sephiroth 9999
07-18-2003, 02:34 PM
Nice hack! Soon vB2 will be practically the same as vB3 with all these vB3 - vB2 hacks. :rolleyes: