From: Paul J R Date: Wed, 26 Sep 2012 22:54:28 +0000 (+1000) Subject: user admin page and control X-Git-Url: http://git.pjr.cc/?a=commitdiff_plain;h=6199d5d80142803ee8f8b85bcaa1594a837076a7;p=gwvp-mini.git user admin page and control --- diff --git a/gwvpmini/gwvpmini_user.php b/gwvpmini/gwvpmini_user.php index 216c2fb..c495552 100644 --- a/gwvpmini/gwvpmini_user.php +++ b/gwvpmini/gwvpmini_user.php @@ -5,8 +5,9 @@ if($IS_WEB_REQUEST) { $reg = gwvpmini_getConfigVal("gravatarenabled"); $use_gravatar = false; - if($reg == null) { - gwvpmini_setConfigVal("gravatarenabled", "1"); + if($reg == null) { + // disable grav's by default + gwvpmini_setConfigVal("gravatarenabled", "0"); } else if($reg == 1) { $use_gravatar = true; } else { @@ -74,7 +75,7 @@ function gwvpmini_UserViewPageBody() } } - if($isme) { + if($isme || gwvpmini_isUserAdmin()) { echo "
"; echo "Your Description

"; echo ""; @@ -82,11 +83,19 @@ function gwvpmini_UserViewPageBody() echo "

New Password

"; echo ""; - echo ""; + echo "
Old Password
"; + if($isme) echo ""; echo ""; echo "
Old Password
New Password
Confirm New Password
"; echo ""; echo "
"; + + echo "

New Email Address

"; + echo "
"; + echo ""; + echo "
New Email Address
Confirm New Email Address
"; + echo ""; + echo "
"; } else { echo $dets["desc"]."
"; }