Joshua15864
Hangin' Around

Joined: Nov 20, 2005
Posts: 30
|
Posted:
Wed Nov 23, 2005 5:53 pm |
|
I uploaded all the files, edited db.php and config.php. www.josh-inc.net/php/html . and Im still getting that message, blah. Why? Here is my db.php and config.php file code, tell me if theres anything else i have to edit. I really appreciate ur patients and help raven and others. There will be a nice block with ur site advertised on my site.
Config - I have edited pw's and such with ---
Code:
<?php
######################################################################
# PHP-NUKE: Advanced Content Management System
# ============================================
#
# Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com)
# http://phpnuke.org
#
# This module is to configure the main options for your site
#
# 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.
######################################################################
######################################################################
# Database & System Config
#
# dbhost: mysql47.secureserver.net
# dbuname: nuke_1
# dbpass: ---
# dbname: nuke_1
# $prefix: nuke
# $user_prefix: nuke
# $dbtype: MySQL
#
#
#
# $sitekey: 1124
#
# $gfx_chk: Set the graphic security code on every login screen,
# You need to have GD extension installed:
# 0: No check
# 1: Administrators login only
# 2: Users login only
# 3: New users registration only
# 4: Both, users login and new users registration only
# 5: Administrators and users login only
# 6: Administrators and new users registration only
# 7: Everywhere on all login options (Admins and Users)
# NOTE: If you aren't sure set this value to 0
# $subscription_url: If you manage subscriptions on your site, you
# must write here the url of the subscription
# information/renewal page. This will send by
# email if set.
# $admin_file: Administration panel filename. "admin" by default for
# "admin.php". To improve security please rename the file
# "admin.php" and change the $admin_file value to the
# new filename (without the extension .php)
######################################################################
$dbhost = "mysql47.secureserver.net";
$dbuname = "nuke_1";
$dbpass = "---";
$dbname = "nuke";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "1124";
$gfx_chk = 0;
$subscription_url = "";
$admin_file = "admin";
/*********************************************************************/
/* You finished to configure the Database. Now you can change all */
/* you want in the Administration Section. To enter just launch */
/* you web browser pointing to http://yourdomain.com/admin.php */
/* */
/* Remeber to go to Settings section where you can configure your */
/* new site. In that menu you can change all you need to change. */
/* */
/* Congratulations! now you have an automated news portal! */
/* Thanks for choose PHP-Nuke: The Future of the Web */
/*********************************************************************/
// DO NOT TOUCH ANYTHING BELOW THIS LINE UNTIL YOU KNOW WHAT YOU'RE DOING
$reasons = array("As Is",
"Offtopic",
"Flamebait",
"Troll",
"Redundant",
"Insighful",
"Interesting",
"Informative",
"Funny",
"Overrated",
"Underrated");
$badreasons = 4;
$AllowableHTML = array("b"=>1,
"i"=>1,
"a"=>2,
"em"=>1,
"br"=>1,
"strong"=>1,
"blockquote"=>1,
"tt"=>1,
"li"=>1,
"ol"=>1,
"ul"=>1);
$CensorList = array("f***",
"cunt",
"f***er",
"f***ing",
"pussy",
"cock",
"c0ck",
"cum",
"twat",
"clit",
"bitch",
"fuk",
"fuking",
"motherfucker");
$tipath = "images/topics/";
if (eregi("config.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
?>
|
db.php...
Code:
<?php
/***************************************************************************
* db.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: db.php,v 1.10 2002/03/18 13:35:22 psotfx Exp $
*
*
***************************************************************************/
/***************************************************************************
* 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.
*
***************************************************************************/
global $forum_admin;
if ($forum_admin == 1) {
$the_include = "../../../db";
} elseif ($inside_mod == 1) {
$the_include = "../../db";
} else {
$the_include = "db";
}
switch($MySQL) {
case 'MySQL':
include("".$the_include."/mysql.php");
break;
case 'mysql4':
include("".$the_include."/mysql4.php");
break;
case 'postgres':
include("".$the_include."/postgres7.php");
break;
case 'mssql':
include("".$the_include."/mssql.php");
break;
case 'oracle':
include("".$the_include."/oracle.php");
break;
case 'msaccess':
include("".$the_include."/msaccess.php");
break;
case 'mssql-odbc':
include("".$the_include."/mssql-odbc.php");
break;
case 'db2':
include("".$the_include."/db2.php");
break;
}
$db = new sql_db($mysql47.secureserver.net, $nuke_1, $---(pw), $nuke_1, false);
if(!$db->db_connect_id) {
die("<br><br><center><img src=images/logo.gif><br><br><b>There seems to be a problem with the MySQL server, sorry for the inconvenience.<br><br>We should be back shortly.</center></b>");
}
?>
|
|
|
|
blith
Client

Joined: Jul 18, 2003
Posts: 977
|
Posted:
Wed Nov 23, 2005 6:14 pm |
|
I have never had to edit db.php here
Code:$db = new sql_db($mysql47.secureserver.net, $nuke_1, $---(pw), $nuke_1, false);
if(!$db->db_connect_id) {
die("<br><br><center><img src=images/logo.gif><br><br><b>There seems to be a problem with the MySQL server, sorry for the inconvenience.<br><br>We should be back shortly.</center></b>");
}
|
... I have 7.6 also...
and my dbhost is always localhost[/code] |
|
|