Jump to content
xisto Community
Sign in to follow this  
iGuest

Help greatly needeed

Recommended Posts

this is my config php file...

 

<?php

 

######################################################################

# PHP-NUKE: Advanced Content Management System

# ============================================

#

# Copyright © 2002 by Francisco Burzi (fbc@mandrakesoft.com)

# https://www.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: SQL Database Hostname

# dbuname: SQL Username

# dbpass: SQL Password

# dbname: SQL Database Name

# $prefix: Your Database table's prefix

# $user_prefix: Your Users' Database table's prefix (To share it)

# $dbtype: Your Database Server type. Supported servers are:

# MySQL, mysql4, postgres, mssql, oracle, msaccess,

# db2 and mssql-odbc

# Be sure to write it exactly as above, case SeNsItIvE!

# $sitekey: Security Key. CHANGE it to whatever you want, as long

# as you want. Just don't use quotes.

# $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

######################################################################

 

$dbh=mysql_connect ("localhost", "l33tg33k", "<cpanel password>") or die ('I cannot connect to the database because: ' . mysql_error());

mysql_select_db ("l33tg33k_nuke");

$dbhost = "localhost";

$dbuname = "l33tg33k_admin";

$dbpass = "cpanel password";

$dbname = "l33tg33k_nuke";

$prefix = "nuke";

$user_prefix = "nuke";

$dbtype = "MySQL";

$sitekey = "xa7huqARup47ruvUwR3YerepAphesw";

$gfx_chk = 0;

 

/*********************************************************************/

/* 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("*BLEEP*",

"*BLEEP*",

"*BLEEP*er",

"*BLEEP*ing",

"*****",

"*BLEEP*",

"c0ck",

"cum",

"twat",

"*BLEEP*",

"*BLEEP*",

"fuk",

"fuking",

"mother*BLEEP*er");

$tipath = "images/topics/";

if (eregi("config.php",$_SERVER['PHP_SELF'])) {

Header("Location: index.php");

die();

}

 

?>

 

 

 

 

 

 

i get tis error when try to go to l33tg33k.freenukehosting.com

 

 

Warning: mysql_connect(): Access denied for user: 'l33tg33k@localhost' (Using password: YES) in /home/l33tg33k/public_html/config.php on line 45

I cannot connect to the database because: Access denied for user: 'l33tg33k@localhost' (Using password: YES)

Share this post


Link to post
Share on other sites

I'm no expert at php, but i think i see the prob just change line 45 to:$dbh=mysql_connect ("$dbhost", "$dbuname", "$dbpass") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("$dbname"); for your user name you have only l33tg33k, you need l33tg33k_admin, i think you just typed it wrong even though under it you had it right. :wink:Since i changed the stuff for the variables and you have those right it should work.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.