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(tm) v2.5.x
Author Message
nuke_id_in_town
New Member
New Member



Joined: Jun 29, 2007
Posts: 12

PostPosted: Mon Jul 09, 2007 12:55 pm Reply with quote

Hi,

My mainfile.php (nuke 8.0) differs from examples given.

Firstly, the examples given says it is based on Patched 3.1 mainfile.php

What is a Patched 3.1 mainfile.php?

Is it essential to use a patched mainfile.php and if so where do I get one?

If not essential, how do I deal with the first difference where it says:-

#
#-----[ OPEN ]------------------------------------------
#
mainfile.php

#
#-----[ 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");

....................So I find:


if(defined('FORUM_ADMIN')) {
define('INCLUDE_PATH', '../../../');
} elseif(defined('INSIDE_MOD')) {
define('INCLUDE_PATH', '../../');
} else {
define('INCLUDE_PATH', './');
}

// Include the required files
@require_once(INCLUDE_PATH."config.php");

if(!$dbname) {
die("<br><br><center><img src=images/logo.gif><br><br><b>There seems that PHP-Nuke isn't installed yet.<br>(The values in config.php file are the default ones)<br><br>You can proceed with the <a href='./install/index.php'>web installation</a> now.</center></b>");
}

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

So this bit:
if(!$dbname) {
die("<br><br><center><img src=images/logo.gif><br><br><b>There seems that PHP-Nuke isn't installed yet.<br>(The values in config.php file are the default ones)<br><br>You can proceed with the <a href='./install/index.php'>web installation</a> now.</center></b>");
}
...............is not in the example.

Do Ijust add?
@require_once(INCLUDE_PATH."includes/nukesentinel.php");

after

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

and ignore the bit not in the example?

Thanks
(there are further changes/differences in this file but hey, one-at-a-time!)
 
View user's profile Send private message
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Mon Jul 09, 2007 1:08 pm Reply with quote

I think that will work.

You do know that if you grab the latest RavenNuke it already has Sentinel installed, right? Wink

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
nuke_id_in_town







PostPosted: Mon Jul 09, 2007 2:05 pm Reply with quote

Hi,
Thanks, I will investigate.
 
nuke_id_in_town







PostPosted: Mon Jul 09, 2007 2:40 pm Reply with quote

Hi,

Looks like RavenNuke for my next install, I do have 3 sites already running nuke 8.0 (one of which got hacked - so I rebuilt it - hence wanting sentinel now).

This current install is a practice run on a test-bed nuke 8.0 site, which I am practicing installing NukeSentinel on before I try to install it on my flagship site.,

The differences between the examples and my mainfile.php are significant, what should I do?

Thanks.
 
Gremmie







PostPosted: Mon Jul 09, 2007 3:06 pm Reply with quote

I have not looked at 8.0, but I did install Sentinel on a 7.9 site before abandoning PHP-Nuke for RavenNuke. There were many small differences in the core file edits in the Sentinel documentation and what I saw in 7.9, but most of them were easy to reconcile after studying the code. Of course this is easy only if you are somewhat familiar with PHP and programming in general. I asked a question or two here on these forums and got it resolved. You could try that route.

If you aren't comfortable with that, you could perhaps post in the For-Hire forum and have someone do the edits for you.

If you really are concerned about security you'll want to switch to RavenNuke. Not only does it already have Sentinel and the security patches integrated, it also has fixed lots of bugs and security holes. Maybe it would be better to start thinking about a transition path to RavenNuke. But that is your decision to make based on your own scenario, goals, resources, etc.
 
nuke_id_in_town







PostPosted: Mon Jul 09, 2007 3:20 pm Reply with quote

Hello Gremmie

Thanks for your thoughts - I will do both in that case, I need to continue with the nuke 8.0 sites already running and will try the for hire route. Also I will do a test install of RavenNuke on my test site.

Thanks again
 
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(tm) v2.5.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 ©