Knowledge Base Navigation

Articles: 51 Categories: 8

KB Article: Nuke version and PHPbb version

Article:Nuke version and PHPbb version     Popular
Submitted By:Taut
Date Added:08-09-2005 5:48:35

How to find out what version Nuke and phpbb you have running on your site

This script will give you your PHP-Nuke version and your phpBB forums version. Script created and approved for reprint by Chatserv. [ Register or login to view links on this board. ]

Save as versions.php and upload to your nukes root directory, then call it from your browser: [ Register or login to view links on this board. ]

global $db, $prefix, $admin, $sitename;
if (is_admin($admin)) {
$sql = "SELECT config_value
    FROM ".$prefix."_bbconfig
    WHERE config_name = 'version'";
if (!($result = $db->sql_query($sql)))
    die("Couldn't obtain forum version info");

$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);

$sql2 = "SELECT Version_Num
    FROM ".$prefix."_config";
if (!($result = $db->sql_query($sql2)))
    die("Couldn't obtain nuke version info");

$result2 = $db->sql_query($sql2);
$row2 = $db->sql_fetchrow($result2);
title("$sitename: Version Check");
                echo "<center>Your Current <b>BBtoNuke</b> version is <b>2" . $row['config_value'] . "</b> And your <b>PHP-Nuke</b> version is <b>" . $row2['Version_Num'] . "</b></center>";
} else {
    echo "Access Denied";


Thanks to Echo for the submission and to Chatserv for his permission to reprint.

Current rating: 8.11 by 179 users
Please take one second and rate this article...

Not a Chance 12345678910 Absolutely

Please register or sign-in to post comments.

Jump to a selected article...