PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   This topic is locked: you cannot edit posts or make replies.
Author Message
webservant
Worker
Worker


Joined: Feb 26, 2006
Posts: 206
Location: Springfield, MA

PostPosted: Wed Nov 26, 2008 7:39 am Reply with quote Back to top

I had this issue with VersionNum.php. Here is the fixed code for /admin/modules/VersionNum.php

Code:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
$result = $db->sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'");
list($radminsuper) = $db->sql_fetchrow($result);
if ($radminsuper==1) {
   function MiscAdmin($action) {
       global $admin, $bgcolor2, $prefix, $db;
       include ("header.php");
       GraphicAdmin();
       OpenTable();
       echo "<center><font class=\"title\"><b>"."Miscellaneous Admin Stuff"."</b></font></center>";
       CloseTable();
       echo "<br>";
       OpenTable();
       if ($action=="VersionNumber") {
         echo ""
         ."<table border=\"1\" width=\"100%\" align=\"center\"><tr>"
         ."<td bgcolor=\"$bgcolor2\" align=\"center\"><b>"."Version Number"."</b></td></tr><tr>";
          $result = $db->sql_query("select Version_Num from ".$prefix."_config");
          while(list($Version_Num) = $db->sql_fetchrow($result)) {
            echo "<td align=\"center\">$Version_Num</td></tr></table>";
         }
      }
       CloseTable();
       include("footer.php");
   }

   switch($op) {
       case "VersionNum":
       MiscAdmin("VersionNumber");
       break;
   }

}
else {
    echo "Access Denied";
}

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


Joined: Aug 27, 2002
Posts: 16986
Location: Kansas

PostPosted: Wed Nov 26, 2008 11:26 am Reply with quote Back to top

Thanks!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
Post new topic   This topic is locked: you cannot edit posts or make replies.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum