Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
cynical
Hangin' Around


Joined: Oct 17, 2006
Posts: 27

PostPosted: Fri Nov 10, 2006 5:01 pm Reply with quote

Ok, where can I go to see exactly what version of phpnuke I am using?
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Fri Nov 10, 2006 7:38 pm Reply with quote

Save this as version.php, upload it to where mainfile.php is and point your browser to it:
Code:


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

?>
 
View user's profile Send private message
cynical
PostPosted: Fri Nov 10, 2006 7:44 pm Reply with quote

Thanks alot, it works Wink
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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 ©