From cfec643833664afd5f468b31d488aa1ee9fefa74 Mon Sep 17 00:00:00 2001 From: Ed Kraus Date: Fri, 5 Jun 2009 23:21:34 +0000 Subject: [PATCH] :) few things updated git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@542 c66351dc-e62f-0410-b875-e3a5c0b9693f --- site/login/login/libs/config.php | 15 +++++---------- site/login/login/libs/menu.php | 2 +- site/login/login/member-profile.php | 15 +++++++-------- 3 files changed, 13 insertions(+), 19 deletions(-) diff --git a/site/login/login/libs/config.php b/site/login/login/libs/config.php index 58738cb4..f0edaa6b 100644 --- a/site/login/login/libs/config.php +++ b/site/login/login/libs/config.php @@ -3,15 +3,10 @@ define('DB_USER', 'root'); define('DB_PASSWORD', ''); define('DB_DATABASE', 'mibew'); - //Connect to mysql server - mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); - if(!$link) { - die('Failed to connect to server: ' . mysql_error()); - } +------------------- +//Maynot be needed it is deleteable, not sure if it's needed for profile page. + $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); +$db = mysql_select_db(DB_DATABASE); +$result = mysql_query("SELECT * FROM members") or die(mysql_error()); - //Select database - $db = mysql_select_db(DB_DATABASE); - if(!$db) { - die("Unable to select database"); - } ?> \ No newline at end of file diff --git a/site/login/login/libs/menu.php b/site/login/login/libs/menu.php index 9d6f3fb8..2df1aa95 100644 --- a/site/login/login/libs/menu.php +++ b/site/login/login/libs/menu.php @@ -6,7 +6,7 @@ -

Welcome

+

Welcome

My Profile |Payware| Downloads| Features | Ticket Support |Logout

\ No newline at end of file diff --git a/site/login/login/member-profile.php b/site/login/login/member-profile.php index 13bfe74c..e7b9864a 100644 --- a/site/login/login/member-profile.php +++ b/site/login/login/member-profile.php @@ -1,29 +1,28 @@ - + - + - + - + - + - +
First Name
Last Name
City
State
Country
Email