 |
 |
 |
 |
 |
| Author |
Message |
jaded Newbie


Joined: Nov 13, 2003 Posts: 2
|
Posted: Thu May 05, 2005 8:42 am Post subject: errors with bandwidth meter |
|
|
I am installing this on a friends site. it is not working correctly for some reason.
when i click on the icon in the admin section i get these errros. Any help would be greatly appreciated. Thanks
| Code: |
Warning: main(): open_basedir restriction in effect. File(/config.php) is not within the allowed path(s): (/home/*****/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/****/public_html/modules/Bandwidth_Meter_DSL/config.inc.php on line 19
Warning: main(/config.php): failed to open stream: Operation not permitted in /home/****/public_html/modules/Bandwidth_Meter_DSL/config.inc.php on line 19
Warning: main(): open_basedir restriction in effect. File(/config.php) is not within the allowed path(s): (/home/*****/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/*****/public_html/modules/Bandwidth_Meter_DSL/config.inc.php on line 19
Warning: main(/config.php): failed to open stream: Operation not permitted in /home/******/public_html/modules/Bandwidth_Meter_DSL/config.inc.php on line 19
Warning: main(): Failed opening '/config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*****/public_html/modules/Bandwidth_Meter_DSL/config.inc.php on line 19 |
|
|
| Back to top |
|
|
 |
 |
 |
 |
 |
 |
 |
 |
| Author |
Message |
VinDSL Site Admin


Joined: Apr 03, 2003 Posts: 68 Location: Arizona (USA) Admin/mod: Disipal Designs Admin/mod: Nuke Cops
|
Posted: Thu May 05, 2005 2:27 pm Post subject: |
|
|
Modify modules/Bandwidth_Meter_DSL/config.inc.php using the following code and let me know if it helps...
Find:
| Code: |
<snip>
/******************************************************************************************************/
/* PHP-NUKE Module: Bandwidth Meter DSL 1.02
/* Copyright (c) 2005 by VinDSL (perfect.pecker@lycos.co.uk)
/* http://www.Lenon.com
/* http://www.Disipal.net
/* http://www.NukeCops.com
/*
/* 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.
/******************************************************************************************************/
/**
* Set this to: include("../../../config.php");
* if you run 'config.php' outside your web path
*/
include("../../config.php");
global $dbhost, $dbuname, $dbpass, $dbname;
/**
* Set this to true if you are using MySQL as the backend database. Currently
* this is the only available method to view speed tests from the Admin page.
*/
$mysql = True;
<snip> |
Change to:
| Code: |
<snip>
/******************************************************************************************************/
/* PHP-NUKE Module: Bandwidth Meter DSL 1.03
/* Copyright (c) 2005 by VinDSL (perfect.pecker@lycos.co.uk)
/* http://www.Lenon.com
/* http://www.Disipal.net
/* http://www.NukeCops.com
/*
/* 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.
/*****************************************************************************************************/
/**
* Set to this, if you run 'config.php' outside your web path
*/
// if (eregi("admin.php", $_SERVER['PHP_SELF'])){
// include("../config.php");
// }else{
// include("../../../config.php");
// }
if (eregi("admin.php", $_SERVER['PHP_SELF'])){
include("config.php");
}else{
include("../../config.php");
}
global $dbhost, $dbuname, $dbpass, $dbname;
/**
* Set this to true if you are using MySQL as the backend database. Currently
* this is the only available method to view speed tests from the Admin page.
*/
$mysql = True;
<snip> |
_________________ .::Buds not bombs::. |
|
| Back to top |
|
|
 |
 |
 |
 |
 |
 |
 |
 |
| Author |
Message |
jaded Newbie


Joined: Nov 13, 2003 Posts: 2
|
Posted: Thu May 05, 2005 11:45 pm Post subject: |
|
|
yes, that fixed it perfectly. thank you so much  |
|
| Back to top |
|
|
 |
 |
 |
 |
| |
 |