21 Oct 2014
Lenon.com
Home Account Forums Downloads Web Links

errors with bandwidth meter
 
       Lenon.com Forum Index » Modules     View previous topic :: View next topic  
Author Message
jaded
Newbie
Newbie


Joined: Nov 13, 2003
Posts: 2

Posted: Thu May 05, 2005 7:42 am    Post subject: errors with bandwidth meter Reply with quote

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
View user's profile
Author Message
VinDSL
Site Admin
Site Admin


Joined: Apr 03, 2003
Posts: 68
Location: Arizona (USA) Admin/mod: Disipal Designs Admin/mod: Nuke Cops

Posted: Thu May 05, 2005 1:27 pm    Post subject: Reply with quote

Modify modules/Bandwidth_Meter_DSL/config.inc.php using the following code and let me know if it helps... Wink

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
View user's profile Visit poster's website
Author Message
jaded
Newbie
Newbie


Joined: Nov 13, 2003
Posts: 2

Posted: Thu May 05, 2005 10:45 pm    Post subject: Reply with quote

yes, that fixed it perfectly. thank you so much Razz
Back to top
View user's profile
Display posts from previous:   
       Lenon.com Forum Index » Modules All times are GMT - 5 Hours
Page 1 of 1
Jump to:  
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 2.0.19 © 2002, 2007 phpBB Group
FlowControl Forums Theme by Disipal Designs

Copyright 1996-2014 - Lenon.com - All Rights Reserved.

This Website is Powered by an Enhanced Version of PHP-Nuke
The Most Advanced Content Management System in the World.

Script generation time: 0.7346 seconds  (PHP 99% - MySQL 1%)
Queries: 19 | Views last 5 mins: 62 | Server load: Perfect  (0.33)
Disipal Designs