Author |
Message |
nuke_id_in_town
New Member


Joined: Jun 29, 2007
Posts: 12
|
Posted:
Mon Jul 09, 2007 12:55 pm |
|
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!) |
|
|
|
 |
Gremmie
Former Moderator in Good Standing

Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Mon Jul 09, 2007 1:08 pm |
|
I think that will work.
You do know that if you grab the latest RavenNuke it already has Sentinel installed, right?  |
_________________ Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module |
|
|
 |
nuke_id_in_town

|
Posted:
Mon Jul 09, 2007 2:05 pm |
|
Hi,
Thanks, I will investigate. |
|
|
|
 |
nuke_id_in_town

|
Posted:
Mon Jul 09, 2007 2:40 pm |
|
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

|
Posted:
Mon Jul 09, 2007 3:06 pm |
|
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

|
Posted:
Mon Jul 09, 2007 3:20 pm |
|
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 |
|
|
|
 |
|