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

commit d3333332796cf4f47e48f2b7fae161d4830ab30d
tree ab6bc2297709db7a1ff83279fcd2170109ff1fa6
parent 756002a8f0c768257c75ae132fe53e77b487ce27
author Engels Antonio <engels@majcms.org> 1306064820 +0800
committer Engels Antonio <engels@majcms.org> 1306064820 +0800

    Fix members-only entries leak in sitemap.php

diff --git a/sitemap.php b/sitemap.php
index d9063e6..52b9c48 100644
--- a/sitemap.php
+++ b/sitemap.php
@@ -20,6 +20,14 @@ if ($dh_sitemap_items = opendir($dir)) {
                        continue;
                }
 
+               if (file_exists("data/items/$entry_sitemap_items/private.txt")) {
+                       continue;
+               }
+
+               if (file_exists("data/items/$entry_sitemap_items/member.txt")) {
+                       continue;
+               }
+
                $private = "0";
 
                if (file_exists("data/items/$entry_sitemap_items/categories")) {
@@ -43,7 +51,7 @@ if ($dh_sitemap_items = opendir($dir)) {
                        continue;
                }
               
-               if ($entry_sitemap_items != "." && $entry_sitemap_items != ".." && fnmatch("*", $entry_sitemap_items) && !file_exists("data/items/$entry_sitemap_items/private.txt")) {
+               if ($entry_sitemap_items != "." && $entry_sitemap_items != "..") {
                        $show_sitemap_items[] = $entry_sitemap_items;
                }
        }
 
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