Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> BBtoNuke Mods
Author Message
paulfurlong
New Member
New Member



Joined: Dec 20, 2005
Posts: 13

PostPosted: Wed Dec 21, 2005 9:23 am Reply with quote

I've got a problem in phbb 2.0.18 nuke 7.6 3.1patched:


Code:
Warning: main(./../config.php): failed to open stream: No such file or directory in /home/mhd-01/www.nardocalcio.com/htdocs/modules/Forums/admin/admin_avatar.php on line 72


Warning: main(): Failed opening './../config.php' for inclusion (include_path='./:/usr/local/web/php/lib/pear') in /home/mhd-01/www.nardocalcio.com/htdocs/modules/Forums/admin/admin_avatar.php on line 72


What I must do?
 
View user's profile Send private message
CurtisH
Life Cycles Becoming CPU Cycles



Joined: Mar 15, 2004
Posts: 638
Location: West Branch, MI

PostPosted: Wed Dec 21, 2005 9:59 am Reply with quote

Does your modules/Forums/admin/admin_avatar.php lines 69 thru 73 look like this:

Code:


$root_path = "./../../../";
$phpbb_root_path = './../';
require($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'config.'.$phpEx);
require('pagestart.' . $phpEx);

_________________
Those who dream by day are cognizant of many things which escape those who dream only by night. ~Poe 
View user's profile Send private message Visit poster's website Yahoo Messenger
paulfurlong







PostPosted: Wed Dec 21, 2005 10:24 am Reply with quote

CurtisH wrote:
Does your modules/Forums/admin/admin_avatar.php lines 69 thru 73 look like this:

Code:


$root_path = "./../../../";
$phpbb_root_path = './../';
require($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'config.'.$phpEx);
require('pagestart.' . $phpEx);


The lines are similar, no differences...

I've put the config.php file in another folder for security (editing then common.php). I've followed an italian site istrunctions.

Could this error depends from this change?
 
CurtisH







PostPosted: Wed Dec 21, 2005 2:53 pm Reply with quote

Absolutely. You will need to modify the line:

Code:


include($phpbb_root_path . 'config.'.$phpEx);


to reflect the actual location of config.php
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Thu Dec 22, 2005 12:14 am Reply with quote

The Forums config.php in phpNuke shouldn't contain any sensitve information. So why should you hide it?

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
paulfurlong







PostPosted: Thu Dec 22, 2005 3:00 am Reply with quote

CurtisH wrote:
Absolutely. You will need to modify the line:

Code:


include($phpbb_root_path . 'config.'.$phpEx);


to reflect the actual location of config.php


If, for example, config.php is in Forums/NEWFOLDER, how must I change it?
I've made this change because I've read it's useful against lamers.
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Thu Dec 22, 2005 8:49 am Reply with quote

include($phpbb_root_path . '/NEWFOLDER/config.'.$phpEx);

Though I dont see what benefit this will give you other than creating problems with other forum hacks and add-ons.
 
View user's profile Send private message Send e-mail
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> BBtoNuke Mods

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©