Author |
Message |
dirtysnipe
New Member


Joined: Apr 29, 2005
Posts: 4
|
Posted:
Thu Sep 15, 2005 9:51 am |
|
ive installed Sentinel onto my platinum site and followed all the instructions and alterations i needed to make.
all installed ok and the sql.
loaded index page of site and i get this error at the top of the page.
can somone help me out as im a n00b and dont have a clue.
Warning: ob_start(): output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter' in /home/pmcope78/public_html/mainfile.php on line 86
here is the mainfile.php
Code:<?php
/************************************************************************/
/* PHP-NUKE: Advanced Content Management 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. */
/************************************************************************/
/* Additional security checking code 2003 by chatserv */
/* http://www.nukefixes.com -- http://www.nukeresources.com */
/************************************************************************/
/* PHP-Nuke Platinum: Expect to be impressed COPYRIGHT */
/* */
/* Copyright (c) 2004 - 2006 by http://www.techgfx.com */
/* Techgfx - Graeme Allan (goose@techgfx.com) */
/* */
/* Copyright (c) 2004 - 2006 by http://www.conrads-berlin.de */
/* MrFluffy - Axel Conrads (axel@conrads-berlin.de) */
/* */
/* Refer to TechGFX.com for detailed information on PHP-Nuke Platinum */
/* */
/* TechGFX: Your dreams, our imagination */
/************************************************************************/
if (defined('FORUM_ADMIN')) {
@include_once("../../../includes/nukesentinel.php");
} elseif (defined('INSIDE_MOD')) {
@include_once("../../includes/nukesentinel.php");
} else {
@include_once("includes/nukesentinel.php");
}
if(stristr($_SERVER['REQUEST_URI'], ".php/")) {
header("Location: http://".$_SERVER['HTTP_HOST'].str_replace(".php/", ".php", $_SERVER['REQUEST_URI']));
}
if($_SERVER['REQUEST_URI'] != "/" AND substr($_SERVER['REQUEST_URI'], -1) == "/") {
header("Location: http://".$_SERVER['HTTP_HOST'].rtrim($_SERVER['REQUEST_URI'],'/'));
}
if (file_exists("includes/custom_files/custom_mainfile.php")) {
include_once("includes/custom_files/custom_mainfile.php");
}
/*****************************************************/
/* Security - Protector System v.1.15b3 START */
/*****************************************************/
//Union Tap
//Copyright Zhen-Xjell 2004 http://nukecops.com
//Beta 3 Code to prevent UNION SQL Injections
//unset($matches);
//unset($loc);
//if (preg_match("/([OdWo5NIbpuU4V2iJT0n]{5}) /", rawurldecode($loc=$_SERVER["QUERY_STRING"]), $matches)) {
// die();
//}
//$queryString = strtolower($_SERVER['QUERY_STRING']);
//if (stripos_clone($queryString,'%20union%20') OR stripos_clone($queryString,'/*') OR stripos_clone($queryString,'*/union/*') OR stripos_clone($queryString,'c2nyaxb0')) {
//header("Location: index.php");
//die();
//}
/*****************************************************/
/* Security - Protector System v.1.15b3 END */
/*****************************************************/
$phpver = phpversion();
/*****************************************************/
/* Tweak - Header Error Fix v.1.0.0 START */
/*****************************************************/
/*if ($phpver >= '4.0.4pl1' && strstr($HTTP_USER_AGENT,'compatible')) {
if (extension_loaded('zlib')) {
ob_end_clean();
ob_start('ob_gzhandler');
}*/
if ($phpver >= '4.0.4pl1') {
ob_start('ob_gzhandler');
// }
/*****************************************************/
/* Tweak - Header Error Fix v.1.0.0 END */
/*****************************************************/
} else if ($phpver > '4.0') {
if (strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')) {
if (extension_loaded('zlib')) {
$do_gzip_compress = TRUE;
ob_start();
ob_implicit_flush(0);
//header('Content-Encoding: gzip');
}
}
}
$phpver = explode(".", $phpver);
$phpver = "$phpver[0]$phpver[1]";
if ($phpver >= 41) {
$PHP_SELF = $_SERVER['PHP_SELF'];
}
if (!ini_get("register_globals")) {
import_request_variables('GPC');
}
|
|
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Thu Sep 15, 2005 11:56 am |
|
I shortened your post as I didn't need to see all of that code .
Try moving this codeCode:if (defined('FORUM_ADMIN')) {
@include_once("../../../includes/nukesentinel.php");
} elseif (defined('INSIDE_MOD')) {
@include_once("../../includes/nukesentinel.php");
} else {
@include_once("includes/nukesentinel.php");
}
|
to just beforeCode:$phpver = explode(".", $phpver);
|
|
|
|
|
 |
dirtysnipe

|
Posted:
Thu Sep 15, 2005 2:04 pm |
|
Sorted you are a star. The error has gone.
Wish i knew as much about php as you lot.
Thanks alot for your help. |
|
|
|
 |
berilco
New Member


Joined: Sep 19, 2005
Posts: 1
|
Posted:
Mon Sep 19, 2005 11:46 am |
|
I have platinum with latest Sentinal update but i dont think its even working is there a settings tutorial around to help out a new nuke user? I have read the post about htacces but i am SOOOOO confused. |
|
|
|
 |
Raven

|
Posted:
Mon Sep 19, 2005 2:33 pm |
|
berilco, yes, we need to write a section on that - sorry we haven't yet!
For just a quick help, I recommend, in Blocker Configuration, that you do the following:Code:
Activate: Email, Block, Default Page
Write to htaccess: Yes
Forward To:
IP Block Type: 1 octet
Default Page:
Email IP lookup: Arin.net
Reason:
Block Duration:
|
Just take the defaults if I haven't specified them. Hope this helps to get you started. |
|
|
|
 |
CurtisH
Life Cycles Becoming CPU Cycles

Joined: Mar 15, 2004
Posts: 638
Location: West Branch, MI
|
Posted:
Mon Sep 19, 2005 2:39 pm |
|
While we are on this subject I have a question regarding the option to write to htaccess
When you have it set to do this and you clear all banned IP's is it supposed to clear the previously written ones from the htaccess file? |
_________________ Those who dream by day are cognizant of many things which escape those who dream only by night. ~Poe |
|
|
 |
Raven

|
Posted:
Mon Sep 19, 2005 6:05 pm |
|
Yes. Make sure that permissions are set to 666 or 777. |
|
|
|
 |
dirtysnipe

|
Posted:
Tue Sep 20, 2005 1:45 am |
|
im back again with another problem. Not sure if its me being dumb.
I cannot enter the forum section of my site (admin console). |
|
|
|
 |
|