From 6199d5d80142803ee8f8b85bcaa1594a837076a7 Mon Sep 17 00:00:00 2001 From: Paul J R Date: Thu, 27 Sep 2012 08:54:28 +1000 Subject: [PATCH] user admin page and control --- gwvpmini/gwvpmini_user.php | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) 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"]."
"; } -- 1.7.0.4