Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ v2.4.x
Author Message
dirtysnipe
New Member
New Member


Joined: Apr 29, 2005
Posts: 4

PostPosted: Thu Sep 15, 2005 9:51 am Reply with quote

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');
}
 
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Thu Sep 15, 2005 11:56 am Reply with quote

I shortened your post as I didn't need to see all of that code Smile.

Try moving this code
Code:
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 before
Code:
$phpver = explode(".", $phpver);
 
View user's profile Send private message
dirtysnipe
PostPosted: Thu Sep 15, 2005 2:04 pm Reply with quote

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
New Member


Joined: Sep 19, 2005
Posts: 1

PostPosted: Mon Sep 19, 2005 11:46 am Reply with quote

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.
 
View user's profile Send private message
Raven
PostPosted: Mon Sep 19, 2005 2:33 pm Reply with quote

berilco, yes, we need to write a section on that Sad - 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

PostPosted: Mon Sep 19, 2005 2:39 pm Reply with quote

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 
View user's profile Send private message Visit poster's website Yahoo Messenger
Raven
PostPosted: Mon Sep 19, 2005 6:05 pm Reply with quote

Yes. Make sure that permissions are set to 666 or 777.
 
dirtysnipe
PostPosted: Tue Sep 20, 2005 1:45 am Reply with quote

im back again with another problem. Not sure if its me being dumb.

I cannot enter the forum section of my site (admin console).
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ v2.4.x

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©