Author |
Message |
apondonet
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Feb 20, 2006
Posts: 6
|
Posted:
Mon Feb 20, 2006 4:42 am |
|
I have looked around your forum, but I haven't found the answer I am looking for.
Here is my problem:
I have uploaded all the required files for NukeSentinel™ 2.4.2 71-79. I have also edited all the files except one: mainfile.php | The proposed edits do not match at all with the current file.
Current:
Edits:
Installed Nuke: 7.6 - Nuke Patched 3.1
Could somebody help with the code.
Thanks! |
Last edited by apondonet on Tue Feb 21, 2006 9:51 pm; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Dawg
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/46907b8543f928e08c8d7.gif)
Joined: Nov 07, 2003
Posts: 928
|
Posted:
Mon Feb 20, 2006 5:03 am |
|
Apon,
If this is a new site....I would wipe it and go get the current version of RN. It is a complete site ready t go with all the goodies inplace.
If you don't want to do that for what ever reason....Go get RN and run a file compare on the mainfile out of RN and yours to see how Raven did it.
When I did my 7.2 site mine did not match either. What I did was look at the logic and figure out what they wer trying to do where it made sence for the changes to go.
Dave |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
apondonet
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Feb 20, 2006 5:43 am |
|
Thanks Dave,
This site is about a year old with several modifications and a pretty sizeable database.
I wish it were new, I would have done just that!
I will download Raven Nuke and check it out. I wish I could just get the modified 7.6 code and drop it into the site.
Question: What's the next best alternative to NukeSentinel? ...If I can't figure it out, I will just remove it. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Dawg
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Feb 20, 2006 6:04 am |
|
There is not an alternative that I am aware of. Do you have a file compare utitily?
Try this...
http://winmerge.org/
Open your Mainfile in the left hand window and RN mainfile in the right hand window. It will highlight the diff's. Should be pretty easy to pick out what you need to do.
If nothing else....Post them both for me and I will look at them. I do not have a raw 7.6 mainfile handy....
My guess is Raven or one of the other Folks around here will catch this thread and point you in the right direction.
Dawg |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
Former Moderator in Good Standing
![](modules/Forums/images/avatars/803d73f6452557b947721.jpg)
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Mon Feb 20, 2006 7:44 am |
|
Just add this line in mainfile.php after where the other ones appear
Code:
@require_once(INCLUDE_PATH."includes/nukesentinel.php");
|
|
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
apondonet
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Feb 20, 2006 8:05 am |
|
Dawg:
Here are the files:
Current:
Edits:
Evaders99: You are everywhere! - Do you mean all I need to do is just to add that one line to mainfile.php and forget about the edits? |
Last edited by apondonet on Tue Feb 21, 2006 9:50 pm; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Feb 20, 2006 1:21 pm |
|
Yes, no further edits are needed |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
apondonet
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Feb 21, 2006 5:43 am |
|
I carefully checked all edits, uploads and included the one line in mainfile.php
When I uploaded the EDITS: Calling the nuke portal in the browser results in a blank page! Nothing comes up at all, not even error messages!
I have re-loaded the backup copies and I am on the verge of giving up on NukeSentinel.....I have edited lots of php files before and none has ever given me headaches like this Sentinel thing. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
apondonet
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Feb 21, 2006 9:23 pm |
|
In my download, there is no " includes/nukesentinel.php"
just
html/abuse
html/admin
html/blocks
html/images
I don't see includes anywhere! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
apondonet
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Feb 21, 2006 9:46 pm |
|
Never mind, I have removed NukeSentinel from my site. I may still install it in the future if the installation process is better streamlined.
Don't get me wrong, I believe it's great software and so are some other that I downloaded from this site and installed in mine. For now I will pass.
Keep up the good work.
My appreciations. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Maclain
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Feb 25, 2006
Posts: 60
Location: England
|
Posted:
Sat Feb 25, 2006 7:31 am |
|
i have the same issue:
I would like to resolve though have tried
[quote]Just add this line in mainfile.php after where the other ones appear
Code: ‹ Select ›
@require_once(INCLUDE_PATH."includes/nukesentinel.php");
[quote]
here is my issue:
everything is going fine, i think, all table's created.
In mainfile7.6 it says the following...
Quote: | #
#-----[ FIND ]------------------------------------------
#
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");
if (defined('NUKE_HEADER') && file_exists("../../../includes/custom_files/custom_head.php")) { @include_once("../../../includes/custom_files/custom_head.php"); }
if (defined('NUKE_HEADER') && file_exists("../../../includes/custom_files/custom_header.php")) { @include_once("../../../includes/custom_files/custom_header.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");
if (defined('NUKE_HEADER') && file_exists("../../includes/custom_files/custom_head.php")) { @include_once("../../includes/custom_files/custom_head.php"); }
if (defined('NUKE_HEADER') && file_exists("../../includes/custom_files/custom_header.php")) { @include_once("../../includes/custom_files/custom_header.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('NUKE_HEADER') && file_exists("includes/custom_files/custom_head.php")) { @include_once("includes/custom_files/custom_head.php"); }
if (defined('NUKE_HEADER') && file_exists("includes/custom_files/custom_header.php")) { @include_once("includes/custom_files/custom_header.php"); }
}
#
#-----[ CHANGE TO ]------------------------------------------
#
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");
@include_once("../../../includes/nukesentinel.php");
if (defined('NUKE_HEADER') && file_exists("../../../includes/custom_files/custom_head.php")) { @include_once("../../../includes/custom_files/custom_head.php"); }
if (defined('NUKE_HEADER') && file_exists("../../../includes/custom_files/custom_header.php")) { @include_once("../../../includes/custom_files/custom_header.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");
@include_once("../../includes/nukesentinel.php");
if (defined('NUKE_HEADER') && file_exists("../../includes/custom_files/custom_head.php")) { @include_once("../../includes/custom_files/custom_head.php"); }
if (defined('NUKE_HEADER') && file_exists("../../includes/custom_files/custom_header.php")) { @include_once("../../includes/custom_files/custom_header.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");
@include_once("includes/nukesentinel.php");
if (defined('NUKE_HEADER') && file_exists("includes/custom_files/custom_head.php")) { @include_once("includes/custom_files/custom_head.php"); }
if (defined('NUKE_HEADER') && file_exists("includes/custom_files/custom_header.php")) { @include_once("includes/custom_files/custom_header.php"); }
} |
which is great but in my mainfile.php i have
Code: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");
@require_once(INCLUDE_PATH."includes/sql_layer.php");
@require_once(INCLUDE_PATH."includes/ipban.php");
if (file_exists(INCLUDE_PATH."includes/custom_files/custom_mainfile.php")) {
@include_once(INCLUDE_PATH."includes/custom_files/custom_mainfile.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");
}
}
|
any ideas?
TIA |
_________________ Insert funky message here: |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Sat Feb 25, 2006 8:02 am |
|
Maclain,
After this code here:
Code:
if (file_exists(INCLUDE_PATH."includes/custom_files/custom_mainfile.php")) {
@include_once(INCLUDE_PATH."includes/custom_files/custom_mainfile.php");
}
|
Add the line that Evaders99 mentions up above.
Also, you mention that you are using 7.6. You could also take the mainfile.php from the RavenNuke76 1.05 distribution (no NSN Groups) and use that if you have not made any other mods to mainfile.php. |
_________________ 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! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Maclain
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Feb 25, 2006 9:28 am |
|
ok now i have
Code:
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");
@require_once(INCLUDE_PATH."includes/sql_layer.php");
@require_once(INCLUDE_PATH."includes/ipban.php");
if (file_exists(INCLUDE_PATH."includes/custom_files/custom_mainfile.php")) {
@include_once(INCLUDE_PATH."includes/custom_files/custom_mainfile.php");
}
@require_once(INCLUDE_PATH."includes/nukesentinel.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");
}
}
|
and still get a blank page going to the sentinel module.
also get the following error on go to sentinel admin panel
Quote: |
NukeSentinel(tm): Error Loading Functions
It appears that NukeSentinel(tm) has not been configured correctly. The most common cause is that you either have an error in the syntax that is including includes/nukesentinel.php from your mainfile.php, or you have not added the NukeSentinel(tm) code to your mainfile.php. Details for including this code are included in the download package in the Edits_For_Core_Files directory. |
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
RhythmAce
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Mar 01, 2006
Posts: 4
|
Posted:
Wed Mar 01, 2006 6:01 pm |
|
Maclain, I noticed in another thread that you finally got yours going. Congrats! I'm having the same problem you were and I was wondering exactly what you did to resolve the problem. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
RhythmAce
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Mar 02, 2006 6:50 am |
|
When all else fails, follow directions. I added this:
Code:
@include_once("../../includes/nukesentinel.php");
|
instead of this:
Code:
@require_once(INCLUDE_PATH."includes/nukesentinel.php");
|
It came to life after that. Thanks to everybody who works hard to figure all this stuff out. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Maclain
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Mar 04, 2006 5:14 pm |
|
Quote: | Maclain, I noticed in another thread that you finally got yours going. Congrats! I'm having the same problem you were and I was wondering exactly what you did to resolve the problem.
|
OK that sorted it.
Just incase anyone is searching this forum and has same issue, here is what i did to resolve:
Ok, I had this same problem, and i have now fixed it after MANY patch attempts.
So, here is the final main.php code that relates to sentinel, for all you that need it
The main issue is altering this section
Quote: |
#
#-----[ FIND ]------------------------------------------
#
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");
if (defined('NUKE_HEADER') && file_exists("../../../includes/custom_files/custom_head.php")) { @include_once("../../../includes/custom_files/custom_head.php"); }
if (defined('NUKE_HEADER') && file_exists("../../../includes/custom_files/custom_header.php")) { @include_once("../../../includes/custom_files/custom_header.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");
if (defined('NUKE_HEADER') && file_exists("../../includes/custom_files/custom_head.php")) { @include_once("../../includes/custom_files/custom_head.php"); }
if (defined('NUKE_HEADER') && file_exists("../../includes/custom_files/custom_header.php")) { @include_once("../../includes/custom_files/custom_header.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('NUKE_HEADER') && file_exists("includes/custom_files/custom_head.php")) { @include_once("includes/custom_files/custom_head.php"); }
if (defined('NUKE_HEADER') && file_exists("includes/custom_files/custom_header.php")) { @include_once("includes/custom_files/custom_header.php"); }
}
#
#-----[ CHANGE TO ]------------------------------------------
#
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");
@include_once("../../../includes/nukesentinel.php");
if (defined('NUKE_HEADER') && file_exists("../../../includes/custom_files/custom_head.php")) { @include_once("../../../includes/custom_files/custom_head.php"); }
if (defined('NUKE_HEADER') && file_exists("../../../includes/custom_files/custom_header.php")) { @include_once("../../../includes/custom_files/custom_header.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");
@include_once("../../includes/nukesentinel.php");
if (defined('NUKE_HEADER') && file_exists("../../includes/custom_files/custom_head.php")) { @include_once("../../includes/custom_files/custom_head.php"); }
if (defined('NUKE_HEADER') && file_exists("../../includes/custom_files/custom_header.php")) { @include_once("../../includes/custom_files/custom_header.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");
@include_once("includes/nukesentinel.php");
if (defined('NUKE_HEADER') && file_exists("includes/custom_files/custom_head.php")) { @include_once("includes/custom_files/custom_head.php"); }
if (defined('NUKE_HEADER') && file_exists("includes/custom_files/custom_header.php")) { @include_once("includes/custom_files/custom_header.php"); }
}
|
in actual fact you need to find code
Code:
if(defined('FORUM_ADMIN')) {
define('INCLUDE_PATH', '../../../');
} elseif(defined('INSIDE_MOD')) {
define('INCLUDE_PATH', '../../');
} else {
define('INCLUDE_PATH', './');
}
@require_once(INCLUDE_PATH."config.php");
|
AFTER ADD
Code:
@require_once(INCLUDE_PATH."includes/nukesentinel.php");
|
which results in the following Code:
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."includes/nukesentinel.php");
@require_once(INCLUDE_PATH."db/db.php");
@require_once(INCLUDE_PATH."includes/sql_layer.php");
@require_once(INCLUDE_PATH."includes/ipban.php");
if (file_exists(INCLUDE_PATH."includes/custom_files/custom_mainfile.php")) {
@include_once(INCLUDE_PATH."includes/custom_files/custom_mainfile.php");
}
|
the rest is as says in the Edits_For_Core_files - mainfile7.6.php.
As I say, i had all the issues mentioned above, and strongly agree with the not making changes to released patches.
Hope this helps anyone else looking to install sentinel on patched 7.6 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
myrtletrees
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/44fbb573445a9d36e3110.jpg)
Joined: Sep 13, 2005
Posts: 259
Location: Cornfields of Indiana
|
Posted:
Mon Mar 27, 2006 3:41 pm |
|
yup, helped me...first bit of code edit does not even exist in patched nuke7.6...I wonder why the authors have missed this?
I re-iterate...This code
Code:
if(defined('FORUM_ADMIN')) {
define('INCLUDE_PATH', '../../../');
} elseif(defined('INSIDE_MOD')) {
define('INCLUDE_PATH', '../../');
} else {
define('INCLUDE_PATH', './');
}
@require_once(INCLUDE_PATH."config.php");
|
DOES NOT EXIST in the mainfile.php patched 3.2 for Nuke 7.6 either...HAHA! UGH! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Mar 27, 2006 10:08 pm |
|
It's in the package I downloaded when it was released..
Code:
if(defined('FORUM_ADMIN')) {
define('INCLUDE_PATH', '../../../');
} elseif(defined('INSIDE_MOD')) {
define('INCLUDE_PATH', '../../');
} else {
define('INCLUDE_PATH', './');
}
@require_once(INCLUDE_PATH."config.php");
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
leo51
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Sep 09, 2004
Posts: 106
Location: Canada
|
Posted:
Tue Mar 28, 2006 10:34 pm |
|
Is there anyone out there getting to work on nuke 7.9?
Fred |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|