The Arcive of vBulletin Modifications Site. |
|
Show PHP & MySQL Version Info in Admin Panel Details »»
|
|||||||||||||||||||||||||||
|
Show PHP & MySQL Version Info in Admin Panel
Developer Last Online: Jul 2020
One of my admins wanted a way to keep track of what versions of software we run on our server are at, so I threw together this little hack.
It's really very simple, and only requires one code hack in admin/index.php. In admin/index.php find: Code:
<tr class="secondalt"> <td>Useful Links</td> <td><select onchange="jumpto(this.options[this.selectedIndex].value)"> <option>» Useful Links «</option> <option value="http://www.vbulletin.com/">vBulletin Home Page</option> <option value="http://www.vbulletin.com/members/">vBulletin Members' Area</option> <option value="http://www.vbulletin.com/forum/">vBulletin Support Forums</option> <option value="http://www.vbulletin.com/manual/">vBulletin Online Manual</option> <option value="http://www.php.net/">PHP Home Page</option> <option value="http://www.php.net/manual/">PHP Online Manual</option> <option value="http://www.mysql.com/">MySQL Home Page</option> <option value="http://www.mysql.com/documentation/">MySQL Documentation</option> </select></td> </tr> </form> Code:
<tr class="firstalt"> <td>PHP Version</td> <td><?php echo 'v' . phpversion(); ?></td> </tr> <tr class="secondalt"> <td>MySQL Version</td> <td><?php echo 'v' . mysql_get_server_info(); ?></td> </tr> Works with all versions of vBulletin but requires PHP v4.0.5 to display the MySQL server info. If you have that version (which you shouldn't, get 4.1.2 if you can) then just remove the second section of the code. PHP version information will load on all copies of PHP. Disclamer, if you break it, it's not my fault. Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
You can already access this info from /admin/index.php?s=&action=phpinfo
|
|
#3
|
||||
|
||||
|
firefly.. do you think there should be a disclaimer before you post a hack?
|
|
#4
|
||||
|
||||
|
The disclamer was a joke.
|
|
#5
|
||||
|
||||
|
I've to admin I like it!
![]() So you can see at the first glance in the CP if your hoster has updated any of both versions, i.e. php or mysql. Thx, -Tom |
|
#6
|
||||
|
||||
|
nice nice, since i am the admin, and got remote access to our server, i can know as well if any one was trying to mess with MY forum!
and decapitate em!and if i do break it, i will be breaking someone ![]() thnx m8! |
|
#7
|
|||
|
|||
|
very good idea. quick, easy, and useful.
Thank you. |
![]() |
|
|