Bug 275375, Add Indication of UserLevel on Author Profiles page.

This commit is contained in:
psychoticwolf%carolina.rr.com 2004-12-20 14:18:27 +00:00
Родитель 9de380c3a8
Коммит ad231457ee
2 изменённых файлов: 20 добавлений и 4 удалений

Просмотреть файл

@ -79,12 +79,20 @@ $userid = escape_string($_GET["id"]);
$username = $row["UserName"]; $username = $row["UserName"];
$useremail = $row["UserEmail"]; $useremail = $row["UserEmail"];
$userwebsite = $row["UserWebsite"]; $userwebsite = $row["UserWebsite"];
$userpass = $row["UserPass"]; $usermode = $row["UserMode"];
$userrole = $row["UserRole"];
$useremailhide = $row["UserEmailHide"]; $useremailhide = $row["UserEmailHide"];
if ($usermode=="A") {
$usermode_text = "Mozilla Update Administrator";
} else if ($usermode=="E") {
$usermode_text = "Mozilla Update Editor";
} else if ($usermode=="U") {
$usermode_text = "Extension/Theme Author";
}
?> ?>
<h2>Author Profile &#187; <?php echo"$username"; ?></h2> <h2>Author Profile &#187; <?php echo"$username"; ?></h2>
<?php if ($usermode_text) { echo"<div style=\"margin-bottom: 5px\"><strong>$usermode_text</strong></div>\n"; } ?>
Homepage: <?php Homepage: <?php
if ($userwebsite) {echo"<A HREF=\"$userwebsite\">$userwebsite</A>"; if ($userwebsite) {echo"<A HREF=\"$userwebsite\">$userwebsite</A>";

Просмотреть файл

@ -80,12 +80,20 @@ $userid = escape_string($_GET["id"]);
$username = $row["UserName"]; $username = $row["UserName"];
$useremail = $row["UserEmail"]; $useremail = $row["UserEmail"];
$userwebsite = $row["UserWebsite"]; $userwebsite = $row["UserWebsite"];
$userpass = $row["UserPass"]; $usermode = $row["UserMode"];
$userrole = $row["UserRole"];
$useremailhide = $row["UserEmailHide"]; $useremailhide = $row["UserEmailHide"];
if ($usermode=="A") {
$usermode_text = "Mozilla Update Administrator";
} else if ($usermode=="E") {
$usermode_text = "Mozilla Update Editor";
} else if ($usermode=="U") {
$usermode_text = "Extension/Theme Author";
}
?> ?>
<h2>Author Profile &#187; <?php echo"$username"; ?></h2> <h2>Author Profile &#187; <?php echo"$username"; ?></h2>
<?php if ($usermode_text) { echo"<div style=\"margin-bottom: 5px\"><strong>$usermode_text</strong></div>\n"; } ?>
Homepage: <?php Homepage: <?php
if ($userwebsite) {echo"<A HREF=\"$userwebsite\">$userwebsite</A>"; if ($userwebsite) {echo"<A HREF=\"$userwebsite\">$userwebsite</A>";