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

commit b4805febfbcd1f787f02f9d459f842800fb6d52c
tree a6886e4898c4cc338535daec1d8fb78763618cd9
parent c6c0224284acfd5b2df5f6bdf6ce89ae0b72768f
author Engels Antonio <engels@majcms.org> 1277314204 +0800
committer Engels Antonio <engels@majcms.org> 1277314204 +0800

    maj-1.0-20081204-bb.zip

diff --git a/edit.php b/edit.php
index 734a436..444eb49 100644
--- a/edit.php
+++ b/edit.php
@@ -561,7 +561,7 @@ echo $body_read_content;
                                echo "<input type=\"hidden\" name=\"entry\" value=\"{$_REQUEST['entry']}\">";
                                echo "<input type=\"hidden\" name=\"category\" value=\"$filed_category\">";
                                echo "<input type=\"hidden\" name=\"do\" value=\"unfile\">";
-                               echo "<tr bgcolor=\"#ffffff\"><td>$filed_category</td>";
+                               echo "<tr bgcolor=\"#ffffff\"><td><a href=\"index.php?category=$filed_category\">$filed_category</a></td>";
                                echo "<td width=\"14\"><input type=\"image\" src=\"images/widget.x.png\"></td></tr>";
                                echo "</form>";
                        }
@@ -586,9 +586,9 @@ if ($count_unfiled_cat > 0) {
                echo "<form enctype=\"multipart/form-data\" action=\"edit.php\" method=\"post\">";
                echo "<input type=\"hidden\" name=\"entry\" value=\"{$_REQUEST['entry']}\">";
                echo "<input type=\"hidden\" name=\"category\" value=\"$unfiled_category\">";
-                               echo "<input type=\"hidden\" name=\"do\" value=\"file\">";
+               echo "<input type=\"hidden\" name=\"do\" value=\"file\">";
                echo "<tr bgcolor=\"#ffffff\"><td width=\"14\"><input type=\"image\" src=\"images/widget.ok.png\"></td>";
-               echo "<td align=\"right\">$unfiled_category</td></tr>";
+               echo "<td align=\"right\"><a href=\"index.php?category=$unfiled_category\">$unfiled_category</a></td></tr>";
                echo "</form>";
        }
 
diff --git a/index.php b/index.php
index 0d4f3a5..5e0d092 100644
--- a/index.php
+++ b/index.php
@@ -3516,7 +3516,7 @@ foreach ($disp as $d) {
                                        $entry_comment = preg_replace("/\b($badwords)\b/i",$censor,$entry_comment);
                                }
                                echo $entry_comment;
-                               echo '</p></tr></table></div>';
+                               echo '</tr></table></div>';
 
                                if (file_exists("data/round.txt")) {
                                        echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
@@ -3533,20 +3533,19 @@ foreach ($disp as $d) {
                        if (!isset($_SESSION['logged_in']) or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != file_get_contents("data/username.txt") and file_exists("data/members/active/{$_SESSION['logged_in']}")))) {
       
                                if (isset($req_show) and !empty($req_show) and isset($_POST['captcha_put']) and !empty($_REQUEST['captcha_get']) and isset($_POST['firstname']) and !empty($_POST['firstname']) and isset($_POST['lastname']) and !empty($_POST['lastname']) and isset($_POST['email']) and !empty($_POST['email']) and isset($_POST['new_comment']) and !empty($_POST['new_comment']) and isset($_POST['captcha_put']) and !empty($_POST['captcha_put']) and ($_REQUEST['captcha_get'] == $_POST['captcha_put']) and (ereg("@",$_POST['email'])) and (ereg("\.",$_POST['email']))) {
-                      
-                                       echo '<table border=0 cellspacing=0 cellpadding=0><tr><td><font style="font-size: 12px;"><b>Thanks!</b></font></p>Your comment has been submitted for approval. Please check back soon to see if it has been posted.</td></tr></table></p>';
+                                       echo "<font style=\"font-size: 12px;\"><b>Thanks!</b></font><p>Your comment has been submitted for approval. Please check back soon to see if it has been posted.</p>";
                                }
                        }
 
-                       echo '<font style="font-size: 12px;"><b>Add Comment</b></font></p>';
+                       echo '<font style="font-size: 12px;"><b>Add Comment</b></font>';
 
                        if (file_exists("data/items/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
-                               echo "This entry is password protected. If you know the magic word,click <a href=passwd.php?entry=$d&show=comments>here</a> to enter it.</p>";
+                               echo "<p>This entry is password protected. If you know the magic word,click <a href=passwd.php?entry=$d&show=comments>here</a> to enter it.</p>";
                        }
                        else {
                                $captcha_rand = str_rand(7);
               
-                               echo "Fill out the form below";
+                               echo "<p>Fill out the form below";
 
                                if (!isset($_SESSION['logged_in']) or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != file_get_contents("data/username.txt")))) {
                                        echo " and enter <b>$captcha_rand</b> in the anti-spam field";
@@ -3554,8 +3553,8 @@ foreach ($disp as $d) {
 
                                echo " to add your comment.";
 
-                               if (!isset($_SESSION['logged_in']) or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != file_get_contents("data/username.txt")))) {
-                                       echo " Note that it will not be posted immediately,but will be ";
+                               if ((!isset($_SESSION['logged_in']) and !file_exists("data/xscreen.txt")) or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != file_get_contents("data/username.txt")))) {
+                                       echo " Note that it will not be posted immediately, but will be ";
                       
                                        if (file_exists("data/email.txt")) {
                                                echo "e-mailed";
@@ -3683,7 +3682,7 @@ foreach ($disp as $d) {
                                <?php
                        }
                        ?>
-                       </td></tr></table></p>
+                       </td></tr></table>
                        <?php
                }
        }
@@ -3709,10 +3708,10 @@ foreach ($disp as $d) {
                if ($count_pending_comments > 0) {
       
                        if ($count_pending_comments == 1) {
-                               echo '<b>Pending Comment</b></p>';
+                               echo '<p><b>Pending Comment</b></p>';
                        }
                        else {
-                               echo '<b>Pending Comments</b></p>';
+                               echo '<p><b>Pending Comments</b></p>';
                        }
 
                        foreach ($show_pending_comments as $pending_comment) {
@@ -3981,14 +3980,14 @@ foreach ($disp as $d) {
       
                                echo '</font><font style="font-size: 5px;"><br><br></font>';
                                readfile("data/items/$d/comments/pending/$pending_comment/comment.txt");
-                               echo '</p></tr></table></div>';
+                               echo '</tr></table></div>';
       
                                if (file_exists("data/round.txt")) {
                                        echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
                                }
       
                                unset($show_pending_comments);
-                               echo '</td></tr></table></p>';
+                               echo '</td></tr></table>';
                        }
                }
        }
@@ -4786,12 +4785,12 @@ if ($count_latest > 0) {
                echo "<tr><td align=\"center\"><a target=\"_button\" href=\"http://www.spreadfirefox.com/?q=affiliates&id=$sfx&t=85\"><img src=\"images/button.firefox.png\" border=\"0\" width=\"80\" height=\"15\"></a></td></tr>";
        }
 
-       echo '</table></p>';
+       echo '</table>';
 }
 
 ?>
 
-</p>
+
 
 </td></tr>
 </table>
diff --git a/login.php b/login.php
index 21bf072..91b6f73 100644
--- a/login.php
+++ b/login.php
@@ -144,8 +144,8 @@ a:active {
 <form enctype="multipart/form-data" action="login.php" method="post">
 <table border="0" cellspacing="1" cellpadding="2">
 <tr>
-<td><input autocomplete="off" class="input" type="text" name="username"></td>
-<td><input autocomplete="off" class="input" type="password" name="password"></td>
+<td><input class="input" type="text" name="username"<?php if (!file_exists("data/autocomplete.txt")) { echo " autocomplete=\"off\""; } ?>></td>
+<td><input autocomplete="off" class="input" type="password" name="password"<?php if (!file_exists("data/autocomplete.txt")) { echo " autocomplete=\"off\""; } ?>></td>
 <td><input class="input" type="submit" value="login"></td>
 </tr>
 
diff --git a/rel.txt b/rel.txt
index 27e8460..5425a2e 100644
--- a/rel.txt
+++ b/rel.txt
@@ -1 +1 @@
-20081128
\ No newline at end of file
+20081204
\ No newline at end of file
 
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