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

commit c9ae728483994b6c17c78466117331aa63812c6e
tree cffbb2a1b75da1083c5623d409cca7cddf054ae6
parent c370cb89311ba2ba44b2e7a632eb7effe2881fdb
author Engels Antonio <engels@majcms.org> 1326237779 +0800
committer Engels Antonio <engels@majcms.org> 1326237779 +0800

    Change $maj_uquery value determination

diff --git a/core.php b/core.php
index b7a5c4b..a5055a2 100644
--- a/core.php
+++ b/core.php
@@ -117,7 +117,7 @@ $maj_aimage = $maj_ablock - $maj_wspace;
 
 $maj_eimage = $maj_wentry - $maj_wspace - $maj_ablock;
 
-$maj_uquery = count($_REQUEST) - count($_COOKIE);
+$maj_uquery = count($_GET);
 
 if (file_exists("$maj_data_directory/panels-l.txt") or file_exists("$maj_data_directory/panels-r.txt")) {
 
diff --git a/index.php b/index.php
index 5385b9e..42ca206 100644
--- a/index.php
+++ b/index.php
@@ -953,7 +953,7 @@ if (file_exists("$maj_data_directory/panels")) {
                                        continue;
                                }
 
-                               if (file_exists("$maj_data_directory/panels/$maj_panel/noquery.txt") and ($maj_uquery >= 0) and (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username))) {
+                               if (file_exists("$maj_data_directory/panels/$maj_panel/noquery.txt") and ($maj_uquery > 0) and (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username))) {
                                        continue;
                                }
 
@@ -1051,7 +1051,7 @@ echo "\r\n\r\n<td valign=\"top\" width=\"$maj_wentry\">\r\n\r\n";
 
 maj_panels($maj_top_panels);
 
-if (file_exists("$maj_data_directory/bb.txt") and file_exists("$maj_data_directory/bb-summary.txt") and !file_exists("$maj_data_directory/lite.txt") and ($maj_uquery < 0)) {
+if (file_exists("$maj_data_directory/bb.txt") and file_exists("$maj_data_directory/bb-summary.txt") and !file_exists("$maj_data_directory/lite.txt") and ($maj_uquery == 0)) {
 
        if ($maj_count_latest > 0) {
 
 
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