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
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Sun Sep 05, 2004 4:06 pm Reply with quote

As per the Installation instructions, add these lines right after the opening <? PHP tag in mainfile.php
Code:
include("includes/sentinel.php");

This is the new code that we now recommend instead of the above line, although the above line usually is sufficient.
Code:
if ($forum_admin == 1) {

   include("../../../includes/sentinel.php");
} elseif ($inside_mod == 1) {
   include("../../includes/sentinel.php");
} else {
   include("includes/sentinel.php");
}
 
View user's profile Send private message
GeekyGuy
Client


Joined: Jun 03, 2004
Posts: 302
Location: Huber Heights Ohio

PostPosted: Sun Sep 05, 2004 8:43 pm Reply with quote

And the User Guide, and User Guide module, have all been edited to reflect this change.

And Bob Marion and Raven have added these changes to the download of NukeSentinel™ 2.0.2,

_________________
"The Daytona 500 is ours! We won it, we won it, we won it!", Dale Earnhardt, February 15th, 1998, Daytona 500 
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
Rage
Insane


Joined: Jul 30, 2004
Posts: 85

PostPosted: Mon Sep 06, 2004 10:04 am Reply with quote

Done, thanks Raven and Bob!

_________________
It's not that I'm afraid of dying, it's just that I don't want to be there when it happens. - Woody Allen 
View user's profile Send private message
chrisy
New Member
New Member


Joined: Sep 12, 2004
Posts: 5

PostPosted: Sun Sep 12, 2004 5:05 am Reply with quote

I have just installed the sentinel 2.0.2
and have added the code as mentioned above,
but when I now enter the sentinel admin i still get the fatal error:
Call to undefined function: abget_configs() in ... nuke/admin/modules/sentinel.php on line 29
my root directory for nuke is: Only registered users can see links on this board! Get registered or login!

please help...
thanks chrisy
 
View user's profile Send private message
Muffin
Client


Joined: Apr 10, 2004
Posts: 649
Location: UK

PostPosted: Sun Sep 12, 2004 8:54 am Reply with quote

Try clearing your cache and cookies then try. And make sure you deleted
Quote:
include("includes/sentinel.php");


as you dont need that with the new code inserted.

_________________
Classic Mini rules the bends & bends the rules!
[img] 
View user's profile Send private message
Raven
PostPosted: Sun Sep 12, 2004 9:59 am Reply with quote

chrisy wrote:
I have just installed the sentinel 2.0.2
and have added the code as mentioned above,
but when I now enter the sentinel admin i still get the fatal error:
Call to undefined function: abget_configs() in ... nuke/admin/modules/sentinel.php on line 29
my root directory for nuke is: Only registered users can see links on this board! Get registered or login!

please help...
thanks chrisy
If you are still receiving that message then you have not added the code correctly. Make sure that your first 7 lines of mainfile.php look like this and that you have ftp'd all of the NukeSentinel files correctly.
Code:
<?

if ($forum_admin == 1) {
   include("../../../includes/sentinel.php");
} elseif ($inside_mod == 1) {
   include("../../includes/sentinel.php");
} else {
   include("includes/sentinel.php");
}
 
chrisy
PostPosted: Sun Sep 12, 2004 10:18 am Reply with quote

thank you to Muffin and Raven for your quick response,
i had a mistake in the code.
now it works well

Rolling Eyes
 
chatserv
Member Emeritus


Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

PostPosted: Thu Sep 30, 2004 11:55 am Reply with quote

I've noticed the instructions for the mainfile.php modification are not present in the readme file (2.0.2) although maybe i have an outdated copy. Thought i'd mention it anyway as this could be the cause for the common error.
 
View user's profile Send private message Visit poster's website
Raven
PostPosted: Thu Sep 30, 2004 12:22 pm Reply with quote

Hmmm. I just looked in the 2.0.2 readme and I see
Quote:
INSTALLING:
1) Upload all new files and run the nsnst.php file. Perform a
first time install.
2) Add
if ($forum_admin == 1) {
include("../../../includes/sentinel.php");
} elseif ($inside_mod == 1) {
include("../../includes/sentinel.php");
} else {
include("includes/sentinel.php");
}
to your mainfile.php just
after the opening <? php line on it's own line like below:
<?php
if ($forum_admin == 1) {
include("../../../includes/sentinel.php");
} elseif ($inside_mod == 1) {
include("../../includes/sentinel.php");
} else {
include("includes/sentinel.php");
}
3) Goto the NukeSentinel™ Admin to set all the config values.
4) Remove nsnst.php from your server.
 
Raven
PostPosted: Fri Oct 01, 2004 11:37 am Reply with quote

It's in there Laughing - Look at #3 and then under INSTALLING:.
 
chatserv
PostPosted: Fri Oct 01, 2004 11:42 am Reply with quote

yeah, saw it, most likely the same thing happened to others, i was expecting to find all file edits in the same area, the one for mainfile is further below Laughing
 
chatserv
PostPosted: Fri Oct 01, 2004 11:45 am Reply with quote

Either way i think this is a good candidate for a faq section, one for Sentinel, even if at the moment this is the one question about it that gets asked a lot i'm sure one or two more will come along.
 
Raven
PostPosted: Fri Oct 01, 2004 11:47 am Reply with quote

Already there Only registered users can see links on this board! Get registered or login!
 
THE_DON
New Member
New Member


Joined: Nov 23, 2004
Posts: 3

PostPosted: Tue Nov 23, 2004 11:28 am Reply with quote

hello all and how are we doing?I have just installed Sent and when it tells me to go to sentinel admin i get a blank page and when i click IP_cuntry it says Fatal error: Call to undefined function: abget_configs() in /home/xxxxxx/public_html/xxxx/modules/IP_to_Country/index.php on line 28
What am i doing wrong Smile Smile


Last edited by THE_DON on Tue Nov 23, 2004 12:04 pm; edited 1 time in total 
View user's profile Send private message
THE_DON
PostPosted: Tue Nov 23, 2004 11:47 am Reply with quote

This is what is in my read me file


REQUIREMENTS:
- NukeSentinel™ IP to Country requires PHP-Nuke 6.5 - 7.5 and NukeSetinel(tm)
2.1.0 to be installed.



*******************************************************************************

Section 3: Installation:
------------------------
Extract archive to temp dir and copy included as noted below (and chmod if shown):
(root/ means your nuke root directory)
---------------------------------------------------------------------------------
LICENSE.txt (do not upload, NukeSentinel™ License)
README.txt (do not upload, your reading it)

Uploading Files:
----------------
NukeSentinel™ Files in Directories: FTP Upload to:
html/*.* ----------------> root/*.*
html/admin/*.* ----------------> root/admin/*.*
* root = the root directory of your site.
sql/nsnst_ip2country.sql ----------------> If the nsnst_ip2country.php installer
does not work on your server you can
use this file for installation. This
installs the IP2C table and data.

sql/nsnst_countries.sql ----------------> If the nsnst_ip2country.php installer
does not work on your server you can
use this file for installation. This
installs the Countries data.


Running the nsnst_ip2country.php file:
--------------------------------------
1) After uploading the files, Login to your PHP-Nuke admin.php screen:
For example: Only registered users can see links on this board! Get registered or login!
2) Then, in the address line of your browser, erase the admin.php and replace it
with nsnst_ip2country.php
For example: Only registered users can see links on this board! Get registered or login!
This will install, uninstall NukeSentinel™ IP2C database tables & data.



It does not tell me to add anything in the mainfile.php
And i added the code you have posted here and when i do i try to go into my admin.php and i get an error.
 
Raven
PostPosted: Tue Nov 23, 2004 12:08 pm Reply with quote

That is not the README from the base NukeSentinel v2.1.1 package. There is a NukeSentinel IP2C and a NukeSentinel v2.1.1. You nedd to first install NukeSentinel v2.1.1 which tells you about adding to mainfile.php and more. Then install the IP2C distro.
 
THE_DON
PostPosted: Tue Nov 23, 2004 12:09 pm Reply with quote

o ok my bad sorry
 
cassandraY
New Member
New Member


Joined: Feb 02, 2005
Posts: 1

PostPosted: Wed Feb 02, 2005 9:09 am Reply with quote

Raven wrote:
As per the Installation instructions, add these lines right after the opening <? PHP tag in mainfile.php
Code:
include("includes/sentinel.php");

This is the new code that we now recommend instead of the above line, although the above line usually is sufficient.
Code:
if ($forum_admin == 1) {

   include("../../../includes/sentinel.php");
} elseif ($inside_mod == 1) {
   include("../../includes/sentinel.php");
} else {
   include("includes/sentinel.php");
}


I did the above then entered administration in the sentinel
made same options and then hit the save changes and got this error instead!
Warning: Cannot modify header information - headers already sent by (output started at /home/xvip1x7/public_html/nu/config.php:119) in /home/xvip1x7/public_html/nu/admin/modules/sentinel.php on line 960

so what do I do now?
Else thanks hope sentinel will save me from more hackers, have already have two of them!
Hugs
cassandra
 
View user's profile Send private message
Raven
PostPosted: Wed Feb 02, 2005 9:14 am Reply with quote

Only registered users can see links on this board! Get registered or login!
 
pudbat
New Member
New Member


Joined: Mar 05, 2005
Posts: 20

PostPosted: Tue Mar 08, 2005 12:37 am Reply with quote

I've searched for the answer and can't seem to find the problem I'm getting.

Fatal error: Call to undefined function: ÝÝinclude() in /home/mysite/public_html/mainfile.php on line 7...

<?php
if ($forum_admin == 1) {
  include("../../../includes/sentinel.php");
} elseif ($inside_mod == 1) {
  include("../../includes/sentinel.php");
} else {
  include("includes/sentinel.php");
}

i'm running 7.6
sorry to bug you but i'm getting all sorts of porn refers and looking for a way to keep the bad people away
 
View user's profile Send private message
thebishop
Worker
Worker


Joined: Aug 30, 2005
Posts: 243
Location: Flying to close to the sun

PostPosted: Tue Nov 08, 2005 8:46 am Reply with quote

hey all, i get these errors after editing the mainfile.php the way your saying to edit it.
Warning: main(includes/sentinel.php): failed to open stream: No such file or directory in /home/ethugsru/public_html/home/mainfile.php on line 7

Warning: main(includes/sentinel.php): failed to open stream: No such file or directory in /home/ethugsru/public_html/home/mainfile.php on line 7

Warning: main(): Failed opening 'includes/sentinel.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/ethugsru/public_html/home/mainfile.php on line 7

im not sure what to do at this point. Sad any help appreciated
 
View user's profile Send private message
Raven
PostPosted: Tue Nov 08, 2005 8:49 am Reply with quote

You have misread the instructions. You should be using
includes/nukesentinel.php
not
includes/sentinel.php
 
thebishop
PostPosted: Tue Nov 08, 2005 8:59 am Reply with quote

harumph. another case of me working too long on my pc.

i change all the lines to nukesentinel and the errors vanished.

thank you oh kind one. me bows head to raven. Smile
 
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 ©