Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.4
Author Message
darksied
Hangin' Around



Joined: Jan 27, 2004
Posts: 25
Location: New Jersey

PostPosted: Thu Aug 05, 2004 12:35 pm Reply with quote

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 
View user's profile Send private message Visit poster's website AIM Address
GeekyGuy
Client



Joined: Jun 03, 2004
Posts: 302
Location: Huber Heights Ohio

PostPosted: Thu Aug 05, 2004 1:19 pm Reply with quote

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 
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
chatserv
Member Emeritus



Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

PostPosted: Thu Aug 05, 2004 1:41 pm Reply with quote

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";
}

?>
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Aug 05, 2004 1:56 pm Reply with quote

Here is an admin addon I just threw together http://www.ravenphpscripts.com/modules.php?name=Downloads&d_op=viewdownloaddetails&lid=104
 
View user's profile Send private message
GeekyGuy







PostPosted: Thu Aug 05, 2004 1:57 pm Reply with quote

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







PostPosted: Thu Aug 05, 2004 2:21 pm Reply with quote

Yes, you were correct.
 
darksied







PostPosted: Thu Aug 05, 2004 2:57 pm Reply with quote

Thanks you guys are great
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.4

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©