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

commit d5cce8ec187820c5ae1803e7cfdc987e6d33664f
tree 7872a835212f1c33d54dd7e8e1ed0a1165e7b2d8
parent 6fded58d201657e66d0ef6f08476d399c31478c1
author Psylocke Antonio <psylocke@majcms.org> 1369781352 +0800
committer Psylocke Antonio <psylocke@majcms.org> 1369781352 +0800

    Add Tahoma and Verdana to basic fonts

diff --git a/css.php b/css.php
index fefe3ca..a6ce784 100644
--- a/css.php
+++ b/css.php
@@ -68,7 +68,7 @@ body {
        color: #666666;
        background-color: #ffffff;
        text-align: left;
-       font-family: "lucida grande","arial","helvetica","sans-serif";
+       font-family: "lucida grande","tahoma","verdana","arial","helvetica","sans-serif";
        <?php
 
        echo "font-size: $maj_font_Dpx;";
@@ -80,7 +80,7 @@ body {
 
        if (file_exists("data/fonts/body.txt")) {
                $maj_font_body = file_get_contents("data/fonts/body.txt");
-               echo "\n\tfont-family: \"$maj_font_body\",\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
+               echo "\n\tfont-family: \"$maj_font_body\",\"lucida grande\",\"tahoma\",\"verdana\",\"arial\",\"helvetica\",\"sans-serif\";";
        }
       
        if (file_exists("data/colors/bg.txt")) {
@@ -267,7 +267,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
        border-color: #dedede;
        border-width: 1px 1px 0px 1px;
        border-style: solid solid none solid;
-       font-family: "lucida grande","arial","helvetica","sans-serif";
+       font-family: "lucida grande","tahoma","verdana","arial","helvetica","sans-serif";
        font-weight: bold;
        <?php
 
@@ -301,7 +301,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
 
        if (file_exists("data/fonts/panel-title.txt")) {
                $maj_font_panel_title = file_get_contents("data/fonts/panel-title.txt");
-               echo "\n\tfont-family: \"$maj_font_panel_title\",\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
+               echo "\n\tfont-family: \"$maj_font_panel_title\",\"lucida grande\",\"tahoma\",\"verdana\",\"arial\",\"helvetica\",\"sans-serif\";";
        }
 
        echo "\n";
@@ -328,7 +328,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
        border-color: #dedede;
        border-width: 1px;
        border-style: solid;
-       font-family: "lucida grande","arial","helvetica","sans-serif";
+       font-family: "lucida grande","tahoma","verdana","arial","helvetica","sans-serif";
        <?php
       
        echo "font-size: $maj_font_Mpx;";
@@ -356,7 +356,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
 
        if (file_exists("data/fonts/panel-body.txt")) {
                $maj_font_panel_body = file_get_contents("data/fonts/panel-body.txt");
-               echo "\n\tfont-family: $maj_font_panel_body,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
+               echo "\n\tfont-family: $maj_font_panel_body,\"lucida grande\",\"tahoma\",\"verdana\",\"arial\",\"helvetica\",\"sans-serif\";";
        }
 
        echo "\n";
@@ -373,7 +373,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
        border-width: 0px 1px 1px 1px;
        border-style: none solid solid solid;
        text-align: right;
-       font-family: "lucida grande","arial","helvetica","sans-serif";
+       font-family: "lucida grande","tahoma","verdana","arial","helvetica","sans-serif";
        <?php
       
        echo "font-size: $maj_font_Spx;";
@@ -406,7 +406,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
 
        if (file_exists("data/fonts/panel-footer.txt")) {
                $maj_font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
-               echo "\n\tfont-family: $maj_font_panel_footer,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
+               echo "\n\tfont-family: $maj_font_panel_footer,\"lucida grande\",\"tahoma\",\"verdana\",\"arial\",\"helvetica\",\"sans-serif\";";
        }
 
        echo "\n";
@@ -426,7 +426,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
        border-color: #dedede;
        border-width: 1px;
        border-style: solid;
-       font-family: "lucida grande","arial","helvetica","sans-serif";
+       font-family: "lucida grande","tahoma","verdana","arial","helvetica","sans-serif";
        <?php
 
        echo "font-size: $maj_font_Mpx;";
@@ -443,7 +443,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
 
        if (file_exists("data/fonts/panel-body.txt")) {
                $maj_font_panel_body = file_get_contents("data/fonts/panel-body.txt");
-               echo "\n\tfont-family: $maj_font_panel_body,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
+               echo "\n\tfont-family: $maj_font_panel_body,\"lucida grande\",\"tahoma\",\"verdana\",\"arial\",\"helvetica\",\"sans-serif\";";
        }
 
        echo "\n";
@@ -460,7 +460,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
        border-width: 0px 1px 1px 1px;
        border-style: none solid solid solid;
        text-align: left;
-       font-family: "lucida grande","arial","helvetica","sans-serif";
+       font-family: "lucida grande","tahoma","verdana","arial","helvetica","sans-serif";
        <?php
 
        echo "font-size: $maj_font_Spx;";
@@ -482,7 +482,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
 
        if (file_exists("data/fonts/panel-footer.txt")) {
                $maj_font_panel_category = file_get_contents("data/fonts/panel-footer.txt");
-               echo "\n\tfont-family: $maj_font_panel_category,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
+               echo "\n\tfont-family: $maj_font_panel_category,\"lucida grande\",\"tahoma\",\"verdana\",\"arial\",\"helvetica\",\"sans-serif\";";
        }
       
        echo "\n";
@@ -496,7 +496,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
        color: #666666;
        background: #ffffff;
        border: #999999 solid 1px;
-       font-family: "lucida grande","arial","helvetica","sans-serif";
+       font-family: "lucida grande","tahoma","verdana","arial","helvetica","sans-serif";
        <?php
       
        echo "font-size: $maj_font_Ipx;";
@@ -513,7 +513,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
 
        if (file_exists("data/fonts/input.txt")) {
                $maj_font_input = file_get_contents("data/fonts/input.txt");
-               echo "\n\tfont-family: $maj_font_input,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
+               echo "\n\tfont-family: $maj_font_input,\"lucida grande\",\"tahoma\",\"verdana\",\"arial\",\"helvetica\",\"sans-serif\";";
        }
       
        echo "\n";
@@ -532,7 +532,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
        background: #ffffff;
        border: #999999 solid 1px;
        font-weight: bold;
-       font-family: "lucida grande","arial","helvetica","sans-serif";
+       font-family: "lucida grande","tahoma","verdana","arial","helvetica","sans-serif";
        <?php
       
        echo "font-size: $maj_font_Mpx;";
@@ -549,7 +549,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
 
        if (file_exists("data/fonts/input.txt")) {
                $maj_font_input = file_get_contents("data/fonts/input.txt");
-               echo "\n\tfont-family: $maj_font_input,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
+               echo "\n\tfont-family: $maj_font_input,\"lucida grande\",\"tahoma\",\"verdana\",\"arial\",\"helvetica\",\"sans-serif\";";
        }
       
        echo "\n";
@@ -577,14 +577,14 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
        color: #666666;
        background: #ffffff;
        border: #dedede solid 1px;
-       font-family: "lucida grande","arial","helvetica","sans-serif";
+       font-family: "lucida grande","tahoma","verdana","arial","helvetica","sans-serif";
        <?php
       
        echo "font-size: $maj_font_Ipx;";
       
        if (file_exists("data/fonts/input.txt")) {
                $maj_font_input = file_get_contents("data/fonts/input.txt");
-               echo "\n\tfont-family: $maj_font_input,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
+               echo "\n\tfont-family: $maj_font_input,\"lucida grande\",\"tahoma\",\"verdana\",\"arial\",\"helvetica\",\"sans-serif\";";
        }
       
        if (file_exists("data/colors/border.txt")) {
@@ -602,7 +602,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
        color: #ccc;
        background-color: #fff;
        border: 1px solid #dedede;
-       font-family: "lucida grande","arial","helvetica","sans-serif";
+       font-family: "lucida grande","tahoma","verdana","arial","helvetica","sans-serif";
        font-size: 9px;
        -webkit-box-shadow: 0 0 1px #ddd;
        -khtml-box-shadow: 0 0 1px #ddd;
 
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
31116 downloads
MAJ 1.0
26 files
12565 downloads
MAJ 0.14
45 files
33947 downloads