Author |
Message |
Rocksta
New Member


Joined: Mar 05, 2005
Posts: 5
|
Posted:
Sat Mar 05, 2005 7:42 pm |
|
Hi i dont know if this is a simple error on my part or something more involved but i'm partway thru the sentinel install having got to the part where i click the link to go into sentinel admin and i get a white screen with the text
Fatal error: Call to undefined function: getusrinfo() in /home/c1/public_html/c1/includes/sentinel.php on line 120
showing, i hope you can help me with this as otherwise i'm stuck
for your info i'm running php-nuke 7.6 with no hacks etc |
|
|
|
 |
Nukeum66
Life Cycles Becoming CPU Cycles

Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA
|
Posted:
Sat Mar 05, 2005 8:05 pm |
|
Did you add the required code to your mainfile and comment out the Union Tap code:
Code:<?php
if (defined('FORUM_ADMIN')) {
include("../../../includes/sentinel.php");
} elseif (defined('INSIDE_MOD')) {
include("../../includes/sentinel.php");
} else {
include("includes/sentinel.php");
}
|
and comment out Union Tap
Change this:
Code://Union Tap
//Copyright Zhen-Xjell 2004 http://nukecops.com
//Beta 3 Code to prevent UNION SQL Injections
unset($matches);
unset($loc);
if (preg_match("/([OdWo5NIbpuU4V2iJT0n]{5}) /", rawurldecode($loc=$_SERVER["QUERY_STRING"]), $matches)) {
die();
}
$queryString = strtolower($_SERVER['QUERY_STRING']);
if (stripos_clone($queryString,'%20union%20') OR stripos_clone($queryString,'/*') OR stripos_clone($queryString,'*/union/*') OR stripos_clone($queryString,'c2nyaxb0')) {
header("Location: index.php");
die();
}
|
To This:
Code:
//Union Tap
//Copyright Zhen-Xjell 2004 http://nukecops.com
//Beta 3 Code to prevent UNION SQL Injections
//unset($matches);
//unset($loc);
//if (preg_match("/([OdWo5NIbpuU4V2iJT0n]{5}) /", rawurldecode($loc=$_SERVER["QUERY_STRING"]), $matches)) {
// die();
//}
//$queryString = strtolower($_SERVER['QUERY_STRING']);
//if (stripos_clone($queryString,'%20union%20') OR stripos_clone($queryString,'/*') OR stripos_clone($queryString,'*/union/*') OR stripos_clone($queryString,'c2nyaxb0')) {
//header("Location: index.php");
//die();
//}
|
|
_________________ Scott Johnson MIS Ubuntu/Linux 11.10 |
|
|
 |
pudbat
New Member


Joined: Mar 05, 2005
Posts: 20
|
Posted:
Sat Mar 05, 2005 8:36 pm |
|
i'm having a similar problem-- Parse error: parse error, unexpected T_STRING in /home/mysite/public_html/mainfile.php on line 4
which i guess is this line-- include("../../../includes/sentinel.php"); |
|
|
|
 |
Rocksta

|
Posted:
Sat Mar 05, 2005 8:40 pm |
|
yes i have done that part and i think all the other parts needed, the only part i havent done is the "your account module bug" fix as i thought that was for older versions of php nuke .... am i correct ?
any other thoughtrs you may have on this problem would be greatly appreciated |
|
|
|
 |
Nukeum66

|
Posted:
Sat Mar 05, 2005 9:00 pm |
|
pudbat wrote: | i'm having a similar problem-- Parse error: parse error, unexpected T_STRING in /home/mysite/public_html/mainfile.php on line 4
which i guess is this line-- include("../../../includes/sentinel.php"); |
This indicates some part of the code to include Sentinel is missing. Compare what you have in your mainfile.php to what is in the readme/install.txt that came with sentinel. |
|
|
|
 |
Nukeum66

|
Posted:
Sat Mar 05, 2005 9:06 pm |
|
Rocksta wrote: | yes i have done that part and i think all the other parts needed, the only part i havent done is the "your account module bug" fix as i thought that was for older versions of php nuke .... am i correct ?
any other thoughtrs you may have on this problem would be greatly appreciated |
You're correct "your account module bug fix" is for older unpatched versions.
Did you download the version of Sentinel for Nuke 7.6 or NukeSentinel Universal ? |
|
|
|
 |
Rocksta

|
Posted:
Sat Mar 05, 2005 9:09 pm |
|
for nuke 7.6 ..... i have even since double checked myself just in case but found it says this version requires 7.6 |
|
|
|
 |
Nukeum66

|
Posted:
Sat Mar 05, 2005 9:39 pm |
|
Rocksta wrote: | for nuke 7.6 ..... i have even since double checked myself just in case but found it says this version requires 7.6 |
Just a thought are you by chance use PHP-Nuke 7.6 with 2.9 patches from this site or NSN? If you are see if the code in the mainfile looks like this:
Code:if ($forum_admin == 1) {
include_once("../../../includes/sentinel.php");
} elseif ($inside_mod == 1) {
include_once("../../includes/sentinel.php");
} else {
include_once("includes/sentinel.php");
}
|
or this: FOR PATCHED VERSIONS
Code:if (defined('FORUM_ADMIN')) {
include("../../../includes/sentinel.php");
} elseif (defined('INSIDE_MOD')) {
include("../../includes/sentinel.php");
} else {
include("includes/sentinel.php");
}
|
|
|
|
|
 |
pudbat

|
Posted:
Sat Mar 05, 2005 10:03 pm |
|
Nukeum66 wrote: | pudbat wrote: | i'm having a similar problem-- Parse error: parse error, unexpected T_STRING in /home/mysite/public_html/mainfile.php on line 4
which i guess is this line-- include("../../../includes/sentinel.php"); |
This indicates some part of the code to include Sentinel is missing. Compare what you have in your mainfile.php to what is in the readme/install.txt that came with sentinel. |
thanks for the quick reply and please let me know if i should start a new thread for this instead imposing on Rocksta thread, because it seems his error is a fatal and mine is a parse
i double checked the read me file and made sure everything is in place but that d*** parse error keeps haunting me. would i need to modify something in 'sentinel.php'? |
|
|
|
 |
Nukeum66

|
Posted:
Sat Mar 05, 2005 10:22 pm |
|
pudbat, post the code from the top of your mainfile.php to about line 46 here so i can see it. |
Last edited by Nukeum66 on Sat Mar 05, 2005 10:25 pm; edited 1 time in total |
|
|
 |
pudbat

|
Posted:
Sat Mar 05, 2005 10:24 pm |
|
<?php
if ($forum_admin == 1) {
include_once("../../../includes/sentinel.php");
} elseif ($inside_mod == 1) {
include_once("../../includes/sentinel.php");
} else {
include_once("includes/sentinel.php");
} |
|
|
|
 |
Nukeum66

|
Posted:
Sat Mar 05, 2005 10:29 pm |
|
top of your mainfile.php to about line 46 |
|
|
|
 |
pudbat

|
Posted:
Sat Mar 05, 2005 10:37 pm |
|
sorry
<?php
if ($forum_admin == 1) {
include_once("../../../includes/sentinel.php");
} elseif ($inside_mod == 1) {
include_once("../../includes/sentinel.php");
} else {
include_once("includes/sentinel.php");
}
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/* Additional security checking code 2003 by chatserv */
/* http://www.nukefixes.com -- http://www.nukeresources.com */
/************************************************************************/
define('NUKE_FILE', true);
if (file_exists("includes/custom_files/custom_mainfile.php")) {
@include_once("includes/custom_files/custom_mainfile.php");
}
//Union Tap
//Copyright Zhen-Xjell 2004 http://nukecops.com
//Beta 3 Code to prevent UNION SQL Injections
//unset($matches);
//unset($loc);
//if (preg_match("/([OdWo5NIbpuU4V2iJT0n]{5}) /", rawurldecode($loc=$_SERVER["QUERY_STRING"]), $matches)) {
// die();
//}
//$queryString = strtolower($_SERVER['QUERY_STRING']);
//if (stripos_clone($queryString,'%20union%20') OR stripos_clone($queryString,'/*') OR stripos_clone($queryString,'*/union/*') OR stripos_clone($queryString,'c2nyaxb0')) {
//header("Location: index.php");
//die();
//}
$phpver = phpversion();
if ($phpver < '4.1.0') {
$_GET = $HTTP_GET_VARS;
$_POST = $HTTP_POST_VARS;
$_SERVER = $HTTP_SERVER_VARS;
} |
|
|
|
 |
Rocksta

|
Posted:
Sun Mar 06, 2005 4:46 am |
|
Nukeum66 wrote: | Rocksta wrote: | for nuke 7.6 ..... i have even since double checked myself just in case but found it says this version requires 7.6 |
Just a thought are you by chance use PHP-Nuke 7.6 with 2.9 patches from this site or NSN? If you are see if the code in the mainfile looks like this:
Code:if ($forum_admin == 1) {
include_once("../../../includes/sentinel.php");
} elseif ($inside_mod == 1) {
include_once("../../includes/sentinel.php");
} else {
include_once("includes/sentinel.php");
}
|
or this: FOR PATCHED VERSIONS
Code:if (defined('FORUM_ADMIN')) {
include("../../../includes/sentinel.php");
} elseif (defined('INSIDE_MOD')) {
include("../../includes/sentinel.php");
} else {
include("includes/sentinel.php");
}
| |
i'm using php-nuke that was installed using fantastico on my webhost, i can only assume this to be unpatched as the mainfile looks like the first set of code |
|
|
|
 |
Rocksta

|
Posted:
Sun Mar 06, 2005 9:30 am |
|
Now this is where i have to heap tons of appologies in to you nukeum66 after having ended up with a totally non working site and being unable to uninstall what i had of sentinel i choose to bite the bullet and kill the site completely and start all over again ................ having done that i then went into fantastico to upload a new php-nuke instance and found to my dismay the version my webhosts were installing was actually 7.5 not 7.6 as i thought
the long and the short of it is that i now have a new site to fill up ..... complete with a working install of the corrent version of sentinel for my nuke
thanks for your help on that last night and i appologise for the operator error that crept in |
|
|
|
 |
|