From c7e4f5c7fa8e4ba9e9503f70a3334d33f31b78e1 Mon Sep 17 00:00:00 2001 From: pjmattal Date: Fri, 10 Jun 2005 04:52:46 +0000 Subject: Added Simo's patch for #2579, adding user info page also modified it slightly so that we no longer look at AURMaintainerUID for maintainer --- web/lib/acctfuncs.inc | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) (limited to 'web/lib/acctfuncs.inc') diff --git a/web/lib/acctfuncs.inc b/web/lib/acctfuncs.inc index 996a70c..8021cc6 100644 --- a/web/lib/acctfuncs.inc +++ b/web/lib/acctfuncs.inc @@ -586,5 +586,60 @@ function search_results_page($UTYPE,$O=0,$SB="",$U="",$T="", return; } +# Display non-editable account info +# +function display_account_info($U="",$T="", + $E="",$R="",$I="") { + # U: value to display for username + # T: value to display for account type + # E: value to display for email address + # R: value to display for RealName + # I: value to display for IRC nick + + global $SUPPORTED_LANGS; + + print "
\n"; + print "\n"; + print " \n"; + print " \n"; + print " \n"; + + print " \n"; + print " \n"; + print " \n"; + print " \n"; + + print " \n"; + print " \n"; + print " \n"; + + print " \n"; + print " \n"; + print " \n"; + print " \n"; + + print " \n"; + print " \n"; + print " \n"; + print " \n"; + + print " \n"; + print " \n"; + print " \n"; + print " \n"; + + print "
 
".__("Username").":".$U."
".__("Account Type").":"; + if ($T == "User") { + print __("User"); + } elseif ($T == "Trusted User") { + print __("Trusted User"); + } elseif ($T == "Developer") { + print __("Developer"); + } + print "
".__("Email Address").":".$E."
".__("Real Name").":".$R."
".__("IRC Nick").":".$I."
\n"; + print "
\n"; + return; +} + # vim: ts=2 sw=2 noet ft=php ?> -- cgit v1.2.3-54-g00ecf