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

commit 7694a084564a1d83e96cf67bf8e7ab7df6b85130
tree 68e4e3a038932c5ecc713d6397863ae18a215f72
parent e5ce10b18fa0c083b798c719a5621b4b1c91dc1b
author Engels Antonio <engels@majcms.org> 1277314193 +0800
committer Engels Antonio <engels@majcms.org> 1277314193 +0800

    maj-0.14-20071211-bb.zip

diff --git a/images/widget.back.png b/images/widget.back.png
new file mode 100644
index 0000000..f1c672b
Binary files /dev/null and b/images/widget.back.png differ
diff --git a/index.php b/index.php
index 8096e76..90873df 100644
--- a/index.php
+++ b/index.php
@@ -1798,6 +1798,13 @@ foreach ($disp as $d) {
        // start of wiki mod (20071130)
 
        if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/wiki.txt") and file_exists("$dir/$d/edit.txt") and file_exists("data/members/active/{$_SESSION['logged_in']}/rw.txt") and !file_exists("$dir/$d/passwd.txt")) {
+
+               if (file_exists("$dir/$d/wiki/delta") and (count(glob("$dir/$d/wiki/delta/*")) > 0)) {
+                       echo "<a href=wiki.php?entry=$d>";
+                       echo "<img src=images/widget.back.png border=0 width=11 height=11 align=right alt=revisions>";
+                       echo "</a>";
+               }
+
                echo '<a href=edit.php?entry=';
                echo $d;
                echo '><img src=images/widget.edit.png border=0 width=11 height=11 align=right alt="edit entry"></a>';
@@ -1817,6 +1824,13 @@ foreach ($disp as $d) {
                        echo '><img src=images/widget.move.png border=0 width=11 height=11 align=right alt="move to comment"></a>';
                }
 
+
+               if (file_exists("$dir/$d/wiki/delta") and (count(glob("$dir/$d/wiki/delta/*")) > 0)) {
+                       echo "<a href=wiki.php?entry=$d>";
+                       echo "<img src=images/widget.back.png border=0 width=11 height=11 align=right alt=revisions>";
+                       echo "</a>";
+               }
+
                echo '<a href=edit.php?entry=';
                echo $d;
                echo '><img src=images/widget.edit.png border=0 width=11 height=11 align=right alt="edit entry"></a>';
 
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
33012 downloads
MAJ 1.0
26 files
13144 downloads
MAJ 0.14
45 files
35026 downloads