Version of php nuke?
-
- 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?
How do I figure out what version of php-nuke the control panel auto installed?
Copy this into a file using notepad/wordpad and save it as nukeversion.php, make sure its not nukeversion.php.txt 
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:

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";
}
?>
It should say something like:
Your Current BBtoNuke version is 2.0.14 And your PHP-Nuke version is 7.6
-Nick