From 9158654dd7f2a52d25e330a8f825f8b0c44005e9 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Tue, 11 Nov 2008 00:25:22 +0100 Subject: Mysql config --- Badges_v2.php | 4 ++-- Config.php | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Badges_v2.php b/Badges_v2.php index f79b2f3..a449a2b 100644 --- a/Badges_v2.php +++ b/Badges_v2.php @@ -33,8 +33,8 @@ $color=$pathinfo[4]; include("Config.php"); -mysql_connect("localhost", "lastfm"); -mysql_select_db("lastfm"); +mysql_connect(MYSQL_HOST, MYSQL_USER); +mysql_select_db(MYSQL_DB); /*make cache data (array $data)*/ $res = mysql_query("SELECT * FROM users WHERE username='" . gpc_addslashes(strtolower($username)) . "'"); diff --git a/Config.php b/Config.php index dcd0676..fe3ce0c 100644 --- a/Config.php +++ b/Config.php @@ -8,6 +8,8 @@ putenv("GDFONTPATH=/usr/share/fonts/truetype"); define(CACHE_FOLDER, "/var/cache/www/Lastfm"); +include("Config.mysql"); + $Styles = array ("Modern" => "It_wasn_t_me", "Letters" => "JackOLantern", "Romantic" => "Shelley_Volante", -- cgit v1.2.3