PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Rocksta
New Member
New Member


Joined: Mar 05, 2005
Posts: 5

PostPosted: Sat Mar 05, 2005 7:42 pm Reply with quote Back to top

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 Sad

for your info i'm running php-nuke 7.6 with no hacks etc
View user's profile Send private message
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Sat Mar 05, 2005 8:05 pm Reply with quote Back to top

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();
//}
View user's profile Send private message Visit poster's website
pudbat
New Member
New Member


Joined: Mar 05, 2005
Posts: 20

PostPosted: Sat Mar 05, 2005 8:36 pm Reply with quote Back to top

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");
View user's profile Send private message
Rocksta
New Member
New Member


Joined: Mar 05, 2005
Posts: 5

PostPosted: Sat Mar 05, 2005 8:40 pm Reply with quote Back to top

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
View user's profile Send private message
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Sat Mar 05, 2005 9:00 pm Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Sat Mar 05, 2005 9:06 pm Reply with quote Back to top

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 ?
View user's profile Send private message Visit poster's website
Rocksta
New Member
New Member


Joined: Mar 05, 2005
Posts: 5

PostPosted: Sat Mar 05, 2005 9:09 pm Reply with quote Back to top

for nuke 7.6 ..... i have even since double checked myself just in case Smile but found it says this version requires 7.6
View user's profile Send private message
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Sat Mar 05, 2005 9:39 pm Reply with quote Back to top

Rocksta wrote:
for nuke 7.6 ..... i have even since double checked myself just in case Smile 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");
}
View user's profile Send private message Visit poster's website
pudbat
New Member
New Member


Joined: Mar 05, 2005
Posts: 20

PostPosted: Sat Mar 05, 2005 10:03 pm Reply with quote Back to top

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'?
View user's profile Send private message
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Sat Mar 05, 2005 10:22 pm Reply with quote Back to top

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
View user's profile Send private message Visit poster's website
pudbat
New Member
New Member


Joined: Mar 05, 2005
Posts: 20

PostPosted: Sat Mar 05, 2005 10:24 pm Reply with quote Back to top

<?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");
}
View user's profile Send private message
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Sat Mar 05, 2005 10:29 pm Reply with quote Back to top

top of your mainfile.php to about line 46
View user's profile Send private message Visit poster's website
pudbat
New Member
New Member


Joined: Mar 05, 2005
Posts: 20

PostPosted: Sat Mar 05, 2005 10:37 pm Reply with quote Back to top

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 */
/*
Only registered users can see links on this board!
Get registered or login to the forums!
*/
/* */
/* 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 */
/*
Only registered users can see links on this board!
Get registered or login to the forums!
--
Only registered users can see links on this board!
Get registered or login to the forums!
*/
/************************************************************************/
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
Only registered users can see links on this board!
Get registered or login to the forums!

//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;
}
View user's profile Send private message
Rocksta
New Member
New Member


Joined: Mar 05, 2005
Posts: 5

PostPosted: Sun Mar 06, 2005 4:46 am Reply with quote Back to top

Nukeum66 wrote:
Rocksta wrote:
for nuke 7.6 ..... i have even since double checked myself just in case Smile 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
View user's profile Send private message
Rocksta
New Member
New Member


Joined: Mar 05, 2005
Posts: 5

PostPosted: Sun Mar 06, 2005 9:30 am Reply with quote Back to top

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 Sad

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
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum