Author |
Message |
darksied
Hangin' Around

Joined: Jan 27, 2004
Posts: 25
Location: New Jersey
|
Posted:
Thu Aug 05, 2004 12:35 pm |
|
since the ability to check version numbers pertaining to PHPNuke has been removed from the stastics module how do we now check and verify what we have.
Is there a hack or module that would only let admins know what there release version is |
_________________ xXx Without C-H-A-O-S There Would Be No Order In Nature And No Peace In The Universe! xXx |
|
|
 |
GeekyGuy
Client

Joined: Jun 03, 2004
Posts: 302
Location: Huber Heights Ohio
|
Posted:
Thu Aug 05, 2004 1:19 pm |
|
darksied,
I am not sure about a hack or a module, but the version number is listed in the nuke_config table of the database. If I remember right, it is the LAST entry in this section. Of course this would require using phpMyAdmin and examining the database.
Maybe Raven or the gang knows of a module or something that would pull this version number from the database. |
_________________ "The Daytona 500 is ours! We won it, we won it, we won it!", Dale Earnhardt, February 15th, 1998, Daytona 500 |
|
 |
 |
chatserv
Member Emeritus

Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico
|
Posted:
Thu Aug 05, 2004 1:41 pm |
|
Save the following to a file, name it something like version.php and upload it to the same place where mainfile.php is, just point your browser to it.
Code:<?php
include("mainfile.php");
global $db, $prefix, $admin;
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");
OpenTable();
echo "<center><b>Version Check</b></center>";
CloseTable();
echo "<br><br>";
OpenTable2();
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>";
CloseTable2();
include("footer.php");
} else {
echo "Access Denied";
}
?>
|
|
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Thu Aug 05, 2004 1:56 pm |
|
|
|
 |
GeekyGuy

|
Posted:
Thu Aug 05, 2004 1:57 pm |
|
chatserv,
Was I correct about the location? I am at work, and have no access to my cPanel, so I was going from memory (which isn't that good) |
|
|
|
 |
chatserv

|
Posted:
Thu Aug 05, 2004 2:21 pm |
|
|
|
 |
darksied

|
Posted:
Thu Aug 05, 2004 2:57 pm |
|
Thanks you guys are great |
|
|
|
 |
|