Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

maincore.php Problem, HELP!

Asked Modified Viewed 4,913 times
H
Hadeel
H
Hadeel 10
H.A
  • Junior Member, joined since
  • Contributed 14 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
asked
Junior Member

I keep see this error all over my website when i go to control panel - system admin - Site Links !! how to fix this error



Warning: Cannot modify header information - headers already sent by (output started at /home/vol5/byteact.com/byte_2526349/htdocs/administration/subheader.php:27) in /home/vol5/byteact.com/byte_2526349/htdocs/maincore.php on line 251
Edited by Hadeel on 04-12-2009 22:57,
0 replies

3 posts

H
Hadeel
H
Hadeel 10
H.A
  • Junior Member, joined since
  • Contributed 14 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

I Found the Problem By My Self, It's Like Hack Or Something On Your maincore.php

<?php
/*---------------------------------------------------+
| PHPFusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (eregi("maincore.php", $_SERVER['PHP_SELF'])) die();

// If register_globals is turned off, extract super globals (php 4.2.0+)
if (ini_get('register_globals') != 1) {
   if ((isset($_POST) == true) && (is_array($_POST) == true)) extract($_POST, EXTR_OVERWRITE);
   if ((isset($_GET) == true) && (is_array($_GET) == true)) extract($_GET, EXTR_OVERWRITE);
}

// Prevent any possible XSS attacks via $_GET.
foreach ($_GET as $check_url) {
   if ((eregi("<[^>]*script*\"?[^>]*>", $check_url)) || (eregi("<[^>]*object*\"?[^>]*>", $check_url)) ||
      (eregi("<[^>]*iframe*\"?[^>]*>", $check_url)) || (eregi("<[^>]*applet*\"?[^>]*>", $check_url)) ||
      (eregi("<[^>]*meta*\"?[^>]*>", $check_url)) || (eregi("<[^>]*style*\"?[^>]*>", $check_url)) ||
      (eregi("<[^>]*form*\"?[^>]*>", $check_url)) || (eregi("\([^>]*\"?[^)]*\)", $check_url)) ||
      (eregi("\"", $check_url))) {
   die ();
   }
}
unset($check_url);

// Start Output Buffering
ob_start([color=#ff0000]ob_gzhandler[/color]);




ob_gzhandler remove it


Mod: inserted code tags
Edited by HobbyMan on 05-12-2009 12:32,
0 replies
K
Ken
K
Ken 10
No Support by PM. Please use the forum.
  • Senior Member, joined since
  • Contributed 713 posts on the community forums.
  • Started 43 threads in the forums
answered
Senior Member

ob_gzhandler is just a way to compress websites to make it faster to load. It seems that the server your site is hosted on does not support this feature.
0 replies
J
Jeepers1993
J
  • Junior Member, joined since
  • Contributed 45 posts on the community forums.
  • Started 2 threads in the forums
answered
Junior Member

Mmmh i've seen that error before, i think there was another ob_start in the header file or something. Not sure.
0 replies

Category Forum

Bugs and Errors - 6

Labels

None yet

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 3 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet