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.
This commit has been accessed 57 times via Git panel.

commit b341c55bfd4d357455c834f9bc73bea2ad5d023d
tree 62a635cdd1204d108de6d064c3b0221e2cf62c08
parent 9f9801c5ca2468c012a779f7037e46e6270aa152
author Psylocke Antonio <> 1295227207 +0800
committer Psylocke Antonio <> 1295227207 +0800

    Add title and link back to main entry
    Change font size of informational texts

diff --git a/video.php b/video.php
index a609783..d1a3d99 100644
--- a/video.php
+++ b/video.php
@@ -69,7 +69,7 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
-       echo "<style> .main, .menu { margin: 2px; border: 1px solid #dedede; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; -khtml-border-radius: 3px; -moz-box-shadow: 0 0 2px #dddddd; -webkit-box-shadow: 0 0 2px #dddddd; -khtml-box-shadow: 0 0 2px #dddddd; box-shadow: 0 0 2px #dddddd; padding: 1px; } .menu { float: left; } </style>";
+       echo "<style> .main, .menu { margin: 2px; border: 1px solid #dedede; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; -khtml-border-radius: 3px; -moz-box-shadow: 0 0 2px #dddddd; -webkit-box-shadow: 0 0 2px #dddddd; -khtml-box-shadow: 0 0 2px #dddddd; box-shadow: 0 0 2px #dddddd; padding: 1px; } .menu { float: left; } .info { font-size: 9px; } </style>";
        function format_bytes($bytes) {
                if ($bytes < 1024) return $bytes.' B';
@@ -83,7 +83,11 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
        echo "<title>$title ($maj_s)</title>";
-       echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\"><tr><td valign=\"top\">";
+       echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\">";
+       echo "<tr><td colspan=\"2\"><div style=\"margin: 5px;\"><a style=\"font-size: 14px;\" href=\".?entry=$maj_d\">$title</a></div></td></tr>";
+       echo "<tr><td valign=\"top\">";
        echo "<div class=\"main\">";   
        echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#ffffff\"><tr bgcolor=\"#ffffff\"><td>";
@@ -219,7 +223,7 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
                echo "</a>";
                echo "</td>";
-               echo "<td valign=\"top\"><a href=\"video.php?entry=$maj_d&show=$maj_play\">$maj_play</a>";
+               echo "<td valign=\"top\"><a href=\"video.php?entry=$maj_d&show=$maj_play\">$maj_play</a><font class=\"info\">";
                if (file_exists("data/items/$maj_d/media/videos/$maj_play/views.txt")) {
@@ -235,7 +239,7 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
-               echo "<font style=\"font-size: 9px;\"><br>";
+               echo "<br>";
                if (file_exists("$maj_video.mp4")) {
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
MAJ 2.0
75 files
MAJ 1.0
26 files
MAJ 0.14
45 files