Jump to content

jmeyers

Members
  • Posts

    10
  • Joined

  • Last visited

jmeyers's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Needless to say, I'm at a stopping point as there are no errors in the log, but the links that point to things, such as one that would say siteinfo/modules.php?name=Topics, are still directing me to screens that are either completely blank, or completely blank with a blue background.
  2. They were full ones. function themeheader() { global $user, $banners, $sitename, $slogan, $cookie, $prefix, $db; cookiedecode($user); $username = $cookie[1]; if ($username == "") { $username = "Anonymous"; } echo "<body bgcolor=\"#004080\" text=\"#000000\" link=\"#004080\" vlink=\"#004080\" alink=\"#004080\">"; if ($banners) { include("banners.php"); } $topics_list = "<select name=\"topic\" onchange='submit()'>\n"; $topics_list .= "<option value=\"\">All Topics</option>\n"; $toplist = $db->sql_query("select topicid, topictext from ".$prefix."_topics order by topictext"); while(list($topicid, $topics) = $db->sql_fetchrow($toplist)) { $topicid = intval($topicid); if ($topicid==$topic) { $sel = "selected "; } $topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n"; $sel = ""; } if ($username == "Anonymous") { $theuser = " <a href=\"modules.php?name=Your_Account\">Create an account"; } else { $theuser = " Welcome $username!"; } $public_msg = public_message(); $tmpl_file = "themes/Odyssey/header.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "\$r_file=\"".$thefile."\";"; eval($thefile); print $r_file; blocks(left); $tmpl_file = "themes/Odyssey/left_center.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "\$r_file=\"".$thefile."\";"; eval($thefile); print $r_file; } This was what was in the file, and it started with a <?php, then had various other functions defined, in fact, it looked like a template from phpnuke.org defining the various functions, as there was greyed-out text above each one, giving a small description from them, but it had been modified by the site designers when they initially started, since there were numerous additions and specifics about the site.
  3. Found the function definition and copied and pasted it into the code, and seems like its needed in a lot of places, since I've corrected about 5 undefined functions in different files so far. Also my blank white pages are suddenly blue lol! Seems like I'm making progress, thanks for your help.
  4. Sorry guys, I don't mean to sound like an idiot, but I've never dealt with this stuff before. I'm trying to help an elderly site admin who basically only knows how to add pictures and posts through an FTP program, someone made the site 8 years ago and then left the organization, so I'm really lost, but since I know a little about computers I'm just trying to get their homepage working again for them. Do you have any suggestions about a utility that can search the files? I've been using cpanel because it was the only way i knew of to get into the site files.
  5. Taking out all the @ symbols hasn't changed the error message I'm receiving. I'll keep looking into it.
  6. Ok, thanks! I wish I could just take this themeheader() part of the code out and call it good. I'll try taking the @ out and see what I get.
  7. Please don't take offense, I'm actually trying to follow your instructions, and I do appreciate your help immensely. I don't know if its because you were in a hurry, or possibly English is not your first language, but I don't understand a few of the things you're saying, could you please elaborate on a few things so I can make sure I understand them. "Then you might have to trace from the page that the user first accesses to the script above." "have an ampersand in front of them" I thought an ampersand was &. Could you type the symbol you mean so I can make sure I remove the right thing?
  8. Since this file has been the same throughout, anyone that is familiar with code mind telling me what this is pointing at that is making like 52 have an error? If i can fix the file its referencing maybe I can fix the problem.
  9. <?php /************************************************************************/ /* PHP-NUKE: Advanced Content Management System */ /* ============================================ */ /* */ /* Copyright (c) 2005 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 (stristr($_SERVER['SCRIPT_NAME'], "header.php")) { Header("Location: index.php"); die(); } @require_once("mainfile.php"); ################################################## # Include some common header for HTML generation # ################################################## $header = 1; function head() { global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle; @include("includes/ipban.php"); $ThemeSel = get_theme(); @include("themes/$ThemeSel/theme.php"); echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n"; echo "<html>\n"; echo "<head>\n"; echo "<title>$sitename $pagetitle</title>\n"; @include("includes/meta.php"); @include("includes/javascript.php"); if (file_exists("themes/$ThemeSel/images/favicon.ico")) { echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n"; } echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"backend.php\">\n"; echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n"; if (file_exists("includes/custom_files/custom_head.php")) { @include_once("includes/custom_files/custom_head.php"); } echo "\n\n\n</head>\n\n"; if (file_exists("includes/custom_files/custom_header.php")) { @include_once("includes/custom_files/custom_header.php"); } themeheader(); } online(); head(); @include("includes/counter.php"); global $home; if ($home == 1) { message_box(); blocks(Center); } ?>
  10. hxxp:\\www.owsleykyhist.net is the site I'm working on. I'm trying to help the site administrator fix an issue that happened after they were trying to change something. I can't seem to figure out what they messed up, they seem to think it was an outside attack, but I'm not familiar with the cpanel or coding to figure out whats wrong. I've read through the site error log and seem to be coming up with this error since the problem started: Call to undefined function themeheader() in /home/owsley/public_html/header.php on line 52 I've replaced the header.php file (from public_html/header.php), as well as the theme.php (public_html/themes/Sand_Journey/theme.php) with versions from a site backup from 2008. Still having this issue repeatedly in the error log since then. Anyone got any ideas? Just to clarify, this error wasn't happening before a few days ago, so I'm not sure why the old files wouldn't correct it, but again, I'm not an expert at coding so I'm not sure what the issue is.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.