PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  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
DataMatrix
New Member
New Member


Joined: May 04, 2005
Posts: 2

PostPosted: Wed May 04, 2005 6:21 pm Reply with quote Back to top

I tried every single thing to do and I still get this error:
"Warning: main(config.php): failed to open stream: No such file or directory in d:\appserv\www\includes\nukesentinel.php on line 37

Fatal error: main(): Failed opening required 'config.php' (include_path='.;c:\php4\pear') in d:\appserv\www\includes\nukesentinel.php on line 37"

Any help would be appreciated Smile
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Wed May 04, 2005 6:40 pm Reply with quote Back to top

It can't find something its trying to open. What is line 37 in your \includes\nukesentinel.php? You can open that file with any text editor or notepad.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed May 04, 2005 11:13 pm Reply with quote Back to top

What version of phpnuke?
What version of NukeSentinel(TM)?
What patch level of Chatserv's?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
chatserv
The Mouse Is Extension Of Arm


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

PostPosted: Thu May 05, 2005 12:51 am Reply with quote Back to top

This means the files have a mix of $forum_admin and FORUM_ADMIN which is the correct one to use, these have to be edited in mainfile.php, db.php, pagestart.php, common.php and sentinel.php, they all must match, in essence:
if ($forum_admin == 1) {
is incorrect, it should be:
if (defined('FORUM_ADMIN')) {
in the listed files, same with:
$forum_admin = 1;
which should be:
define('FORUM_ADMIN', true);
View user's profile Send private message Visit poster's website
DataMatrix
New Member
New Member


Joined: May 04, 2005
Posts: 2

PostPosted: Thu May 05, 2005 10:28 am Reply with quote Back to top

Ok, working now, thanks chatserv and thanks for the responses kguske and Raven Smile
View user's profile Send private message
ring_c
Involved
Involved


Joined: Dec 28, 2003
Posts: 276
Location: Israel

PostPosted: Wed May 11, 2005 5:35 am Reply with quote Back to top

chatserv wrote:
This means the files have a mix of $forum_admin and FORUM_ADMIN which is the correct one to use, these have to be edited in mainfile.php, db.php, pagestart.php, common.php and sentinel.php, they all must match, in essence:
if ($forum_admin == 1) {
is incorrect, it should be:
if (defined('FORUM_ADMIN')) {
in the listed files, same with:
$forum_admin = 1;
which should be:
define('FORUM_ADMIN', true);


Thanks alot, chatserv. I had the same problem as well, and now I've fixed it according to your direction.

I have only one question. There are 2 common.php files. one under /forums/ and the other under /forums/admin/ .

The one under the admin dir. contains this code:

Code:
$forum_admin = "1";


Should it be also replaced with
Code:
define('FORUM_ADMIN', true);
?

TIA!
View user's profile Send private message Visit poster's website
chatserv
The Mouse Is Extension Of Arm


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

PostPosted: Wed May 11, 2005 10:27 am Reply with quote Back to top

Delete the one under forums/admin
View user's profile Send private message Visit poster's website
ring_c
Involved
Involved


Joined: Dec 28, 2003
Posts: 276
Location: Israel

PostPosted: Wed May 11, 2005 3:05 pm Reply with quote Back to top

Quote:

Delete the one under forums/admin

You mean remove the whole file?
Anyway, I've renamed it and it all seems to work...
View user's profile Send private message Visit poster's website
chatserv
The Mouse Is Extension Of Arm


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

PostPosted: Wed May 11, 2005 6:10 pm Reply with quote Back to top

I meant the common.php file found in the forum's admin directory.
View user's profile Send private message Visit poster's website
dsfreak
New Member
New Member


Joined: May 12, 2005
Posts: 7

PostPosted: Sat May 14, 2005 8:19 am Reply with quote Back to top

Ok, where can I find all these files?
View user's profile Send private message
dsfreak
New Member
New Member


Joined: May 12, 2005
Posts: 7

PostPosted: Sat May 14, 2005 8:45 am Reply with quote Back to top

Ok, I have found the following in the following directories....


common.php in root/modules/Forums
mainfile.php in root
db.php in root/db
sentinel.php in (havent found, but did find NukeSentinel.php)in root/includes
pagestart.php in root/modules/Forums/admin (but it doesn't have any of the code listed above.... help plz!!!)
View user's profile Send private message
chatserv
The Mouse Is Extension Of Arm


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

PostPosted: Sat May 14, 2005 10:25 am Reply with quote Back to top

The files you listed are the correct ones, post your pagestart.php file here, place the code within code bb tags and disable smilies and html when posting it.
View user's profile Send private message Visit poster's website
dsfreak
New Member
New Member


Joined: May 12, 2005
Posts: 7

PostPosted: Sat May 14, 2005 11:57 am Reply with quote Back to top

Ok, the one under forums/admin?
View user's profile Send private message
chatserv
The Mouse Is Extension Of Arm


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

PostPosted: Sat May 14, 2005 1:20 pm Reply with quote Back to top

Yes, it should be the only one.
View user's profile Send private message Visit poster's website
dsfreak
New Member
New Member


Joined: May 12, 2005
Posts: 7

PostPosted: Sat May 14, 2005 2:10 pm Reply with quote Back to top

Ok, here it is....
Code:
<?php
/***************************************************************************
 *                               pagestart.php
 *                            -------------------
 *   begin                : Thursday, Aug 2, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                :
Only registered users can see links on this board!
Get registered or login to the forums!

 *
 *   $Id: pagestart.php,v 1.1.2.6 2003/05/06 20:18:42 acydburn Exp $
 *
 *
 ***************************************************************************/
/***************************************************************************
* phpbb2 forums port version 2.0.5 (c) 2003 - Nuke Cops (http://nukecops.com)
*
* Ported by Nuke Cops to phpbb2 standalone 2.0.5 Test
* and debugging completed by the Elite Nukers and site members.
*
* You run this package at your sole risk. Nuke Cops and affiliates cannot
* be held liable if anything goes wrong. You are advised to test this
* package on a development system. Backup everything before implementing
* in a production environment. If something goes wrong, you can always
* backout and restore your backups.
*
* Installing and running this also means you agree to the terms of the AUP
* found at Nuke Cops.
*
* This is version 2.0.5 of the phpbb2 forum port for PHP-Nuke. Work is based
* on Tom Nitzschner's forum port version 2.0.6. Tom's 2.0.6 port was based
* on the phpbb2 standalone version 2.0.3. Our version 2.0.5 from Nuke Cops is
* now reflecting phpbb2 standalone 2.0.5 that fixes some bugs and the
* invalid_session error message.
***************************************************************************/
/***************************************************************************
 *   This file is part of the phpBB2 port to Nuke 6.0 (c) copyright 2002
 *   by Tom Nitzschner (tom@toms-home.com)
 *   http://bbtonuke.sourceforge.net (or http://www.toms-home.com)
 *
 *   As always, make a backup before messing with anything. All code
 *   release by me is considered sample code only. It may be fully
 *   functual, but you use it at your own risk, if you break it,
 *   you get to fix it too. No waranty is given or implied.
 *
 *   Please post all questions/request about this port on http://bbtonuke.sourceforge.net first,
 *   then on my site. All original header code and copyright messages will be maintained
 *   to give credit where credit is due. If you modify this, the only requirement is
 *   that you also maintain all original copyright messages. All my work is released
 *   under the GNU GENERAL PUBLIC LICENSE. Please see the README for more information.
 *
 ***************************************************************************/
/***************************************************************************
 *
 *   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, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

if (!defined('IN_PHPBB'))
{
        die("Hacking attempt");
}

define('IN_ADMIN', true);
$forum_admin = 1;
include("../../../mainfile.php");
include($phpbb_root_path.'common.'.$phpEx);
//
// Do a check to see if the nuke user is still valid.
//

global $admin;
$admin = base64_decode($admin);
$admin = explode(":", $admin);
$aid = "$admin[0]";
$sql = "SELECT radminforum, radminsuper FROM ".$prefix."_authors WHERE aid='$aid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if (!is_admin($admin) AND ($row[radminsuper] != 1 OR $row[radminforum] != 1)) {
    message_die(GENERAL_MESSAGE, "You are not authorised to administer this board");
}
/*
global $cookie, $nukeuser;
$user = base64_decode($user);
$cookie = explode(":", $user);
$sql = "SELECT user_id, user_password FROM " . USERS_TABLE . "
        WHERE username='$cookie[1]'";
$result = $db->sql_query($sql);
if(!$result) {
    message_die(GENERAL_ERROR, 'Could not query user account', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
if ($cookie[2] == $row['user_password'] && $row['user_password'] != "") {
    $nukeuser = $user;
} else {
    unset($user);
    unset($cookie);
    message_die(GENERAL_MESSAGE, "You are not authorised to administer this board");
}
*/
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX, $nukeuser);
init_userprefs($userdata);
//
// End session management
//
/*
if( !$userdata['session_logged_in'] )
{
        $header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', $_SERVER['SERVER_SOFTWARE']) ) ? 'Refresh: 0; URL=' : 'Location: ';
        header($header_location . '../../../' . append_sid("login.$phpEx?redirect=admin/"));
        exit;
}
else if( $userdata['user_level'] != ADMIN )
{
        message_die(GENERAL_MESSAGE, $lang['Not_admin']);
}
*/
if ( empty($no_page_header) )
{
        // Not including the pageheader can be neccesarry if META tags are
        // needed in the calling script.
        include('./page_header_admin.'.$phpEx);
}

?>


What are you gonna do, edit it for me? Just post it here, or pm me with it
View user's profile Send private message
chatserv
The Mouse Is Extension Of Arm


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

PostPosted: Sat May 14, 2005 3:18 pm Reply with quote Back to top

Code:
<?php
/***************************************************************************
 *                               pagestart.php
 *                            -------------------
 *   begin                : Thursday, Aug 2, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                :
Only registered users can see links on this board!
Get registered or login to the forums!

 *
 *   $Id: pagestart.php,v 1.1.2.6 2003/05/06 20:18:42 acydburn Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   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, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

if (!defined('IN_PHPBB'))
{
        die("Hacking attempt");
}

define('IN_ADMIN', true);
define('FORUM_ADMIN', true);
define("PHPBB_ROOT_PATH", $phpbb_root_path);
define("PHPBB_PHPEX", $phpEx);
include("../../../mainfile.php");
$phpbb_root_path = PHPBB_ROOT_PATH;
$phpEx = PHPBB_PHPEX;
include($phpbb_root_path.'common.'.$phpEx);
//
// Do a check to see if the nuke user is still valid.
//

global $admin;
$admin = base64_decode($admin);
$admin = explode(":", $admin);
$aid = "$admin[0]";
$sql = "SELECT radminforum, radminsuper FROM ".$prefix."_authors WHERE aid='$aid'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if (!is_admin($admin) AND ($row[radminsuper] != 1 OR $row[radminforum] != 1)) {
    message_die(GENERAL_MESSAGE, "You are not authorised to administer this board");
}
/*
global $cookie, $nukeuser;
$user = addslashes(base64_decode($user));
$cookie = explode(":", $user);
$sql = "SELECT user_id, user_password FROM " . USERS_TABLE . "
        WHERE username='$cookie[1]'";
$result = $db->sql_query($sql);
if(!$result) {
    message_die(GENERAL_ERROR, 'Could not query user account', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
if ($cookie[2] == $row['user_password'] && $row['user_password'] != "") {
    $nukeuser = $user;
} else {
    unset($user);
    unset($cookie);
    message_die(GENERAL_MESSAGE, "You are not authorised to administer this board");
}
*/
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX, $nukeuser);
init_userprefs($userdata);
//
// End session management
//
/*
if( !$userdata['session_logged_in'] )
{
        $header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', $_SERVER['SERVER_SOFTWARE']) ) ? 'Refresh: 0; URL=' : 'Location: ';
        header($header_location . '../../../' . append_sid("login.$phpEx?redirect=admin/"));
        exit;
}
else if( $userdata['user_level'] != ADMIN )
{
        message_die(GENERAL_MESSAGE, $lang['Not_admin']);
}
*/
if ( empty($no_page_header) )
{
        // Not including the pageheader can be neccesarry if META tags are
        // needed in the calling script.
        include('./page_header_admin.'.$phpEx);
}

?>
View user's profile Send private message Visit poster's website
Mike2098
New Member
New Member


Joined: May 30, 2005
Posts: 10

PostPosted: Mon May 30, 2005 7:04 am Reply with quote Back to top

I had a simular problem with my phpnuke platinum 7.6.0 so I cleared the database and removed the first 8 lines from my mainfile my site works fine I just canot use sentinal what version would you recomend I install is the 2.1.1 version ok or is there a better version that is compatible with my platinum version ??
thanks
View user's profile Send private message
chatserv
The Mouse Is Extension Of Arm


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

PostPosted: Mon May 30, 2005 8:01 am Reply with quote Back to top

What lines were those?
View user's profile Send private message Visit poster's website
Mike2098
New Member
New Member


Joined: May 30, 2005
Posts: 10

PostPosted: Mon May 30, 2005 8:45 am Reply with quote Back to top

The ones relating to sentinal in mainfile.php,

I have now gone back to 2.1.1 the one that comes with platinum 2.2.0 and it seems to be working fine can goto forum admin my games save high scores etc all looking good. I would like to update but not if it will cause too meany problems.
View user's profile Send private message
chatserv
The Mouse Is Extension Of Arm


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

PostPosted: Mon May 30, 2005 10:02 am Reply with quote Back to top

I downloaded Platinum 7.6.0 and found odd that techgfx used instances of:
Code:
if ($forum_admin == 1) {

instead of:
Code:
if (defined('FORUM_ADMIN')) {

seeing how he was the one that uncovered that vulnerability.
View user's profile Send private message Visit poster's website
Mike2098
New Member
New Member


Joined: May 30, 2005
Posts: 10

PostPosted: Mon May 30, 2005 10:20 am Reply with quote Back to top

It does seem a bit strange, still he is buisy on his next release maybe he will have included sentinal in the update as every one seems to install it !! we shall see as I said its all working at the moment so I will wait and see what comes out next!
View user's profile Send private message
sting
Involved
Involved


Joined: Sep 23, 2003
Posts: 460
Location: Somewhere out there...

PostPosted: Fri Jun 03, 2005 11:23 pm Reply with quote Back to top

Just as an FYI, having uploaded a clean 7.4 site with the 3.0 patches, I still had to make the appropriate changes to the pagestart, db, and common files - they still had the former variable structure.

Thanks for posting it clearly as usual Chat, once I made the changes, it all came up fine.

-sting
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
chatserv
The Mouse Is Extension Of Arm


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

PostPosted: Fri Jun 03, 2005 11:35 pm Reply with quote Back to top

I double checked the 7.4 patch and it has all changes applied.
View user's profile Send private message Visit poster's website
sting
Involved
Involved


Joined: Sep 23, 2003
Posts: 460
Location: Somewhere out there...

PostPosted: Fri Jun 03, 2005 11:41 pm Reply with quote Back to top

Odd.... How very odd. Of course I have been staring at this thing now for 2 or 3 hours straight. LOL

In any case, the fixed worked. You are the man.

-sting
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
chatserv
The Mouse Is Extension Of Arm


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

PostPosted: Fri Jun 03, 2005 11:50 pm Reply with quote Back to top

I know, it's odd to me as well, you can see an example here of 3.0's db.php:
Only registered users can see links on this board!
Get registered or login to the forums!


And the same file is present in the zip.
View user's profile Send private message Visit poster's website
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