Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™
Author Message
mazx
New Member
New Member


Joined: Sep 24, 2006
Posts: 5

PostPosted: Sun Sep 24, 2006 12:09 am Reply with quote

I'm trying to install NukeSentinel(tm) 2.5.02 70-79 and I've done everything correctly but I'm having problems modifying my mainfile.php because it's not the same as it tells me to edit..

It says to..
Code:


#-----[ FIND ]------------------------------------------
#
if(defined('FORUM_ADMIN')) {
  define('INCLUDE_PATH', '../../../');
} elseif(defined('INSIDE_MOD')) {
  define('INCLUDE_PATH', '../../');
} else {
  define('INCLUDE_PATH', './');
}

@require_once(INCLUDE_PATH."config.php");
@require_once(INCLUDE_PATH."db/db.php");

#-----[ AFTER ADD ]------------------------------------------
#
@require_once(INCLUDE_PATH."includes/nukesentinel.php");


The code I have in my mainfile.php is different then above.

I have..
Code:


if (defined('FORUM_ADMIN')) {

   @require_once("../../../config.php");

   @require_once("../../../db/db.php");
   
   @require_once("../../../includes/sql_layer.php");

   if (file_exists("../../../includes/custom_files/custom_mainfile.php")) { @include_once("../../../includes/custom_files/custom_mainfile.php"); }

   @require_once("../../../includes/ipban.php");

} elseif (defined('INSIDE_MOD')) {

   @require_once("../../config.php");

   @require_once("../../db/db.php"); 
   
   @require_once("../../includes/sql_layer.php");

   if (file_exists("../../includes/custom_files/custom_mainfile.php")) { @include_once("../../includes/custom_files/custom_mainfile.php"); }

   @require_once("../../includes/ipban.php");

} else {

   @require_once("config.php");

   @require_once("db/db.php"); 

   @require_once("includes/sql_layer.php");

   if (file_exists("includes/custom_files/custom_mainfile.php")) { @include_once("includes/custom_files/custom_mainfile.php"); }

   @require_once("includes/ipban.php");

}



if (!defined('FORUM_ADMIN')) {

  if(empty($admin_file)) {

    die ("You must set a value for admin_file in config.php");

  } elseif (!empty($admin_file) && !file_exists($admin_file.".php")) {

    die ("The admin_file you defined in config.php does not exist");

  }

}


I'd appreciate it if someone could tell me how to edit my mainfile.php properly.
Thanks in advance.
 
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9449
Location: Arizona

PostPosted: Sun Sep 24, 2006 6:42 am Reply with quote

It looks as though you may not have this nuke installation patched with the patches from Only registered users can see links on this board! Get registered or login!. To be quite honest, installing NukeSentinel on top of an unpatched Nuke is like putting a padlock on your front door, but leaving all your windows open.

I would start there first and then I think the instructions will match more closely. Wink

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
mazx
PostPosted: Sun Sep 24, 2006 4:07 pm Reply with quote

Thanks for the help.
I'll just wait for RavenNuke76 v2.10.00 to come out and use that instead.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™

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 ©