From: Paul J R Date: Mon, 24 Sep 2012 00:50:55 +0000 (+1000) Subject: user page aditions (change password/description) X-Git-Url: http://git.pjr.cc/?a=commitdiff_plain;h=6bbfb0aa303357fb583951d163afa636fc77a0d9;p=gwvp-mini.git user page aditions (change password/description) --- diff --git a/gwvpmini/gwvpmini_user.php b/gwvpmini/gwvpmini_user.php index 5def0ab..216c2fb 100644 --- a/gwvpmini/gwvpmini_user.php +++ b/gwvpmini/gwvpmini_user.php @@ -57,7 +57,7 @@ function gwvpmini_UserViewPage() function gwvpmini_UserViewPageBody() { - global $user_view_call; + global $user_view_call, $BASE_URL; $dets = gwvpmini_getUser($user_view_call); @@ -65,13 +65,31 @@ function gwvpmini_UserViewPageBody() echo "

".$dets["fullname"]."


"; echo gwvpmini_HtmlGravatar($dets["email"],80); + echo "
"; $isme = false; if(isset($_SESSION["id"])) { if($_SESSION["id"] == $dets["id"]) { - echo "This is your page"; + $isme = true; } } + + if($isme) { + echo "
"; + echo "Your Description

"; + echo ""; + echo "
"; + + echo "

New Password

"; + echo "
"; + echo ""; + echo ""; + echo "
Old Password
New Password
Confirm New Password
"; + echo ""; + echo "
"; + } else { + echo $dets["desc"]."
"; + } } ?> \ No newline at end of file