Version of php nuke?

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
Profane
Compulsive poster
Compulsive poster
Posts: 71
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Feb 18, 2005 8:26 pm
Location: Washington - Bonney Lake
Contact:

Version of php nuke?

Post by Profane »

How do I figure out what version of php-nuke the control panel auto installed?
User avatar
Nick|NFo
Former staff
Former staff
Posts: 2252
Joined: Sun Mar 30, 2003 1:56 pm
Location: 127.0.0.1

Post by Nick|NFo »

Copy this into a file using notepad/wordpad and save it as nukeversion.php, make sure its not nukeversion.php.txt ;)

Code: Select all

<?php
include("mainfile.php");
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);
include("header.php");
title("$sitename: Version Check");
OpenTable();
                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>";
CloseTable();
include("footer.php");
} else {
    echo "Access Denied";
}

?>
Upload the nukeversion.php to your main directory, where mainfile.php is. Then go log into admin, http://subdomain.nuclearfallout.net/admin.php, then change the admin.php part of the url to nukeversion.php like this http://subdomain.nuclearfallout.net/nukeversion.php, and hit enter to load the php script.

It should say something like:
Your Current BBtoNuke version is 2.0.14 And your PHP-Nuke version is 7.6
-Nick
Profane
Compulsive poster
Compulsive poster
Posts: 71
Joined: Fri Feb 18, 2005 8:26 pm
Location: Washington - Bonney Lake
Contact:

Re

Post by Profane »

Thank you.
Post Reply