This commit has been accessed 582 times via Git panel.
commit 6bf20217f2e2f786665c7eb8e86dcca6305c76d4
tree da4b73f886366cba1fe55e6028abcf5c6a6d0402
parent 9e45e25b9dc13cb8156947cde51dd7558f42b595
author Engels Antonio <engels@majcms.org> 1283546737 +0800
committer Engels Antonio <engels@majcms.org> 1283546737 +0800
Add complete name column in member.php
diff --git a/member.php b/member.php
index 0c943dc..8c5bbe3 100644
--- a/member.php
+++ b/member.php
@@ -62,7 +62,7 @@ else {
body {
color: #666666;
- margin: 0px 0px 10px 10px;
+ margin: 10px;
padding: 0px;
text-align: left;
font-family: <?php
@@ -231,8 +231,8 @@ if ($id == "all") {
?>
-<table border="0" cellspacing="0" cellpadding="0" bgcolor="#CCCCCC" style="background-color: transparent;" width="640"><tr><td><div id="panel_title">Members</div><div id="panel_body"><table border="0" cellspacing="1" cellpadding="2" bgcolor="#cccccc" width="628">
-<tr><td bgcolor="#eeeeee" align="center">status</td><td bgcolor="#eeeeee" align="center">username</td><td bgcolor="#eeeeee" align="center">member since</td><td bgcolor="#eeeeee" align="center">logins</td><td bgcolor="#eeeeee" align="center">posts</td><?php
+<table border="0" cellspacing="0" cellpadding="0" bgcolor="#CCCCCC" style="background-color: transparent;"><tr><td><div id="panel_title">Members</div><div id="panel_body"><table border="0" cellspacing="1" cellpadding="2" bgcolor="#cccccc">
+<tr><td bgcolor="#eeeeee" align="center">status</td><td bgcolor="#eeeeee" align="center">username</td><?php if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) { echo "<td bgcolor=\"#eeeeee\" align=\"center\">real name</td>"; } ?><td bgcolor="#eeeeee" align="center">member since</td><td bgcolor="#eeeeee" align="center">logins</td><td bgcolor="#eeeeee" align="center">posts</td><?php
if (isset($_SESSION['logged_in']) and !empty($_SESSION['logged_in']) and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
echo '<td bgcolor="#eeeeee" align="center">rw</td><td bgcolor="#eeeeee" align="center">ul</td><td bgcolor="#eeeeee" align="center">noml</td><td bgcolor="#eeeeee" align="center">delete</td><td bgcolor="#eeeeee" align="center">rank</td><td bgcolor="#eeeeee" align="center">category</td><td bgcolor="#eeeeee" align="center">action</td>';
@@ -304,6 +304,19 @@ if (file_exists("data/members/active")) {
echo "</td><td bgcolor=#ffffff><a href=member.php?id=$member_list_entry>$member_list_entry</a></td>";
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
+
+ if (file_exists("data/members/active/$member_list_entry")) {
+ $member_name = file_get_contents("data/members/active/$member_list_entry/firstname.txt") . " " . file_get_contents("data/members/active/$member_list_entry/lastname.txt");
+ }
+
+ if ($member_list_entry == file_get_contents("data/author.txt")) {
+ $member_name = file_get_contents("data/author.txt");
+ }
+
+ echo "<td bgcolor=#ffffff>$member_name</td>";
+ }
+
if ($member_list_entry == file_get_contents("data/username.txt") or (file_exists("data/members/active/$member_list_entry") and !file_exists("data/members/active/$member_list_entry/timestamp.txt"))) {
echo "<td bgcolor=#ffffff align=center><nobr><code>-</code></nobr></td>";
}
diff --git a/rel.txt b/rel.txt
index cc7aed9..f82f4f4 100644
--- a/rel.txt
+++ b/rel.txt
@@ -1 +1 @@
-201008211520
+201008310224
tree da4b73f886366cba1fe55e6028abcf5c6a6d0402
parent 9e45e25b9dc13cb8156947cde51dd7558f42b595
author Engels Antonio <engels@majcms.org> 1283546737 +0800
committer Engels Antonio <engels@majcms.org> 1283546737 +0800
Add complete name column in member.php
diff --git a/member.php b/member.php
index 0c943dc..8c5bbe3 100644
--- a/member.php
+++ b/member.php
@@ -62,7 +62,7 @@ else {
body {
color: #666666;
- margin: 0px 0px 10px 10px;
+ margin: 10px;
padding: 0px;
text-align: left;
font-family: <?php
@@ -231,8 +231,8 @@ if ($id == "all") {
?>
-<table border="0" cellspacing="0" cellpadding="0" bgcolor="#CCCCCC" style="background-color: transparent;" width="640"><tr><td><div id="panel_title">Members</div><div id="panel_body"><table border="0" cellspacing="1" cellpadding="2" bgcolor="#cccccc" width="628">
-<tr><td bgcolor="#eeeeee" align="center">status</td><td bgcolor="#eeeeee" align="center">username</td><td bgcolor="#eeeeee" align="center">member since</td><td bgcolor="#eeeeee" align="center">logins</td><td bgcolor="#eeeeee" align="center">posts</td><?php
+<table border="0" cellspacing="0" cellpadding="0" bgcolor="#CCCCCC" style="background-color: transparent;"><tr><td><div id="panel_title">Members</div><div id="panel_body"><table border="0" cellspacing="1" cellpadding="2" bgcolor="#cccccc">
+<tr><td bgcolor="#eeeeee" align="center">status</td><td bgcolor="#eeeeee" align="center">username</td><?php if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) { echo "<td bgcolor=\"#eeeeee\" align=\"center\">real name</td>"; } ?><td bgcolor="#eeeeee" align="center">member since</td><td bgcolor="#eeeeee" align="center">logins</td><td bgcolor="#eeeeee" align="center">posts</td><?php
if (isset($_SESSION['logged_in']) and !empty($_SESSION['logged_in']) and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
echo '<td bgcolor="#eeeeee" align="center">rw</td><td bgcolor="#eeeeee" align="center">ul</td><td bgcolor="#eeeeee" align="center">noml</td><td bgcolor="#eeeeee" align="center">delete</td><td bgcolor="#eeeeee" align="center">rank</td><td bgcolor="#eeeeee" align="center">category</td><td bgcolor="#eeeeee" align="center">action</td>';
@@ -304,6 +304,19 @@ if (file_exists("data/members/active")) {
echo "</td><td bgcolor=#ffffff><a href=member.php?id=$member_list_entry>$member_list_entry</a></td>";
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
+
+ if (file_exists("data/members/active/$member_list_entry")) {
+ $member_name = file_get_contents("data/members/active/$member_list_entry/firstname.txt") . " " . file_get_contents("data/members/active/$member_list_entry/lastname.txt");
+ }
+
+ if ($member_list_entry == file_get_contents("data/author.txt")) {
+ $member_name = file_get_contents("data/author.txt");
+ }
+
+ echo "<td bgcolor=#ffffff>$member_name</td>";
+ }
+
if ($member_list_entry == file_get_contents("data/username.txt") or (file_exists("data/members/active/$member_list_entry") and !file_exists("data/members/active/$member_list_entry/timestamp.txt"))) {
echo "<td bgcolor=#ffffff align=center><nobr><code>-</code></nobr></td>";
}
diff --git a/rel.txt b/rel.txt
index cc7aed9..f82f4f4 100644
--- a/rel.txt
+++ b/rel.txt
@@ -1 +1 @@
-201008211520
+201008310224