diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2008-11-11 00:25:22 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2008-11-11 00:25:22 +0100 |
commit | 9158654dd7f2a52d25e330a8f825f8b0c44005e9 (patch) | |
tree | 0b56816b8dbacef350e6c5010dd2d48490910697 | |
parent | 810e9cb1dcdec9048f4a2544393844651531cc75 (diff) |
Mysql config
-rw-r--r-- | Badges_v2.php | 4 | ||||
-rw-r--r-- | 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)) . "'"); @@ -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", |