| Author |
Message |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 15210 Location: Kansas
|
Posted:
Sun Sep 05, 2004 4:06 pm |
|
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");
} |
|
|
|
|
 |
GeekyGuy Client

Joined: Jun 03, 2004 Posts: 302 Location: Huber Heights Ohio
|
Posted:
Sun Sep 05, 2004 8:43 pm |
|
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(tm) 2.0.2, |
|
|
 |
 |
Rage Insane

Joined: Jul 30, 2004 Posts: 85
|
Posted:
Mon Sep 06, 2004 10:04 am |
|
Done, thanks Raven and Bob! |
|
|
|
 |
chrisy New Member


Joined: Sep 12, 2004 Posts: 5
|
Posted:
Sun Sep 12, 2004 5:05 am |
|
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:
please help...
thanks chrisy |
|
|
|
 |
Muffin Client

Joined: Apr 10, 2004 Posts: 649 Location: UK
|
Posted:
Sun Sep 12, 2004 8:54 am |
|
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. |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 15210 Location: Kansas
|
Posted:
Sun Sep 12, 2004 9:59 am |
|
| 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:
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 New Member


Joined: Sep 12, 2004 Posts: 5
|
Posted:
Sun Sep 12, 2004 10:18 am |
|
thank you to Muffin and Raven for your quick response,
i had a mistake in the code.
now it works well
 |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1393
|
Posted:
Thu Sep 30, 2004 11:55 am |
|
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. |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 15210 Location: Kansas
|
Posted:
Thu Sep 30, 2004 12:22 pm |
|
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(tm) Admin to set all the config values.
4) Remove nsnst.php from your server.
|
|
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 15210 Location: Kansas
|
Posted:
Fri Oct 01, 2004 11:37 am |
|
It's in there - Look at #3 and then under INSTALLING:. |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1393
|
Posted:
Fri Oct 01, 2004 11:42 am |
|
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  |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1393
|
Posted:
Fri Oct 01, 2004 11:45 am |
|
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 Site Admin/Owner

Joined: Aug 27, 2002 Posts: 15210 Location: Kansas
|
Posted:
Fri Oct 01, 2004 11:47 am |
|
|
|
 |
THE_DON New Member


Joined: Nov 23, 2004 Posts: 3
|
Posted:
Tue Nov 23, 2004 11:28 am |
|
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  |
Last edited by THE_DON on Tue Nov 23, 2004 12:04 pm; edited 1 time in total |
|
|
 |
THE_DON New Member


Joined: Nov 23, 2004 Posts: 3
|
Posted:
Tue Nov 23, 2004 11:47 am |
|
This is what is in my read me file
REQUIREMENTS:
- NukeSentinel(tm) 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(tm) License)
README.txt (do not upload, your reading it)
Uploading Files:
----------------
NukeSentinel(tm) 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:
2) Then, in the address line of your browser, erase the admin.php and replace it
with nsnst_ip2country.php
For example:
This will install, uninstall NukeSentinel(tm) 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 Site Admin/Owner

Joined: Aug 27, 2002 Posts: 15210 Location: Kansas
|
Posted:
Tue Nov 23, 2004 12:08 pm |
|
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 New Member


Joined: Nov 23, 2004 Posts: 3
|
Posted:
Tue Nov 23, 2004 12:09 pm |
|
|
|
 |
cassandraY New Member


Joined: Feb 02, 2005 Posts: 1
|
Posted:
Wed Feb 02, 2005 9:09 am |
|
| 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 |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 15210 Location: Kansas
|
Posted:
Wed Feb 02, 2005 9:14 am |
|
|
|
 |
pudbat New Member


Joined: Mar 05, 2005 Posts: 20
|
Posted:
Tue Mar 08, 2005 12:37 am |
|
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 |
|
|
|
 |
thebishop Worker


Joined: Aug 30, 2005 Posts: 172 Location: CA
|
Posted:
Tue Nov 08, 2005 8:46 am |
|
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. any help appreciated |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 15210 Location: Kansas
|
Posted:
Tue Nov 08, 2005 8:49 am |
|
You have misread the instructions. You should be using
includes/nukesentinel.php
not
includes/sentinel.php |
|
|
|
 |
thebishop Worker


Joined: Aug 30, 2005 Posts: 172 Location: CA
|
Posted:
Tue Nov 08, 2005 8:59 am |
|
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.  |
|
|
|
 |
|
|
|
|