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 805 times via Git panel.

commit f693cacbbdbbc40d01e023f0a0f07260f05f5ab9
tree 37e852d9e809878bf3fa387d62e9363011a5c8ff
parent 238981c4cf0923dee796dd97222cb6d520335955
author Engels Antonio <engels@majcms.org> 1277314213 +0800
committer Engels Antonio <engels@majcms.org> 1277314213 +0800

    maj-2.0-201006030958.zip

diff --git a/index.php b/index.php
index b25291d..fe78c94 100644
--- a/index.php
+++ b/index.php
@@ -4155,6 +4155,8 @@ foreach ($maj_disp as $maj_d) {
                        reset($maj_show_comments);
                        foreach ($maj_show_comments as $maj_comment) {
 
+                               echo "<a name=\"$maj_comment\"></a>";
+
                                if (file_exists("data/round.txt")) {
                                        echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
                                }
@@ -4186,6 +4188,7 @@ foreach ($maj_disp as $maj_d) {
                                        echo '<a href=del.php?entry=' . $maj_d . '&comment=' . $maj_comment . '&type=live><img src=images/widget.del.png width=11 height=11 border=0 align=right alt="delete comment"></a>';
                                        echo '<a href=move.php?entry=' . $maj_d . '&comment=' . $maj_comment . '&type=live><img src=images/widget.move.png width=11 height=11 border=0 align=right alt="move comment"></a>';
                                        echo '<a href=edit.php?entry=' . $maj_d . '&comment=' . $maj_comment . '&type=live><img src=images/widget.edit.png width=11 height=11 border=0 align=right alt="edit comment"></a>';
+                                       //echo "<a href=\"?entry={$maj_d}&show=comments#{$maj_comment}\"><img src=\"images/widget.link.png\" width=\"11\" height=\"11\" border=\"0\" align=\"right\" alt=\"permalink\"></a>";
                                }
                                echo '</div><div class=panel_body><table border=0 cellspacing=0 cellpadding=0><tr>';
                               
@@ -4577,6 +4580,8 @@ foreach ($maj_disp as $maj_d) {
                        }
                }
 
+               echo "<a name=\"end\"></a>";
+
                if (!file_exists("data/nocomment.txt") or (file_exists("data/memcomment.txt") and isset($_SESSION['logged_in'])) or file_exists("data/items/$maj_d/ucomment.txt")) {
 
                        echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wmain\"><tr><td>";
@@ -4748,6 +4753,8 @@ foreach ($maj_disp as $maj_d) {
                $maj_count_pending_comments = count($maj_show_pending_comments);
 
                if ($maj_count_pending_comments > 0) {
+
+                       echo '<a name="pending"></a>';
       
                        if ($maj_count_pending_comments == 1) {
                                echo '<p><b>Pending Comment</b></p>';
@@ -4757,7 +4764,7 @@ foreach ($maj_disp as $maj_d) {
                        }
 
                        foreach ($maj_show_pending_comments as $maj_pending_comment) {
-      
+
                                echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wmain\"><tr><td>";
       
                                if (file_exists("data/round.txt")) {
@@ -5168,7 +5175,7 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_user
 
                                if ($maj_entry_list_pending_comment_flags != "." && $maj_entry_list_pending_comment_flags != "..") {
 
-                                       echo "<a href=\"index.php?entry=$maj_entry_list_pending_comment_flags&show=comments\">";
+                                       echo "<a href=\"index.php?entry=$maj_entry_list_pending_comment_flags&show=comments#pending\">";
                                        readfile("data/items/$maj_entry_list_pending_comment_flags/title.txt");
                                        echo "</a><br><font style=\"font-size: $maj_font_10px; color: #999999;\">";
                                        $maj_fp_comment_count_txt = fopen("data/comments/pending/$maj_entry_list_pending_comment_flags/count.txt","r");
diff --git a/rel.txt b/rel.txt
index 01bd233..4c30fed 100644
--- a/rel.txt
+++ b/rel.txt
@@ -1 +1 @@
-201006030907
+201006030958
 
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
33164 downloads
MAJ 1.0
26 files
13196 downloads
MAJ 0.14
45 files
35116 downloads