Profile
MAJ is an Open Source, PHP-based content management system (CMS) that can be deployed as a blog, bulletin or message board, Internet forum, and wiki. It is extensible via PHP panels and is HTML5 and CSS3 ready.
Git
This commit has been accessed 926 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
 
Credits
Sunday, Sep 18, 2005, 12:00 AM (Revision 11 - Thursday, Jul 14, 2011, 7:30 PM)
Open Source enables software developers to stand on the shoulders of giants instead of reinventing the wheel, so to speak. Kudos and many thanks to the folks who made their work freely available for reuse in MAJ.

read more
Bugs and Exploits
Friday, Aug 26, 2005, 12:00 AM (Revision 23 - Wednesday, May 29, 2013, 5:25 AM)
Although MAJ started as a family project, care has been taken to make it as "safe" as possible. With more people now working on MAJ, bugs and exploitable code may sometimes slip in. We invite you to poke around and see if you can find any. Generally, there are two things you can do when you find a MAJ or PHP-related bug or exploit:

1. Take advantage of it. But hey, what's so exciting about messing up someone's blog? Ho-hum, right?
2. Report it here so that we can work on a fix and make MAJ better.

read more
Search
Download
MAJ 2.0
75 files
35361 downloads
MAJ 1.0
26 files
14145 downloads
MAJ 0.14
45 files
36697 downloads