psychiccyberfreak 0 Report post Posted December 17, 2005 I've been getting pages that don't load on my site in PHP. Here is the actuall source: <?php /********************************************************/ /* NSN News */ /* By: NukeScripts Network (webmaster@nukescripts.net) */ /* http://www.nukescripts.net/ */ /* Copyright © 2000-2005 by NukeScripts Network */ /********************************************************/ require_once("mainfile.php"); global $admin; if (is_admin($admin)) { if(!is_array($admin)) { $adm = base64_decode($admin); $adm = explode(":", $adm); $aname = "$adm[0]"; } else { $aname = "$admin[0]"; } } $index=1; $adm_info = $db->sql_fetchrow($db->sql_query("SELECT * FROM ".$prefix."_authors WHERE aid='$aname'")); if ($adm_info['radminsuper']==1 OR $adm_info['super_user']==1) { $pagename = "PHP-Nuke"; switch($op) { default: $pagetitle = $pagename; include("header.php"); title($pagetitle); OpenTable(); echo "<table align='center' border='0' cellpadding='2' cellspacing='2'>\n"; echo "<form action='".$_SERVER['PHP_SELF']."' method='post'>\n"; echo "<tr><td>This script will install, destall or upgrade the tables for the $pagename.</td></tr>\n"; echo "<tr><td><b>Backup data tables before going on!</b></td></tr>\n"; echo "<tr><td><select name='op'>\n"; echo "<option value=''>---- Downgrade Options ----</option>\n"; echo "<option value='78-76'>Downgrade $pagename 7.8 to 7.6</option>\n"; echo "<option value='77-76'>Downgrade $pagename 7.7 to 7.6</option>\n"; echo "</select> <input type='submit' value='COMMIT'></td></tr>\n"; echo "<tr><td><b>Once you have finished with this script, delete it from your server!</b></td></tr>\n"; echo "</form>"; echo "</table><br />\n"; echo "<table border='0' cellpadding='0' cellspacing='0' align='center'>\n"; echo "<tr><td width='100%' align='center'><b>Help Support NukeScripts</b></td></tr>\n"; echo "<tr><td width='100%' align='center'><a href='http://www.nukescripts.net/modules.php?name=Donations&%2339 src='https://www.paypal.com/en_US/i/btn/x-click-but21.gif' border='0' alt='Make donations with PayPal!' align='center'></a></td></tr>\n"; echo "</table>\n"; CloseTable(); include("footer.php"); break; case "78-76": $pagetitle = $pagename.": Downgrade 7.8 to 7.6"; include("header.php"); title("$pagetitle"); OpenTable(); echo "Operation Status!<br />\n"; echo "<hr>\n"; $message = "Everything seems to have completed succeesfully <br />\n"; $result = $db->sql_query("ALTER TABLE `".$prefix."_banner_clients` RENAME `".$prefix."_bannerclient`"); if(!$result) { echo "- ALTER TABLE ".$prefix."_banner_clients failed<br />\n"; $message = ""; } $result = $db->sql_query("ALTER TABLE `".$prefix."_banner` DROP `ad_class`"); if(!$result) { echo "- ALTER TABLE ".$prefix."_banner failed<br />\n"; $message = ""; } $result = $db->sql_query("ALTER TABLE `".$prefix."_banner` DROP `ad_code`"); if(!$result) { echo "- ALTER TABLE ".$prefix."_banner failed<br />\n"; $message = ""; } $result = $db->sql_query("ALTER TABLE `".$prefix."_banner` DROP `ad_width`"); if(!$result) { echo "- ALTER TABLE ".$prefix."_banner failed<br />\n"; $message = ""; } $result = $db->sql_query("ALTER TABLE `".$prefix."_banner` DROP `ad_height`"); if(!$result) { echo "- ALTER TABLE ".$prefix."_banner failed<br />\n"; $message = ""; } $result = $db->sql_query("ALTER TABLE `".$prefix."_banner` DROP `name`"); if(!$result) { echo "- ALTER TABLE ".$prefix."_banner failed<br />\n"; $message = ""; } $result = $db->sql_query("ALTER TABLE `".$prefix."_banner` CHANGE `position` `type` tinyint(1) NOT NULL default '0'"); if(!$result) { echo "- ALTER TABLE ".$prefix."_banner failed<br />\n"; $message = ""; } $result = $db->sql_query("DROP TABLE `".$prefix."_banner_positions`"); if(!$result) { echo "- DROP TABLE ".$prefix."_banner_positions failed<br />\n"; $message = ""; } $result = $db->sql_query("DROP TABLE `".$prefix."_banner_terms`"); if(!$result) { echo "- DROP TABLE ".$prefix."_banner_terms failed<br />\n"; $message = ""; } $result = $db->sql_query("DROP TABLE `".$prefix."_banner_plans`"); if(!$result) { echo "- DROP TABLE ".$prefix."_banner_plans failed<br />\n"; $message = ""; } $result = $db->sql_query("ALTER TABLE `".$user_prefix."_users` DROP INDEX `karma`"); if(!$result) { echo "- ALTER TABLE ".$user_prefix."_users failed<br />\n"; $message = ""; } $result = $db->sql_query("ALTER TABLE `".$user_prefix."_users` DROP `karma`"); if(!$result) { echo "- ALTER TABLE ".$user_prefix."_users failed<br />\n"; $message = ""; } $result = $db->sql_query("DROP TABLE `".$prefix."_comments_moderated`"); if(!$result) { echo "- DROP TABLE ".$prefix."_comments_moderated failed<br />\n"; $message = ""; } $result = $db->sql_query("DROP TABLE `".$prefix."_pollcomments_moderated`"); if(!$result) { echo "- DROP TABLE ".$prefix."_pollcomments_moderated failed<br />\n"; $message = ""; } $result = $db->sql_query("DROP TABLE `".$prefix."_reviews_comments_moderated`"); if(!$result) { echo "- DROP TABLE ".$prefix."_reviews_comments_moderated failed<br />\n"; $message = ""; } $result = $db->sql_query("ALTER TABLE `".$prefix."_comments` DROP `last_moderation_ip`"); if(!$result) { echo "- ALTER TABLE ".$prefix."_comments failed<br />\n"; $message = ""; } $result = $db->sql_query("ALTER TABLE `".$prefix."_pollcomments` DROP `last_moderation_ip`"); if(!$result) { echo "- ALTER TABLE ".$prefix."_pollcomments failed<br />\n"; $message = ""; } $result = $db->sql_query("ALTER TABLE `".$prefix."_stories` DROP `rating_ip`"); if(!$result) { echo "- ALTER TABLE ".$prefix."_stories failed<br />\n"; $message = ""; } $result = $db->sql_query("UPDATE `".$prefix."_config` SET `copyright`='Resecured PHP-Nuke 7.6.'"); if(!$result) { echo "- UPDATE ".$prefix."_config failed<br />\n"; $message = ""; } $result = $db->sql_query("UPDATE `".$prefix."_config` SET `Version_Num`='7.6'"); if(!$result) { echo "- UPDATE ".$prefix."_config failed<br />\n"; $message = ""; } $test = $db->sql_query("SHOW COLUMNS FROM `".$prefix."_modules` LIKE 'wysig_status'"); if($test) { $result = $db->sql_query("ALTER TABLE `".$prefix."_modules` DROP `wysig_status`"); if(!$result) { echo "- ALTER TABLE ".$prefix."_modules failed<br />\n"; $message = ""; } } echo "$message<hr>\n"; echo "Operation Complete!<br />\n"; echo "You <b>MUST</b> upload the PHP-Nuke 7.6 files to your server for the downgrade to be complete.\n"; CloseTable(); include("footer.php"); break; case "77-76": $pagetitle = $pagename.": Downgrade 7.7 to 7.6"; include("header.php"); title("$pagetitle"); OpenTable(); echo "Operation Status!<br />\n"; echo "<hr>\n"; $message = "Everything seems to have completed succeesfully <br />\n"; $result = $db->sql_query("ALTER TABLE `".$user_prefix."_users` DROP INDEX `karma`"); if(!$result) { echo "- ALTER TABLE ".$user_prefix."_users failed<br />\n"; $message = ""; } $result = $db->sql_query("ALTER TABLE `".$user_prefix."_users` DROP `karma`"); if(!$result) { echo "- ALTER TABLE ".$user_prefix."_users failed<br />\n"; $message = ""; } $result = $db->sql_query("DROP TABLE `".$prefix."_comments_moderated`"); if(!$result) { echo "- DROP TABLE ".$prefix."_comments_moderated failed<br />\n"; $message = ""; } $result = $db->sql_query("DROP TABLE `".$prefix."_pollcomments_moderated`"); if(!$result) { echo "- DROP TABLE ".$prefix."_pollcomments_moderated failed<br />\n"; $message = ""; } $result = $db->sql_query("DROP TABLE `".$prefix."_reviews_comments_moderated`"); if(!$result) { echo "- DROP TABLE ".$prefix."_reviews_comments_moderated failed<br />\n"; $message = ""; } $result = $db->sql_query("ALTER TABLE `".$prefix."_comments` DROP `last_moderation_ip`"); if(!$result) { echo "- ALTER TABLE ".$prefix."_comments failed<br />\n"; $message = ""; } $result = $db->sql_query("ALTER TABLE `".$prefix."_pollcomments` DROP `last_moderation_ip`"); if(!$result) { echo "- ALTER TABLE ".$prefix."_pollcomments failed<br />\n"; $message = ""; } $result = $db->sql_query("ALTER TABLE `".$prefix."_stories` DROP `rating_ip`"); if(!$result) { echo "- ALTER TABLE ".$prefix."_stories failed<br />\n"; $message = ""; } $result = $db->sql_query("UPDATE `".$prefix."_config` SET `copyright`='<a href=\" class=\"footmsg_l\">NukeScripts</font></a> Resecured PHP-Nuke 7.6.'"); if(!$result) { echo "- UPDATE ".$prefix."_config failed<br />\n"; $message = ""; } $result = $db->sql_query("UPDATE `".$prefix."_config` SET `Version_Num`='7.6'"); if(!$result) { echo "- UPDATE ".$prefix."_config failed<br />\n"; $message = ""; } $test = $db->sql_query("SHOW COLUMNS FROM `".$prefix."_modules` LIKE 'wysig_status'"); if($test) { $result = $db->sql_query("ALTER TABLE `".$prefix."_modules` DROP `wysig_status`"); if(!$result) { echo "- ALTER TABLE ".$prefix."_modules failed<br />\n"; $message = ""; } } echo "$message<hr>\n"; echo "Operation Complete!<br />\n"; echo "You <b>MUST</b> upload the PHP-Nuke 7.6 files to your server for the downgrade to be complete.\n"; CloseTable(); include("footer.php"); break; } } else { $pagetitle = $pagename.": ERROR"; include("header.php"); title("$pagetitle"); OpenTable(); echo "<center><b>Sorry, ONLY super admins may run this script</b><center>\n"; CloseTable(); include("footer.php"); } ?> and here is what I receve: <html><body></body></html> Please Help! Share this post Link to post Share on other sites