Obserwujący 0
czarek0703

AMXBANS problem!!!

7 postów w tym temacie

Witam mam problem z amxbans( jeżeli zły dział proszę przenieść) zainstaowałem amxbans GM 1.6 od edivision, wszystko ładnie przeszła instalacja no tylko że jest jeden problem.

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'czarek0703_bany'@'127.0.0.1' (using password: TAK) in /home/czarek0703/domains/under-frags.eu/public_html/bany/include/config.inc.php on line 46

Access denied for user 'czarek0703_bany'@'127.0.0.1' (using password: TAK)

Strona www.under-frags.eu/bany

Czy wie ktoś jak to naprawić? Będę bardzo wdzięczny

Udostępnij tego posta


Odnośnik do posta
Udostępnij na stronach

wiec jak to naprwaic

[ Dodano: 2011-11-27, 11:50 ]

macie zrzut z configs

<?php
if(file_exists("setup.php") && !file_exists("include/db.config.inc.php")) {
	header("Location: setup.php");
	exit;
}
$config->v_web = "1.6";
$page_starttime=explode(" ",microtime());
require_once("sql.inc.php");
// If magic quotes are enabled, strip slashes from all user data
function stripslashes_recursive($var) {
	return (is_array($var) ? array_map('stripslashes_recursive', $var) : stripslashes($var));
}
function htmlsafe_recursive(&$var) {
	$var = (is_array($var) ? array_map('htmlsafe_recursive', $var) : htmlspecialchars($var));
	return $var;
}
if (get_magic_quotes_gpc()) {
	$_GET = stripslashes_recursive($_GET);
	$_POST = stripslashes_recursive($_POST);
	$_COOKIE = stripslashes_recursive($_COOKIE);
}
require_once("db.config.inc.php");
//get ip from hostname
function getipbyhost($ip_host = "") {
	$value = $ip_host;
	$pattern['ipv4'] = '/^((\d|[1-9]\d|2[0-4]\d|25[0-5]|1\d\d)(?:\.(\d|[1-9]\d|2[0-4]\d|25[0-5]|1\d\d)){3})$/';
	$pattern['ipv6'] = '/^( (([0-9A-Fa-f]{1,4}{7}[0-9A-Fa-f]{1,4})| (([0-9A-Fa-f]{1,4}{6}:[0-9A-Fa-f]{1,4})| (([0-9A-Fa-f]{1,4}{5}[0-9A-Fa-f]{1,4}?[0-9A-Fa-f]{1,4})| (([0-9A-F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\d{2})|(2[0-4]\d)|(\d{1,2}))\b))| ([0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}{0,5}[0-9A-Fa-f]{1,4})| (:[0-9A-Fa-f]{1,4}{0,6}[0-9A-Fa-f]{1,4})| (([0-9A-Fa-f]{1,4}{1,7} )$/';
	if( ($value != "") || ($value != "127.0.0.1") || ($value != "localhost") || !(preg_match($pattern['ipv4'],$value)) || !(preg_match($pattern['ipv6'],$value)) ) {
		return gethostbyname($value);
	} else {
		return $value;
	}
}
//connect to db
$config->db_host=getipbyhost($config->db_host);
$mysql = mysql_connect($config->db_host,$config->db_user,$config->db_pass) or die (mysql_error());
mysql_query("SET NAMES UTF8");
mysql_query("set character_set_client='utf8'");
mysql_query("set character_set_results='utf8'");
mysql_query("set collation_connection='utf8_general_ci'");
mysql_set_charset('utf8');
$resource = mysql_select_db($config->db_db) or die (mysql_error());
//get websettings
$vars=sql_set_websettings();
$config->importdir = $config->path_root."/tmp";
$config->templatedir = $config->path_root."/templates/".$config->design."/";
$config->langfilesdir = $config->path_root."/language/";
//save current language to session
if(!$_SESSION["lang"])
	$_SESSION["lang"]=$config->default_lang;
//load smilies to global array
if(empty($smilies)) {
	$sql = mysql_query("SELECT code, url, name FROM ".$config->db_prefix."_smilies ORDER BY id");
	while (list($code, $url, $name) = mysql_fetch_array($sql))
	{
		$name = stripslashes($name);
		$name = htmlentities($name);
		$smilies[]=array($code,$url,$name);
	}
}
//load bbcode tags to global array
if(empty($bbcodes)) {
	$sql = mysql_query("SELECT open_tag, close_tag, url, name FROM ".$config->db_prefix."_bbcode ORDER BY id");
	while (list($open_tag, $close_tag, $url, $name) = mysql_fetch_array($sql))
	{
		$name = stripslashes($name);
		$name = htmlentities($name);
		$bbcodes[]=array($open_tag,$close_tag,$url,$name);
	}
}
/* Smarty settings */
require_once("smarty/Smarty.class.php");
class dynamicPage extends Smarty {
	function dynamicPage() {
		global $config;
		$this->Smarty();
		$this->template_dir	= $config->templatedir;
		$this->compile_dir	= SMARTY_DIR."templates_c/";
		$this->config_dir	= SMARTY_DIR."configs/";
		$this->cache_dir	= SMARTY_DIR."cache/";
		$this->caching		= false;
		//for editing templates itРўвЂs better "true", but slow down site load
		$this->force_compile = false;
		$this->assign("app_name","dynamicPage");
	}
}
?>[/code]

Udostępnij tego posta


Odnośnik do posta
Udostępnij na stronach

załóż nowa baze danych kliknij w nazwe baze danych u mnie wygląda to tak electra_bany

i nadaj Local host znaczek "%" bez cudzysłowia i zainstaluj jeszcze raz amxbans a a jak nie to napisz do mnie na gg

Udostępnij tego posta


Odnośnik do posta
Udostępnij na stronach
Gość
Ten temat jest zamknięty i nie można dodawać odpowiedzi.
Obserwujący 0