You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 293 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Fortress 1.20b phpBBtoNuke Admin Conflict [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
virtuaopolis
Corporal
Corporal


Joined: Oct 07, 2003
Posts: 64


PostPosted: Wed Jun 09, 2004 8:28 pm Reply with quoteBack to top

I am currently using Fortress 1.20b on phpNuke 7.1 with phpBBtoNuke 2.0.6

When i try to acces the "forums" icon in the admin panel (http://thesite.com/modules/Forums/admin/index.php) [signed in as a site admin with full access].

I get this error message:
Warning: main(fortress.php): failed to open stream: No such file or directory in /usr/local/etc/httpd/htdocs/public_html/mainfile.php on line 29

Warning: main(): Failed opening 'fortress.php' for inclusion (include_path='') in /usr/local/etc/httpd/htdocs/public_html/mainfile.php on line 29

Fatal error: Call to undefined function: bards() in /usr/local/etc/httpd/htdocs/public_html/mainfile.php on line 30

Despite the problem accessing the administration panel for the forums, the fortress works fine, I get the emails of the attacks, the CSV and HTML are updated and there are no other problems in the site.

The address to the forums administration does not seem to follow the modules.php?name=OP_HERE designation. Could this be why? Ifso, any sugestions would be wonderfuly appreciated.

THank you in advance

~Percy
Find all posts by virtuaopolisView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Thu Jun 10, 2004 4:52 am Reply with quoteBack to top

That sure is a bug... I'm not too sure what is causing yet.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
madman
Support Mod
Support Mod


Joined: Feb 15, 2004
Posts: 806


PostPosted: Thu Jun 10, 2004 9:29 am Reply with quoteBack to top

In mainfile.php, replace a line:

Code:
include("fortress.php")


With this one:

Code:
function nuke_getRootPath() {
   $ret  = "./";
   if (eregi('\/modules\/[^\/]+\/[^\/]+\/[^\/]+.php$', $_SERVER['PHP_SELF'])) { $ret = "../../../"; }
   else if (eregi('\/modules\/[^\/]+\/[^\/]+.php$', $_SERVER['PHP_SELF'])) { $ret = "../../"; }
   else if (eregi('\/modules\/[^\/]+.php$', $_SERVER['PHP_SELF'])) { $ret = "../"; }
   return $ret;
}
require_once(nuke_getRootPath().'fortress.php');


Be careful that nuke_getRootPath() function also defined by Admin Secure. In that case (and you install Admin Secure as well), simply put this single line for fortress inclusion:

Code:
require_once(nuke_getRootPath().'fortress.php');

_________________
I'm Image
Find all posts by madmanView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger
virtuaopolis
Corporal
Corporal


Joined: Oct 07, 2003
Posts: 64


PostPosted: Thu Jun 10, 2004 2:02 pm Reply with quoteBack to top

Great work madman! Kudos to you! Patched with credits >=]

~percy
Find all posts by virtuaopolisView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Thu Jun 10, 2004 2:34 pm Reply with quoteBack to top

Nice code work madman... Did you write that from running into the same bug?

madman wrote:
In mainfile.php, replace a line:

Code:
include("fortress.php")


With this one:

Code:
function nuke_getRootPath() {
   $ret  = "./";
   if (eregi('\/modules\/[^\/]+\/[^\/]+\/[^\/]+.php$', $_SERVER['PHP_SELF'])) { $ret = "../../../"; }
   else if (eregi('\/modules\/[^\/]+\/[^\/]+.php$', $_SERVER['PHP_SELF'])) { $ret = "../../"; }
   else if (eregi('\/modules\/[^\/]+.php$', $_SERVER['PHP_SELF'])) { $ret = "../"; }
   return $ret;
}
require_once(nuke_getRootPath().'fortress.php');


Be careful that nuke_getRootPath() function also defined by Admin Secure. In that case (and you install Admin Secure as well), simply put this single line for fortress inclusion:

Code:
require_once(nuke_getRootPath().'fortress.php');

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Getyousomeofthis
Sergeant
Sergeant


Joined: Jan 18, 2004
Posts: 128

Location: Tulsa Oklahoma

PostPosted: Thu Jun 10, 2004 3:47 pm Reply with quoteBack to top

Laughing Nice fix madman thanks . This has been bothering me for quite some time.. It was getting old having to remove the Union tap long enough to admin the forums. Awesome work Wink

_________________
Click Here To Join Our CS:Source Game Server!
[img]http://www.dtsbase.com/files/logo.gif[/img]

Last edited by Getyousomeofthis on Fri Jun 11, 2004 7:01 pm; edited 1 time in total
Find all posts by GetyousomeofthisView user's profileSend private messageVisit poster's website
madman
Support Mod
Support Mod


Joined: Feb 15, 2004
Posts: 806


PostPosted: Thu Jun 10, 2004 3:58 pm Reply with quoteBack to top

Glad to hear it solve many problems, not only forum admin access. Very Happy
Maybe it's a good idea to put similar function in upcoming php-nuke version so we able to find actual nuke root directory when we running a script not from root, like phpbb forum admin.

_________________
I'm Image
Find all posts by madmanView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger
Tank863
Lieutenant
Lieutenant


Joined: Feb 21, 2003
Posts: 195

Location: Philadelphia

PostPosted: Fri Jun 11, 2004 6:11 am Reply with quoteBack to top

I am still, even after the code change getting a forbidden error message.
I am unable to access the admin section for my forums...

Crying or Very sad

I am using Nuke 6.5 all patched up, Admin Secure 1.7, Fortress 1.20, Sentinel 1.2,
Find all posts by Tank863View user's profileSend private messageVisit poster's websiteICQ Number
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Fri Jun 11, 2004 8:14 am Reply with quoteBack to top

Chris, it might be time to start disabling packages to see where the problems lies.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Tank863
Lieutenant
Lieutenant


Joined: Feb 21, 2003
Posts: 195

Location: Philadelphia

PostPosted: Fri Jun 11, 2004 12:23 pm Reply with quoteBack to top

That's what I thought...

Like I said before... always my nuke... I will test it out and post the results back...

Hoepfully I can get this thing working again...\

Anyway.. Thanks Paul.. PS: Had my first lesson in PHP coding.. I told my buddy.. I already knew that from messing around with php-nuke.. teach me something new...
Find all posts by Tank863View user's profileSend private messageVisit poster's websiteICQ Number
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Fri Jun 11, 2004 6:40 pm Reply with quoteBack to top

Coolio!

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
madman
Support Mod
Support Mod


Joined: Feb 15, 2004
Posts: 806


PostPosted: Sun Jun 13, 2004 2:57 pm Reply with quoteBack to top

Tank, check your PM.

_________________
I'm Image
Find all posts by madmanView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.043 Seconds - 103 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::