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.4.x
Author Message
apondonet
New Member
New Member



Joined: Feb 20, 2006
Posts: 6

PostPosted: Mon Feb 20, 2006 4:42 am Reply with quote

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 
View user's profile Send private message
Dawg
RavenNuke(tm) Development Team



Joined: Nov 07, 2003
Posts: 928

PostPosted: Mon Feb 20, 2006 5:03 am Reply with quote

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
 
View user's profile Send private message
apondonet







PostPosted: Mon Feb 20, 2006 5:43 am Reply with quote

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.
 
Dawg







PostPosted: Mon Feb 20, 2006 6:04 am Reply with quote

There is not an alternative that I am aware of. Do you have a file compare utitily?

Try this... [ Only registered users can see links on this board! Get registered or login! ]

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
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon Feb 20, 2006 7:44 am Reply with quote

Just add this line in mainfile.php after where the other ones appear
Code:


@require_once(INCLUDE_PATH."includes/nukesentinel.php");

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
apondonet







PostPosted: Mon Feb 20, 2006 8:05 am Reply with quote

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 
evaders99







PostPosted: Mon Feb 20, 2006 1:21 pm Reply with quote

Yes, no further edits are needed
 
apondonet







PostPosted: Tue Feb 21, 2006 5:43 am Reply with quote

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.
 
apondonet







PostPosted: Tue Feb 21, 2006 9:23 pm Reply with quote

In my download, there is no " includes/nukesentinel.php"

just

html/abuse
html/admin
html/blocks
html/images

I don't see includes anywhere!
 
apondonet







PostPosted: Tue Feb 21, 2006 9:46 pm Reply with quote

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.
 
Maclain
Regular
Regular



Joined: Feb 25, 2006
Posts: 60
Location: England

PostPosted: Sat Feb 25, 2006 7:31 am Reply with quote

i have the same issue:

I would like to resolve though Smile 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: 
View user's profile Send private message Visit poster's website
montego
Site Admin



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

PostPosted: Sat Feb 25, 2006 8:02 am Reply with quote

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.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Maclain







PostPosted: Sat Feb 25, 2006 9:28 am Reply with quote

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



Joined: Mar 01, 2006
Posts: 4

PostPosted: Wed Mar 01, 2006 6:01 pm Reply with 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.
 
View user's profile Send private message
RhythmAce







PostPosted: Thu Mar 02, 2006 6:50 am Reply with quote

When all else fails, follow directions. Rolling Eyes 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.
 
Maclain







PostPosted: Sat Mar 04, 2006 5:14 pm Reply with quote

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 Smile

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
 
myrtletrees
Involved
Involved



Joined: Sep 13, 2005
Posts: 259
Location: Cornfields of Indiana

PostPosted: Mon Mar 27, 2006 3:41 pm Reply with quote

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!
 
View user's profile Send private message
evaders99







PostPosted: Mon Mar 27, 2006 10:08 pm Reply with quote

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");
 
leo51
Worker
Worker



Joined: Sep 09, 2004
Posts: 106
Location: Canada

PostPosted: Tue Mar 28, 2006 10:34 pm Reply with quote

Is there anyone out there getting to work on nuke 7.9?


Fred
 
View user's profile Send private message Visit poster's website MSN Messenger
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.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 ©