Author |
Message |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sun Sep 05, 2004 4:06 pm |
|
As per the Installation instructions, add these lines right after the opening <? PHP tag in mainfile.phpCode: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™ 2.0.2, |
_________________ "The Daytona 500 is ours! We won it, we won it, we won it!", Dale Earnhardt, February 15th, 1998, Daytona 500 |
|
 |
 |
Rage
Insane

Joined: Jul 30, 2004
Posts: 85
|
Posted:
Mon Sep 06, 2004 10:04 am |
|
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 |
|
|
 |
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:
http://www.pfadis-vorarlberg.com/nuke
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. |
_________________ Classic Mini rules the bends & bends the rules!
[img] |
|
|
 |
Raven

|
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:
http://www.pfadis-vorarlberg.com/nuke
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

|
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
Member Emeritus

Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico
|
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

|
Posted:
Thu Sep 30, 2004 12:22 pm |
|
Hmmm. I just looked in the 2.0.2 readme and I seeQuote: | 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

|
Posted:
Fri Oct 01, 2004 11:37 am |
|
It's in there - Look at #3 and then under INSTALLING:. |
|
|
|
 |
chatserv

|
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

|
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

|
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

|
Posted:
Tue Nov 23, 2004 11:47 am |
|
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: http://www.YOURDOMAIN.com/admin.php
2) Then, in the address line of your browser, erase the admin.php and replace it
with nsnst_ip2country.php
For example: http://www.YOURDOMAIN.com/nsnst_ip2country.php
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

|
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

|
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.phpCode: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

|
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: 244
Location: Flying to close to the sun
|
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

|
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

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