This commit has been accessed 574 times via Git panel.
commit dce705c6a4dd45fea913d35468eb1587f631d02c
tree 79a5e8df575854ffd260212fe3797385ecec2bae
parent 52b4786704c102e06cc7ad3e542321ee732d6545
author Engels Antonio <engels@majcms.org> 1277314189 +0800
committer Engels Antonio <engels@majcms.org> 1277314189 +0800
maj-0.14-20071018-bb.zip
diff --git a/add.php b/add.php
index de835ce..962e0cd 100644
--- a/add.php
+++ b/add.php
@@ -49,50 +49,67 @@ if (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+
+p {
font-size: 11px;
}
-a
-{
+
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+
+a:hover {
color: #336699;
}
+
a:active {
color: #336699;
}
+
.input_title {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 512px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-title.txt")) {
+ $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$font_panel_title},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
font-weight: bold
}
+
.input_body {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 512px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-body.txt")) {
+ $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$font_panel_body},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px
}
</style>
diff --git a/album.php b/album.php
index d3f6131..be28c90 100644
--- a/album.php
+++ b/album.php
@@ -124,41 +124,52 @@ if (isset($_REQUEST['caption']) and !empty($_REQUEST['caption']) and isset($_SES
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+
+p {
font-size: 11px;
}
-a
-{
+
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+
+a:hover {
color: #336699;
}
+
a:active {
color: #336699;
}
+
.input {
color: #666666;
background: #FFFFFF;
border: #999999 solid 1px;
width: 100%;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
}
</style>
diff --git a/cat.php b/cat.php
index e90cd87..ee2bc8a 100644
--- a/cat.php
+++ b/cat.php
@@ -118,49 +118,66 @@ if (empty($_REQUEST['cat_title']) and file_exists("data/categories/{$_REQUEST['c
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+
+p {
font-size: 11px;
}
-a
-{
+
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+
+a:hover {
color: #336699;
}
+
a:active {
color: #336699;
}
+
.input {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 300px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px
}
+
.submit {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 100px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px
}
</style>
diff --git a/colors.php b/colors.php
index 9b24d94..e0910ae 100644
--- a/colors.php
+++ b/colors.php
@@ -402,7 +402,12 @@ body {
margin: 5px 5px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #ffffff;
}
@@ -460,10 +465,14 @@ a:active {
}
#panel_title {
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-title.txt")) {
+ $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$font_panel_title},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
-
color: <?php
if (file_exists("data/colors/pt-font.txt")) {
readfile("data/colors/pt-font.txt");
@@ -474,7 +483,6 @@ a:active {
?>;
padding: 5px 5px 5px 5px;
-
background-color: <?php
if (file_exists("data/colors/pt-bg.txt")) {
readfile("data/colors/pt-bg.txt");
@@ -483,9 +491,7 @@ a:active {
echo "transparent";
}
?>;
-
margin: 0px;
-
border-color: <?php
if (file_exists("data/colors/border.txt")) {
readfile("data/colors/border.txt");
@@ -494,16 +500,19 @@ a:active {
echo "#CCCCCC";
}
?>;
-
border-width: 1px 1px 0px 1px;
border-style: solid solid none solid;
width: 277px;
}
#panel_body {
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-body.txt")) {
+ $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$font_panel_body},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
-
color: <?php
if (file_exists("data/colors/pb-font.txt")) {
readfile("data/colors/pb-font.txt");
@@ -514,7 +523,6 @@ a:active {
?>;
padding: 5px 5px 5px 5px;
-
background-color: <?php
if (file_exists("data/colors/pb-bg.txt")) {
readfile("data/colors/pb-bg.txt");
@@ -523,9 +531,7 @@ a:active {
echo "transparent";
}
?>;
-
margin: 0px;
-
border-color: <?php
if (file_exists("data/colors/border.txt")) {
readfile("data/colors/border.txt");
@@ -534,16 +540,19 @@ a:active {
echo "#CCCCCC";
}
?>;
-
border-width: 1px 1px 1px 1px;
border-style: solid solid solid solid;
width: 277px;
}
#panel_footer {
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-footer.txt")) {
+ $font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
+ echo "{$font_panel_footer},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
-
color: <?php
if (file_exists("data/colors/pf-font.txt")) {
readfile("data/colors/pf-font.txt");
@@ -552,9 +561,7 @@ a:active {
echo "#666666";
}
?>;
-
padding: 5px 5px 5px 5px;
-
background-color: <?php
if (file_exists("data/colors/pf-bg.txt")) {
readfile("data/colors/pf-bg.txt");
@@ -563,9 +570,7 @@ a:active {
echo "transparent";
}
?>;
-
margin: 0px;
-
border-color: <?php
if (file_exists("data/colors/border.txt")) {
readfile("data/colors/border.txt");
@@ -574,7 +579,6 @@ a:active {
echo "#CCCCCC";
}
?>;
-
border-width: 0px 1px 1px 1px;
border-style: none solid solid solid;
width: 277px;
@@ -589,9 +593,7 @@ a:active {
echo "#666666";
}
?>;
-
background: #ffffff;
-
border: <?php
if (file_exists("data/colors/border.txt")) {
readfile("data/colors/border.txt");
@@ -600,10 +602,14 @@ a:active {
echo "#999999";
}
?> solid 1px;
-
width: 277px;
margin: 2px 0px 0px 0px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
padding: 2px 5px 2px 5px;
}
@@ -613,14 +619,23 @@ a:active {
background: #ffffff;
border: #999999 solid 1px;
width: 289px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px
}
#panel_out {
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
-
color: <?php
if (file_exists("data/colors/font.txt")) {
readfile("data/colors/font.txt");
@@ -629,9 +644,7 @@ a:active {
echo "#666666";
}
?>;
-
padding: 5px 5px 5px 5px;
-
background-color: <?php
if (file_exists("data/colors/bg.txt") and !file_exists("images/background.gif") and !file_exists("images/background.jpg") and !file_exists("images/background.png")) {
readfile("data/colors/bg.txt");
@@ -640,43 +653,48 @@ a:active {
echo "transparent";
}
?>;
-
margin: 0px;
border-width: 0px 0px 0px 0px;
border-style: solid solid solid solid;
}
.farbtastic {
- position: relative;
+ position: relative;
}
+
.farbtastic * {
- position: absolute;
- cursor: crosshair;
+ position: absolute;
+ cursor: crosshair;
}
+
.farbtastic, .farbtastic .wheel {
- width: 195px;
- height: 195px;
+ width: 195px;
+ height: 195px;
}
+
.farbtastic .color, .farbtastic .overlay {
- top: 47px;
- left: 47px;
- width: 101px;
- height: 101px;
+ top: 47px;
+ left: 47px;
+ width: 101px;
+ height: 101px;
}
+
.farbtastic .wheel {
- background: url(images/color-wheel.png) no-repeat;
- width: 195px;
- height: 195px;
+ background: url(images/color-wheel.png) no-repeat;
+ width: 195px;
+ height: 195px;
}
+
.farbtastic .overlay {
- background: url(images/color-mask.png) no-repeat;
+ background: url(images/color-mask.png) no-repeat;
}
+
.farbtastic .marker {
- width: 17px;
- height: 17px;
- margin: -8px 0 0 -8px;
- overflow: hidden;
- background: url(images/color-marker.png) no-repeat;
+ width: 17px;
+ height: 17px;
+ margin: -8px 0 0 -8px;
+ overflow: hidden;
+ background: url(images/color-marker.png) no-repeat;
}
</style>
@@ -685,9 +703,9 @@ a:active {
<script type="text/javascript" src="js/farbtastic.js"></script>
<script type="text/javascript">
- $(document).ready(function() {
- $('#colorpicker').farbtastic('#color');
- });
+ $(document).ready(function() {
+ $('#colorpicker').farbtastic('#color');
+ });
</script>
<p> </p>
@@ -703,21 +721,21 @@ a:active {
}
if (file_exists("images/background.gif") and !file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>background-image: url('images/background.gif');
- background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
- background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
- background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
+ background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
+ background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
+ background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
<?php
}
if (!file_exists("images/background.gif") and file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>background-image: url('images/background.jpg');
- background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
- background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
- background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
+ background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
+ background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
+ background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
<?php
}
if (!file_exists("images/background.gif") and !file_exists("images/background.jpg") and file_exists("images/background.png")) { ?>background-image: url('images/background.png');
- background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
- background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
- background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
+ background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
+ background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
+ background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
<?php
}
diff --git a/del.php b/del.php
index cef0b14..01ef973 100644
--- a/del.php
+++ b/del.php
@@ -145,68 +145,62 @@ $img_file = 'data/items/' . $_REQUEST['entry'] . '/img.txt';
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+p {
font-size: 11px;
}
-a
-{
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+a:hover {
color: #336699;
}
a:active {
color: #336699;
}
-.input_title {
- color: #666666;
- background: #ffffff;
- border: #999999 solid 1px;
- width: 525px;
- font-family: verdana,helvetica,sans-serif;
- font-size: 11px;
- font-weight: bold
-}
-.input_body {
- color: #666666;
- background: #ffffff;
- border: #999999 solid 1px;
- width: 525px;
- font-family: verdana,helvetica,sans-serif;
- font-size: 11px
-}
+
.input_submit {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 125px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px
}
-#panel_title
-{
- font-family: verdana, helvetica, sans-serif;
+
+#panel_title {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-title.txt")) {
+ $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$font_panel_title},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #666666;
@@ -217,9 +211,14 @@ a:active {
border-width: 1px 1px 0px 1px;
border-style: solid solid none solid;
}
-#panel_body
-{
- font-family: verdana, helvetica, sans-serif;
+
+#panel_body {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-body.txt")) {
+ $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$font_panel_body},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
color: #666666;
padding: 5px 5px 5px 5px;
@@ -229,9 +228,14 @@ a:active {
border-width: 1px 1px 1px 1px;
border-style: solid solid solid solid;
}
-#panel_footer
-{
- font-family: verdana, helvetica, sans-serif;
+
+#panel_footer {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-footer.txt")) {
+ $font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
+ echo "{$font_panel_footer},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
color: #666666;
padding: 5px 5px 5px 5px;
diff --git a/dig.php b/dig.php
index 175cf8b..654549e 100644
--- a/dig.php
+++ b/dig.php
@@ -26,34 +26,34 @@ if (get_magic_quotes_gpc()) {
<title>Dig!</title>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+p {
font-size: 11px;
}
-a
-{
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+a:hover {
color: #336699;
}
diff --git a/edit.php b/edit.php
index 0d8e845..5525560 100644
--- a/edit.php
+++ b/edit.php
@@ -22,8 +22,7 @@ if (get_magic_quotes_gpc()) {
$login_username = file_get_contents("data/username.txt");
-function rmdirr($recurse_dirname)
-{
+function rmdirr($recurse_dirname) {
if (!file_exists($recurse_dirname)) {
return false;
@@ -79,89 +78,116 @@ if (file_exists("data/items/{$_REQUEST['entry']}/category.txt")) {
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
- background-color: #FFFFFF;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
+ background-color: #ffffff;
}
-p
-{
+p, td {
font-size: 11px;
}
-a
-{
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+a:hover {
color: #336699;
}
a:active {
color: #336699;
}
+
.input_title {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 525px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-title.txt")) {
+ $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$font_panel_title},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
font-weight: bold
}
+
.input_body {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 525px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-body.txt")) {
+ $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$font_panel_body},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px
}
-#panel_title
-{
- font-family: verdana, helvetica, sans-serif;
+
+#panel_title {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-title.txt")) {
+ $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$font_panel_title},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #666666;
padding: 5px 5px 5px 5px;
- background-color: #FFFFFF;
+ background-color: #ffffff;
margin: 0px;
border-color: #CCCCCC;
border-width: 1px 1px 0px 1px;
border-style: solid solid none solid;
}
-#panel_body
-{
- font-family: verdana, helvetica, sans-serif;
+
+#panel_body {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-body.txt")) {
+ $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$font_panel_body},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
color: #666666;
padding: 5px 5px 5px 5px;
- background-color: #FFFFFF;
+ background-color: #ffffff;
margin: 0px;
border-color: #CCCCCC;
border-width: 1px 1px 1px 1px;
border-style: solid solid solid solid;
}
-#panel_footer
-{
- font-family: verdana, helvetica, sans-serif;
+
+#panel_footer {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-footer.txt")) {
+ $font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
+ echo "{$font_panel_footer},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
color: #666666;
padding: 5px 5px 5px 5px;
- background-color: #FFFFFF;
+ background-color: #ffffff;
margin: 0px;
border-color: #CCCCCC;
border-width: 0px 1px 1px 1px;
@@ -258,6 +284,10 @@ if (isset($_REQUEST['comment']) and !empty($_REQUEST['comment'])) { ?>
<tr><td><input class=input_body type=submit value="click here to update this comment"></td></tr>
</form>
+ <form enctype="multipart/form-data" action="index.php?entry=<?php echo $_REQUEST['entry']; ?>&show=comments" method="post">
+ <tr><td><input class=input_body type=submit value="click here to view posted entry"></td></tr>
+ </form>
+
<form enctype="multipart/form-data" action="<?php echo 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']); ?>" method="post">
<tr><td><input class=input_body type=submit value="click here to go to the index page"></td></tr>
</form>
@@ -420,6 +450,10 @@ echo $body_read_content;
<tr><td><input class=input_body type=submit value="click here to update this entry"></td></tr>
</form>
+<form enctype="multipart/form-data" action="index.php?entry=<?php echo $_REQUEST['entry']; ?>" method="post">
+<tr><td><input class=input_body type=submit value="click here to view posted entry"></td></tr>
+</form>
+
<form enctype="multipart/form-data" action="<?php echo 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']); ?>" method="post">
<tr><td><input class=input_body type=submit value="click here to go to the index page"></td></tr>
</form>
diff --git a/fonts.php b/fonts.php
new file mode 100644
index 0000000..e97cf3b
--- /dev/null
+++ b/fonts.php
@@ -0,0 +1,551 @@
+<?php
+
+session_start();
+header("Cache-control: private");
+
+error_reporting(E_ERROR);
+
+if (get_magic_quotes_gpc()) {
+ function stripslashes_array($data) {
+ if (is_array($data)){
+ foreach ($data as $key => $value){
+ $data[$key] = stripslashes_array($value);
+ }
+ return $data;
+ }
+ else{
+ return stripslashes($data);
+ }
+ }
+
+ $_REQUEST = stripslashes_array($_REQUEST);
+}
+
+$login_username = file_get_contents("data/username.txt");
+
+if (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) {
+ exit();
+}
+
+if (!file_exists("data/fonts")) {
+ mkdir("data/fonts");
+}
+
+function rmdirr($recurse_dirname) {
+
+ if (!file_exists($recurse_dirname)) {
+ return false;
+ }
+
+ if (is_file($recurse_dirname)) {
+ return unlink($recurse_dirname);
+ }
+
+ $recurse_dir = dir($recurse_dirname);
+
+ while (false !== $recurse_entry = $recurse_dir->read()) {
+
+ if ($recurse_entry == '.' || $recurse_entry == '..') {
+ continue;
+ }
+
+ rmdirr("$recurse_dirname/$recurse_entry");
+ }
+
+ $recurse_dir->close();
+ return rmdir($recurse_dirname);
+}
+
+if (isset($_REQUEST['reset']) and !empty($_REQUEST['reset']) and ($_REQUEST['reset'] == "go")) {
+ rmdirr("data/fonts");
+}
+
+if (isset($_REQUEST['body']) and !empty($_REQUEST['body']) and (file_get_contents("data/fonts/body.txt") != $_REQUEST['body'])) {
+ $body_write_content = strtolower($_REQUEST['body']);
+ $body_write_content = trim($body_write_content);
+ $body_write_content = str_replace(", ",",",$body_write_content);
+ $body_write_content = str_replace(" ,",",",$body_write_content);
+ $body_write_content = preg_replace("/([!?,.])+/","\\1",$body_write_content);
+ $body_write_content = rtrim($body_write_content,',');
+ $body_write_content = str_replace(",",", ",$body_write_content);
+ $body_write_content = preg_replace('/\s\s+/',' ',$body_write_content);
+ $body_write_content = trim($body_write_content);
+ $fp_body_txt = fopen("data/fonts/body.txt","w");
+ fwrite($fp_body_txt,$body_write_content);
+ fclose($fp_body_txt);
+}
+
+if (!isset($_REQUEST['body']) or empty($_REQUEST['body'])) {
+ if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+ if (file_exists("data/fonts/body.txt")) {
+ unlink("data/fonts/body.txt");
+ }
+ }
+}
+
+if (isset($_REQUEST['input']) and !empty($_REQUEST['input']) and (file_get_contents("data/fonts/input.txt") != $_REQUEST['input'])) {
+ $input_write_content = strtolower($_REQUEST['input']);
+ $input_write_content = trim($input_write_content);
+ $input_write_content = str_replace(", ",",",$input_write_content);
+ $input_write_content = str_replace(" ,",",",$input_write_content);
+ $input_write_content = preg_replace("/([!?,.])+/","\\1",$input_write_content);
+ $input_write_content = rtrim($input_write_content,',');
+ $input_write_content = str_replace(",",", ",$input_write_content);
+ $input_write_content = preg_replace('/\s\s+/',' ',$input_write_content);
+ $input_write_content = trim($input_write_content);
+ $fp_input_txt = fopen("data/fonts/input.txt","w");
+ fwrite($fp_input_txt,$input_write_content);
+ fclose($fp_input_txt);
+}
+
+if (!isset($_REQUEST['input']) or empty($_REQUEST['input'])) {
+ if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+ if (file_exists("data/fonts/input.txt")) {
+ unlink("data/fonts/input.txt");
+ }
+ }
+}
+
+if (isset($_REQUEST['panel_title']) and !empty($_REQUEST['panel_title']) and (file_get_contents("data/fonts/panel-title.txt") != $_REQUEST['panel_title'])) {
+ $panel_title_write_content = strtolower($_REQUEST['panel_title']);
+ $panel_title_write_content = trim($panel_title_write_content);
+ $panel_title_write_content = str_replace(", ",",",$panel_title_write_content);
+ $panel_title_write_content = str_replace(" ,",",",$panel_title_write_content);
+ $panel_title_write_content = preg_replace("/([!?,.])+/","\\1",$panel_title_write_content);
+ $panel_title_write_content = rtrim($panel_title_write_content,',');
+ $panel_title_write_content = str_replace(",",", ",$panel_title_write_content);
+ $panel_title_write_content = preg_replace('/\s\s+/',' ',$panel_title_write_content);
+ $panel_title_write_content = trim($panel_title_write_content);
+ $fp_panel_title_txt = fopen("data/fonts/panel-title.txt","w");
+ fwrite($fp_panel_title_txt,$panel_title_write_content);
+ fclose($fp_panel_title_txt);
+}
+
+if (!isset($_REQUEST['panel_title']) or empty($_REQUEST['panel_title'])) {
+ if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+ if (file_exists("data/fonts/panel-title.txt")) {
+ unlink("data/fonts/panel-title.txt");
+ }
+ }
+}
+
+if (isset($_REQUEST['panel_body']) and !empty($_REQUEST['panel_body']) and (file_get_contents("data/fonts/panel-body.txt") != $_REQUEST['panel_body'])) {
+ $panel_body_write_content = strtolower($_REQUEST['panel_body']);
+ $panel_body_write_content = trim($panel_body_write_content);
+ $panel_body_write_content = str_replace(", ",",",$panel_body_write_content);
+ $panel_body_write_content = str_replace(" ,",",",$panel_body_write_content);
+ $panel_body_write_content = preg_replace("/([!?,.])+/","\\1",$panel_body_write_content);
+ $panel_body_write_content = rtrim($panel_body_write_content,',');
+ $panel_body_write_content = str_replace(",",", ",$panel_body_write_content);
+ $panel_body_write_content = preg_replace('/\s\s+/',' ',$panel_body_write_content);
+ $panel_body_write_content = trim($panel_body_write_content);
+ $fp_panel_body_txt = fopen("data/fonts/panel-body.txt","w");
+ fwrite($fp_panel_body_txt,$panel_body_write_content);
+ fclose($fp_panel_body_txt);
+}
+
+if (!isset($_REQUEST['panel_body']) or empty($_REQUEST['panel_body'])) {
+ if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+ if (file_exists("data/fonts/panel-body.txt")) {
+ unlink("data/fonts/panel-body.txt");
+ }
+ }
+}
+
+if (isset($_REQUEST['panel_footer']) and !empty($_REQUEST['panel_footer']) and (file_get_contents("data/fonts/panel-footer.txt") != $_REQUEST['panel_footer'])) {
+ $panel_footer_write_content = strtolower($_REQUEST['panel_footer']);
+ $panel_footer_write_content = trim($panel_footer_write_content);
+ $panel_footer_write_content = str_replace(", ",",",$panel_footer_write_content);
+ $panel_footer_write_content = str_replace(" ,",",",$panel_footer_write_content);
+ $panel_footer_write_content = preg_replace("/([!?,.])+/","\\1",$panel_footer_write_content);
+ $panel_footer_write_content = rtrim($panel_footer_write_content,',');
+ $panel_footer_write_content = str_replace(",",", ",$panel_footer_write_content);
+ $panel_footer_write_content = preg_replace('/\s\s+/',' ',$panel_footer_write_content);
+ $panel_footer_write_content = trim($panel_footer_write_content);
+ $fp_panel_footer_txt = fopen("data/fonts/panel-footer.txt","w");
+ fwrite($fp_panel_footer_txt,$panel_footer_write_content);
+ fclose($fp_panel_footer_txt);
+}
+
+if (!isset($_REQUEST['panel_footer']) or empty($_REQUEST['panel_footer'])) {
+ if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+ if (file_exists("data/fonts/panel-footer.txt")) {
+ unlink("data/fonts/panel-footer.txt");
+ }
+ }
+}
+
+?>
+
+<style>
+body {
+ color: #666666;
+ margin: 5px 5px;
+ padding: 0px;
+ text-align: left;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
+ background-color: #ffffff;
+}
+
+p, td {
+ font-size: 11px;
+}
+
+a {
+ font-weight: bold;
+ text-decoration: none;
+}
+
+a:link {
+ color: <?php
+ if (file_exists("data/colors/link.txt")) {
+ readfile("data/colors/link.txt");
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+}
+
+a:visited {
+ color: <?php
+ if (file_exists("data/colors/vlink.txt")) {
+ readfile("data/colors/vlink.txt");
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+}
+
+a:hover {
+ color: <?php
+ if (file_exists("data/colors/hover.txt")) {
+ readfile("data/colors/hover.txt");
+ }
+ else {
+ echo "#336699";
+ }
+ ?>;
+}
+
+a:active {
+ color: <?php
+ if (file_exists("data/colors/hover.txt")) {
+ readfile("data/colors/hover.txt");
+ }
+ else {
+ echo "#336699";
+ }
+ ?>;
+}
+
+#panel_title {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-title.txt")) {
+ $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$font_panel_title},";
+ }
+ ?> arial, helvetica, sans-serif;
+ font-size: 12px;
+ font-weight: bold;
+ color: <?php
+ if (file_exists("data/colors/pt-font.txt")) {
+ readfile("data/colors/pt-font.txt");
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+
+ padding: 5px 5px 5px 5px;
+ background-color: <?php
+ if (file_exists("data/colors/pt-bg.txt")) {
+ readfile("data/colors/pt-bg.txt");
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+ margin: 0px;
+ border-color: <?php
+ if (file_exists("data/colors/border.txt")) {
+ readfile("data/colors/border.txt");
+ }
+ else {
+ echo "#CCCCCC";
+ }
+ ?>;
+ border-width: 1px 1px 0px 1px;
+ border-style: solid solid none solid;
+ width: 277px;
+}
+
+#panel_body {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-body.txt")) {
+ $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$font_panel_body},";
+ }
+ ?> arial, helvetica, sans-serif;
+ font-size: 11px;
+ color: <?php
+ if (file_exists("data/colors/pb-font.txt")) {
+ readfile("data/colors/pb-font.txt");
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+
+ padding: 5px 5px 5px 5px;
+ background-color: <?php
+ if (file_exists("data/colors/pb-bg.txt")) {
+ readfile("data/colors/pb-bg.txt");
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+ margin: 0px;
+ border-color: <?php
+ if (file_exists("data/colors/border.txt")) {
+ readfile("data/colors/border.txt");
+ }
+ else {
+ echo "#CCCCCC";
+ }
+ ?>;
+ border-width: 1px 1px 1px 1px;
+ border-style: solid solid solid solid;
+ width: 277px;
+}
+
+#panel_footer {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-footer.txt")) {
+ $font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
+ echo "{$font_panel_footer},";
+ }
+ ?> arial, helvetica, sans-serif;
+ font-size: 11px;
+ color: <?php
+ if (file_exists("data/colors/pf-font.txt")) {
+ readfile("data/colors/pf-font.txt");
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+ padding: 5px 5px 5px 5px;
+ background-color: <?php
+ if (file_exists("data/colors/pf-bg.txt")) {
+ readfile("data/colors/pf-bg.txt");
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+ margin: 0px;
+ border-color: <?php
+ if (file_exists("data/colors/border.txt")) {
+ readfile("data/colors/border.txt");
+ }
+ else {
+ echo "#CCCCCC";
+ }
+ ?>;
+ border-width: 0px 1px 1px 1px;
+ border-style: none solid solid solid;
+ width: 277px;
+}
+
+#panel_input {
+ color: <?php
+ if (file_exists("data/colors/border.txt")) {
+ readfile("data/colors/border.txt");
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+ background: #ffffff;
+ border: <?php
+ if (file_exists("data/colors/border.txt")) {
+ readfile("data/colors/border.txt");
+ }
+ else {
+ echo "#999999";
+ }
+ ?> solid 1px;
+ width: 277px;
+ margin: 2px 0px 0px 0px;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
+ font-size: 11px;
+ padding: 2px 5px 2px 5px;
+}
+
+.input {
+ color: #666666;
+ background: #ffffff;
+ border: #999999 solid 1px;
+ width: 289px;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
+ font-size: 11px
+}
+
+#panel_out {
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
+ font-size: 11px;
+ color: <?php
+ if (file_exists("data/colors/font.txt")) {
+ readfile("data/colors/font.txt");
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+ padding: 5px 5px 5px 5px;
+ background-color: <?php
+ if (file_exists("data/colors/bg.txt") and !file_exists("images/background.gif") and !file_exists("images/background.jpg") and !file_exists("images/background.png")) {
+ readfile("data/colors/bg.txt");
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+ margin: 0px;
+ border-width: 0px 0px 0px 0px;
+ border-style: solid solid solid solid;
+}
+
+</style>
+
+
+<table border=0 cellspacing=10 cellpadding=2><tr><td>
+
+<table border=0 cellspacing=1 cellpadding=10 bgcolor=#cccccc>
+<tr><td<?php
+ if (file_exists("images/background.gif") or file_exists("images/background.jpg") or file_exists("images/background.png")) {
+ echo ' style="';
+ }
+
+ if (file_exists("images/background.gif") and !file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>background-image: url('images/background.gif');
+ background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
+ background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
+ background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
+ <?php
+ }
+ if (!file_exists("images/background.gif") and file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>background-image: url('images/background.jpg');
+ background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
+ background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
+ background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
+ <?php
+ }
+ if (!file_exists("images/background.gif") and !file_exists("images/background.jpg") and file_exists("images/background.png")) { ?>background-image: url('images/background.png');
+ background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
+ background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
+ background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
+ <?php
+ }
+
+ if (file_exists("images/background.gif") or file_exists("images/background.jpg") or file_exists("images/background.png")) {
+ echo '"';
+ }
+
+ echo ' bgcolor="';
+
+ if (file_exists("data/colors/bg.txt")) {
+ $bgcolor = file_get_contents("data/colors/bg.txt");
+ if ($bgcolor == "transparent") {
+ echo "#ffffff";
+ }
+ else {
+ echo $bgcolor;
+ }
+ }
+ else {
+ echo "#ffffff";
+ }
+
+ echo '">';
+
+ ?>
+
+<div id=panel_out><b>Fonts</b> Preview</div>
+<div id=panel_title>Panel Title</div>
+<div id=panel_body><font style="font-size: 10px; color: #999999;">panel body</font><p>Enter your preferred fonts to override the defaults. You may specify more than one font, separated by commas, for each field. The following fonts are relatively web safe:</p><p>Arial<br>Arial Black<br>Comic Sans MS<br>Courier New<br>Georgia<br>Impact<br>Times New Roman<br>Trebuchet MS<br>Verdana<br>Courier<br>Helvetica<br>Times<br>Andale Mono<br>Bitstream Vera Sans<br>Bitstream Vera Sans Mono<br>Bitstream Vera Serif</p><p>While this serves as a convenient preview, fonts are actually applied immediately after submission.</p><p><a href=none.php>Hyperlink #1</a><br><a href="<?php echo $_SERVER['PHP_SELF']; ?>">Hyperlink #2</a><br><a href="<?php echo $_SERVER['PHP_SELF']; ?>">Hyperlink #3</a></p></div>
+<div id=panel_footer><font style="font-size: 10px; color: <?php if (file_exists("data/colors/pf-font.txt")) { $color_pf_font = file_get_contents("data/colors/pf-font.txt"); if ($color_pf_font == "transparent") { echo "#ffffff"; } else { echo $color_pf_font; } } else { echo "#999999"; } ?>;">panel footer | <a href="<?php echo $_SERVER['PHP_SELF']; ?>">permalink</a></font></div>
+<div id=panel_input>text input field</div>
+<div id=panel_input><center>submit button</center></div>
+</td></tr></table>
+
+</td><td>
+
+<form action=fonts.php method=post>
+<input type=hidden name=edit value=on>
+<table border=0 cellspacing=1 cellpadding=2 bgcolor=#cccccc>
+
+<tr><td bgcolor=#ffffff><p>body</p></td><td bgcolor=#ffffff><input type=text class=input name=body autocomplete=off<?php if (file_exists("data/fonts/body.txt")) {
+ echo ' value="';
+ readfile("data/fonts/body.txt");
+ echo '"';
+} ?>></td></tr>
+
+<tr><td bgcolor=#ffffff><p>input</p></td><td bgcolor=#ffffff><input type=text class=input name=input autocomplete=off<?php if (file_exists("data/fonts/input.txt")) {
+ echo ' value="';
+ readfile("data/fonts/input.txt");
+ echo '"';
+} ?>></td></tr>
+
+<tr><td bgcolor=#ffffff><p>panel title</p></td><td bgcolor=#ffffff><input type=text class=input name=panel_title autocomplete=off<?php if (file_exists("data/fonts/panel-title.txt")) {
+ echo ' value="';
+ readfile("data/fonts/panel-title.txt");
+ echo '"';
+} ?>></td></tr>
+
+<tr><td bgcolor=#ffffff><p>panel body</p></td><td bgcolor=#ffffff><input type=text class=input name=panel_body autocomplete=off<?php if (file_exists("data/fonts/panel-body.txt")) {
+ echo ' value="';
+ readfile("data/fonts/panel-body.txt");
+ echo '"';
+} ?>></td></tr>
+
+<tr><td bgcolor=#ffffff><p>panel footer</p></td><td bgcolor=#ffffff><input type=text class=input name=panel_footer autocomplete=off<?php if (file_exists("data/fonts/panel-footer.txt")) {
+ echo ' value="';
+ readfile("data/fonts/panel-footer.txt");
+ echo '"';
+} ?>></td></tr>
+
+<tr><td bgcolor=#ffffff rowspan=3><p></p></td><td bgcolor=#ffffff><input type=submit class=input value="click here to apply fonts"></td></tr>
+</form>
+<form action=fonts.php method=post>
+<input type=hidden name=reset value=go>
+<tr><td bgcolor=#ffffff><input type=submit class=input value="click here to use default fonts"></td></tr>
+</form>
+<form action=index.php method=post>
+<tr><td bgcolor=#ffffff><input type=submit class=input value="click here to go to the index page"></td></tr>
+</form>
+</table>
+
+
+</td></tr></table>
diff --git a/function_unzip.php b/function_unzip.php
index 8ae539a..c2105cb 100644
--- a/function_unzip.php
+++ b/function_unzip.php
@@ -88,4 +88,4 @@
}
-?>
\ No newline at end of file
+?>
diff --git a/index.php b/index.php
index 7d7fcfb..9ad4a63 100644
--- a/index.php
+++ b/index.php
@@ -637,12 +637,15 @@ body {
echo "#666666";
}
?>;
-
margin: 0px 0px 10px 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
-
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: <?php
if (file_exists("data/colors/bg.txt")) {
$background_color = file_get_contents("data/colors/bg.txt");
@@ -657,27 +660,26 @@ body {
echo "#ffffff";
}
?>;
-
<?php
if (file_exists("images/background.gif") and !file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>
- background-image: url('images/background.gif');
- background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
- background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
- background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
+ background-image: url('images/background.gif');
+ background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
+ background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
+ background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
<?php
}
if (!file_exists("images/background.gif") and file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>
- background-image: url('images/background.jpg');
- background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
- background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
- background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
+ background-image: url('images/background.jpg');
+ background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
+ background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
+ background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
<?php
}
if (!file_exists("images/background.gif") and !file_exists("images/background.jpg") and file_exists("images/background.png")) { ?>
- background-image: url('images/background.png');
- background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
- background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
- background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
+ background-image: url('images/background.png');
+ background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
+ background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
+ background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
<?php
}
?>
@@ -741,10 +743,14 @@ a:active {
}
#panel_title {
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-title.txt")) {
+ $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$font_panel_title},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
-
color: <?php
if (file_exists("data/colors/pt-font.txt")) {
$panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
@@ -754,9 +760,7 @@ a:active {
echo "#666666";
}
?>;
-
padding: 5px 5px 5px 5px;
-
background-color: <?php
if (file_exists("data/colors/pt-bg.txt")) {
$panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
@@ -766,9 +770,7 @@ a:active {
echo "transparent";
}
?>;
-
margin: 10px 0px 0px 0px;
-
border-color: <?php
if (file_exists("data/colors/border.txt")) {
$panel_title_border_color = file_get_contents("data/colors/border.txt");
@@ -778,15 +780,18 @@ a:active {
echo "#cccccc";
}
?>;
-
border-width: 1px 1px 0px 1px;
border-style: solid solid none solid;
}
#panel_body {
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-body.txt")) {
+ $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$font_panel_body},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
-
color: <?php
if (file_exists("data/colors/pb-font.txt")) {
$panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
@@ -796,7 +801,6 @@ a:active {
echo "#666666";
}
?>;
-
<?php
if (file_exists("data/round.txt")) {
echo 'padding: 5px 5px 2px 5px;';
@@ -805,7 +809,6 @@ a:active {
echo 'padding: 5px 5px 5px 5px;';
}
?>
-
background-color: <?php
if (file_exists("data/colors/pb-bg.txt")) {
$panel_body_background_color = file_get_contents("data/colors/pb-bg.txt");
@@ -815,9 +818,7 @@ a:active {
echo "transparent";
}
?>;
-
margin: 0px;
-
border-color: <?php
if (file_exists("data/colors/border.txt")) {
$panel_body_border_color = file_get_contents("data/colors/border.txt");
@@ -827,7 +828,6 @@ a:active {
echo "#cccccc";
}
?>;
-
<?php
if (file_exists("data/round.txt")) {
echo 'border-width: 1px 1px 0px 1px;';
@@ -841,9 +841,13 @@ a:active {
}
#panel_footer {
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-footer.txt")) {
+ $font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
+ echo "{$font_panel_footer},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
-
color: <?php
if (file_exists("data/colors/pf-font.txt")) {
$panel_footer_font_color = file_get_contents("data/colors/pf-font.txt");
@@ -853,7 +857,6 @@ a:active {
echo "#666666";
}
?>;
-
<?php
if (file_exists("data/round.txt")) {
echo 'padding: 5px 5px 2px 5px;';
@@ -862,7 +865,6 @@ a:active {
echo 'padding: 5px 5px 5px 5px;';
}
?>
-
background-color: <?php
if (file_exists("data/colors/pf-bg.txt")) {
$panel_footer_background_color = file_get_contents("data/colors/pf-bg.txt");
@@ -872,9 +874,7 @@ a:active {
echo "transparent";
}
?>;
-
margin: 0px;
-
border-color: <?php
if (file_exists("data/colors/border.txt")) {
$panel_footer_border_color = file_get_contents("data/colors/border.txt");
@@ -884,7 +884,6 @@ a:active {
echo "#cccccc";
}
?>;
-
<?php
if (file_exists("data/round.txt")) {
echo 'border-width: 1px 1px 0px 1px;';
@@ -895,7 +894,6 @@ a:active {
echo 'border-style: none solid solid solid;';
}
?>
-
text-align: right;
}
@@ -909,9 +907,7 @@ a:active {
echo "#666666";
}
?>;
-
background: #ffffff;
-
border: <?php
if (file_exists("data/colors/border.txt")) {
$panel_footer_border_color = file_get_contents("data/colors/border.txt");
@@ -921,9 +917,13 @@ a:active {
echo "#999999";
}
?> solid 1px;
-
width: 300px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
}
@@ -931,7 +931,13 @@ a:active {
color: #666666;
background: #ffffff;
width: 100%;
- font-family: verdana,helvetica,sans-serif;
+
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
}
@@ -940,7 +946,6 @@ a:active {
margin: 10px 0px 0px 0px;
}
-
.rbtop {
display: block;
background: transparent;
@@ -1066,6 +1071,12 @@ a:active {
border-width:0 1px;
padding: 1px 5px 5px 5px;
font-weight: bold;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-title.txt")) {
+ $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$font_panel_title},";
+ }
+ ?> arial, helvetica, sans-serif;
color: <?php
if (file_exists("data/colors/pt-font.txt")) {
$panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
@@ -1228,6 +1239,7 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
echo '<a href=panels.php>Panels</a><br>';
echo '<a href=cat.php>Categories</a><br>';
echo '<a href=colors.php>Colors</a><br>';
+ echo '<a href=fonts.php>Fonts</a><br>';
echo '<a href=login.php>Logout</a>';
} elseif (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/bb.txt")) {
diff --git a/login.php b/login.php
index d2cfda3..6d42f7f 100644
--- a/login.php
+++ b/login.php
@@ -25,46 +25,52 @@ if (get_magic_quotes_gpc()) {
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+p {
font-size: 11px;
}
-a
-{
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+a:hover {
color: #336699;
}
a:active {
color: #336699;
}
+
.input {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 125px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
}
</style>
diff --git a/member.php b/member.php
index 0e20e16..0477b98 100644
--- a/member.php
+++ b/member.php
@@ -50,48 +50,52 @@ if (file_get_contents("data/username.txt") != $id) {
<style>
-body
-{
+body {
color: #666666;
margin: 0px 0px 10px 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p, td
-{
+p, td {
font-size: 11px;
}
-a
-{
+a {
font-weight: bold;
text-decoration: none;
}
-a:link
-{
+a:link {
color: #666666;
}
-a:visited
-{
+a:visited {
color: #666666;
}
-a:hover
-{
+a:hover {
color: #336699;
}
a:active {
color: #336699;
}
-#panel_title
-{
- font-family: verdana, helvetica, sans-serif;
+
+#panel_title {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-title.txt")) {
+ $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$font_panel_title},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #666666;
@@ -102,9 +106,14 @@ a:active {
border-width: 1px 1px 0px 1px;
border-style: solid solid none solid;
}
-#panel_body
-{
- font-family: verdana, helvetica, sans-serif;
+
+#panel_body {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-body.txt")) {
+ $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$font_panel_body},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
color: #666666;
padding: 5px 5px 5px 5px;
@@ -114,9 +123,14 @@ a:active {
border-width: 1px 1px 1px 1px;
border-style: solid solid solid solid;
}
-#panel_footer
-{
- font-family: verdana, helvetica, sans-serif;
+
+#panel_footer {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-footer.txt")) {
+ $font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
+ echo "{$font_panel_footer},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
color: #666666;
padding: 5px 5px 5px 5px;
@@ -127,12 +141,18 @@ a:active {
border-style: none solid solid solid;
text-align: right;
}
+
.submit {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 100%;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px
}
</style>
diff --git a/options.php b/options.php
index 85c856c..efa5f91 100644
--- a/options.php
+++ b/options.php
@@ -53,41 +53,52 @@ else {
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+
+p {
font-size: 11px;
}
-a
-{
+
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+
+a:hover {
color: #336699;
}
+
a:active {
color: #336699;
}
+
.input {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 300px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
font-weight: normal;
}
diff --git a/panels.php b/panels.php
index 0a061ce..d9d0235 100644
--- a/panels.php
+++ b/panels.php
@@ -27,8 +27,7 @@ if (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username
exit();
}
-function rmdirr($recurse_dirname)
-{
+function rmdirr($recurse_dirname) {
if (!file_exists($recurse_dirname)) {
return false;
@@ -192,41 +191,52 @@ if (isset($_REQUEST['panel_content']) and !empty($_REQUEST['panel_content'])) {
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+
+p {
font-size: 11px;
}
-a
-{
+
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+
+a:hover {
color: #336699;
}
+
a:active {
color: #336699;
}
+
.input {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 300px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px
}
</style>
diff --git a/passwd.php b/passwd.php
index fe098bb..ccec3e8 100644
--- a/passwd.php
+++ b/passwd.php
@@ -1,44 +1,50 @@
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+p {
font-size: 11px;
}
-a
-{
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+a:hover {
color: #336699;
}
a:active {
color: #336699;
}
+
.input {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 125px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
}
</style>
diff --git a/reg.php b/reg.php
index 2f95fd8..b01d391 100644
--- a/reg.php
+++ b/reg.php
@@ -50,50 +50,67 @@ else {
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+
+p {
font-size: 11px;
}
-a
-{
+
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+
+a:hover {
color: #336699;
}
+
a:active {
color: #336699;
}
+
.input {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 300px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
font-weight: normal;
}
+
.bd {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 98px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
font-weight: normal;
}
@@ -118,8 +135,7 @@ function str_rand($length = 8, $seeds = 'abcdefghijklmnopqrstuvwxyz0123456789')
return $str;
}
-function rmdirr($recurse_dirname)
-{
+function rmdirr($recurse_dirname) {
if (!file_exists($recurse_dirname)) {
return false;
diff --git a/reset.php b/reset.php
index b595b26..562f3ee 100644
--- a/reset.php
+++ b/reset.php
@@ -54,46 +54,52 @@ else {
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+p {
font-size: 11px;
}
-a
-{
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+a:hover {
color: #336699;
}
a:active {
color: #336699;
}
+
.input {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 125px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
}
</style>
diff --git a/settings.php b/settings.php
index a063545..23dcae4 100644
--- a/settings.php
+++ b/settings.php
@@ -896,41 +896,52 @@ if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and (file_get
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+
+p {
font-size: 11px;
}
-a
-{
+
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+
+a:hover {
color: #336699;
}
+
a:active {
color: #336699;
}
+
.input {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 300px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px
}
</style>
tree 79a5e8df575854ffd260212fe3797385ecec2bae
parent 52b4786704c102e06cc7ad3e542321ee732d6545
author Engels Antonio <engels@majcms.org> 1277314189 +0800
committer Engels Antonio <engels@majcms.org> 1277314189 +0800
maj-0.14-20071018-bb.zip
diff --git a/add.php b/add.php
index de835ce..962e0cd 100644
--- a/add.php
+++ b/add.php
@@ -49,50 +49,67 @@ if (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+
+p {
font-size: 11px;
}
-a
-{
+
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+
+a:hover {
color: #336699;
}
+
a:active {
color: #336699;
}
+
.input_title {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 512px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-title.txt")) {
+ $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$font_panel_title},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
font-weight: bold
}
+
.input_body {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 512px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-body.txt")) {
+ $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$font_panel_body},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px
}
</style>
diff --git a/album.php b/album.php
index d3f6131..be28c90 100644
--- a/album.php
+++ b/album.php
@@ -124,41 +124,52 @@ if (isset($_REQUEST['caption']) and !empty($_REQUEST['caption']) and isset($_SES
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+
+p {
font-size: 11px;
}
-a
-{
+
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+
+a:hover {
color: #336699;
}
+
a:active {
color: #336699;
}
+
.input {
color: #666666;
background: #FFFFFF;
border: #999999 solid 1px;
width: 100%;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
}
</style>
diff --git a/cat.php b/cat.php
index e90cd87..ee2bc8a 100644
--- a/cat.php
+++ b/cat.php
@@ -118,49 +118,66 @@ if (empty($_REQUEST['cat_title']) and file_exists("data/categories/{$_REQUEST['c
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+
+p {
font-size: 11px;
}
-a
-{
+
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+
+a:hover {
color: #336699;
}
+
a:active {
color: #336699;
}
+
.input {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 300px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px
}
+
.submit {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 100px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px
}
</style>
diff --git a/colors.php b/colors.php
index 9b24d94..e0910ae 100644
--- a/colors.php
+++ b/colors.php
@@ -402,7 +402,12 @@ body {
margin: 5px 5px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #ffffff;
}
@@ -460,10 +465,14 @@ a:active {
}
#panel_title {
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-title.txt")) {
+ $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$font_panel_title},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
-
color: <?php
if (file_exists("data/colors/pt-font.txt")) {
readfile("data/colors/pt-font.txt");
@@ -474,7 +483,6 @@ a:active {
?>;
padding: 5px 5px 5px 5px;
-
background-color: <?php
if (file_exists("data/colors/pt-bg.txt")) {
readfile("data/colors/pt-bg.txt");
@@ -483,9 +491,7 @@ a:active {
echo "transparent";
}
?>;
-
margin: 0px;
-
border-color: <?php
if (file_exists("data/colors/border.txt")) {
readfile("data/colors/border.txt");
@@ -494,16 +500,19 @@ a:active {
echo "#CCCCCC";
}
?>;
-
border-width: 1px 1px 0px 1px;
border-style: solid solid none solid;
width: 277px;
}
#panel_body {
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-body.txt")) {
+ $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$font_panel_body},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
-
color: <?php
if (file_exists("data/colors/pb-font.txt")) {
readfile("data/colors/pb-font.txt");
@@ -514,7 +523,6 @@ a:active {
?>;
padding: 5px 5px 5px 5px;
-
background-color: <?php
if (file_exists("data/colors/pb-bg.txt")) {
readfile("data/colors/pb-bg.txt");
@@ -523,9 +531,7 @@ a:active {
echo "transparent";
}
?>;
-
margin: 0px;
-
border-color: <?php
if (file_exists("data/colors/border.txt")) {
readfile("data/colors/border.txt");
@@ -534,16 +540,19 @@ a:active {
echo "#CCCCCC";
}
?>;
-
border-width: 1px 1px 1px 1px;
border-style: solid solid solid solid;
width: 277px;
}
#panel_footer {
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-footer.txt")) {
+ $font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
+ echo "{$font_panel_footer},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
-
color: <?php
if (file_exists("data/colors/pf-font.txt")) {
readfile("data/colors/pf-font.txt");
@@ -552,9 +561,7 @@ a:active {
echo "#666666";
}
?>;
-
padding: 5px 5px 5px 5px;
-
background-color: <?php
if (file_exists("data/colors/pf-bg.txt")) {
readfile("data/colors/pf-bg.txt");
@@ -563,9 +570,7 @@ a:active {
echo "transparent";
}
?>;
-
margin: 0px;
-
border-color: <?php
if (file_exists("data/colors/border.txt")) {
readfile("data/colors/border.txt");
@@ -574,7 +579,6 @@ a:active {
echo "#CCCCCC";
}
?>;
-
border-width: 0px 1px 1px 1px;
border-style: none solid solid solid;
width: 277px;
@@ -589,9 +593,7 @@ a:active {
echo "#666666";
}
?>;
-
background: #ffffff;
-
border: <?php
if (file_exists("data/colors/border.txt")) {
readfile("data/colors/border.txt");
@@ -600,10 +602,14 @@ a:active {
echo "#999999";
}
?> solid 1px;
-
width: 277px;
margin: 2px 0px 0px 0px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
padding: 2px 5px 2px 5px;
}
@@ -613,14 +619,23 @@ a:active {
background: #ffffff;
border: #999999 solid 1px;
width: 289px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px
}
#panel_out {
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
-
color: <?php
if (file_exists("data/colors/font.txt")) {
readfile("data/colors/font.txt");
@@ -629,9 +644,7 @@ a:active {
echo "#666666";
}
?>;
-
padding: 5px 5px 5px 5px;
-
background-color: <?php
if (file_exists("data/colors/bg.txt") and !file_exists("images/background.gif") and !file_exists("images/background.jpg") and !file_exists("images/background.png")) {
readfile("data/colors/bg.txt");
@@ -640,43 +653,48 @@ a:active {
echo "transparent";
}
?>;
-
margin: 0px;
border-width: 0px 0px 0px 0px;
border-style: solid solid solid solid;
}
.farbtastic {
- position: relative;
+ position: relative;
}
+
.farbtastic * {
- position: absolute;
- cursor: crosshair;
+ position: absolute;
+ cursor: crosshair;
}
+
.farbtastic, .farbtastic .wheel {
- width: 195px;
- height: 195px;
+ width: 195px;
+ height: 195px;
}
+
.farbtastic .color, .farbtastic .overlay {
- top: 47px;
- left: 47px;
- width: 101px;
- height: 101px;
+ top: 47px;
+ left: 47px;
+ width: 101px;
+ height: 101px;
}
+
.farbtastic .wheel {
- background: url(images/color-wheel.png) no-repeat;
- width: 195px;
- height: 195px;
+ background: url(images/color-wheel.png) no-repeat;
+ width: 195px;
+ height: 195px;
}
+
.farbtastic .overlay {
- background: url(images/color-mask.png) no-repeat;
+ background: url(images/color-mask.png) no-repeat;
}
+
.farbtastic .marker {
- width: 17px;
- height: 17px;
- margin: -8px 0 0 -8px;
- overflow: hidden;
- background: url(images/color-marker.png) no-repeat;
+ width: 17px;
+ height: 17px;
+ margin: -8px 0 0 -8px;
+ overflow: hidden;
+ background: url(images/color-marker.png) no-repeat;
}
</style>
@@ -685,9 +703,9 @@ a:active {
<script type="text/javascript" src="js/farbtastic.js"></script>
<script type="text/javascript">
- $(document).ready(function() {
- $('#colorpicker').farbtastic('#color');
- });
+ $(document).ready(function() {
+ $('#colorpicker').farbtastic('#color');
+ });
</script>
<p> </p>
@@ -703,21 +721,21 @@ a:active {
}
if (file_exists("images/background.gif") and !file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>background-image: url('images/background.gif');
- background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
- background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
- background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
+ background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
+ background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
+ background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
<?php
}
if (!file_exists("images/background.gif") and file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>background-image: url('images/background.jpg');
- background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
- background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
- background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
+ background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
+ background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
+ background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
<?php
}
if (!file_exists("images/background.gif") and !file_exists("images/background.jpg") and file_exists("images/background.png")) { ?>background-image: url('images/background.png');
- background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
- background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
- background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
+ background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
+ background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
+ background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
<?php
}
diff --git a/del.php b/del.php
index cef0b14..01ef973 100644
--- a/del.php
+++ b/del.php
@@ -145,68 +145,62 @@ $img_file = 'data/items/' . $_REQUEST['entry'] . '/img.txt';
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+p {
font-size: 11px;
}
-a
-{
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+a:hover {
color: #336699;
}
a:active {
color: #336699;
}
-.input_title {
- color: #666666;
- background: #ffffff;
- border: #999999 solid 1px;
- width: 525px;
- font-family: verdana,helvetica,sans-serif;
- font-size: 11px;
- font-weight: bold
-}
-.input_body {
- color: #666666;
- background: #ffffff;
- border: #999999 solid 1px;
- width: 525px;
- font-family: verdana,helvetica,sans-serif;
- font-size: 11px
-}
+
.input_submit {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 125px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px
}
-#panel_title
-{
- font-family: verdana, helvetica, sans-serif;
+
+#panel_title {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-title.txt")) {
+ $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$font_panel_title},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #666666;
@@ -217,9 +211,14 @@ a:active {
border-width: 1px 1px 0px 1px;
border-style: solid solid none solid;
}
-#panel_body
-{
- font-family: verdana, helvetica, sans-serif;
+
+#panel_body {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-body.txt")) {
+ $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$font_panel_body},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
color: #666666;
padding: 5px 5px 5px 5px;
@@ -229,9 +228,14 @@ a:active {
border-width: 1px 1px 1px 1px;
border-style: solid solid solid solid;
}
-#panel_footer
-{
- font-family: verdana, helvetica, sans-serif;
+
+#panel_footer {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-footer.txt")) {
+ $font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
+ echo "{$font_panel_footer},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
color: #666666;
padding: 5px 5px 5px 5px;
diff --git a/dig.php b/dig.php
index 175cf8b..654549e 100644
--- a/dig.php
+++ b/dig.php
@@ -26,34 +26,34 @@ if (get_magic_quotes_gpc()) {
<title>Dig!</title>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+p {
font-size: 11px;
}
-a
-{
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+a:hover {
color: #336699;
}
diff --git a/edit.php b/edit.php
index 0d8e845..5525560 100644
--- a/edit.php
+++ b/edit.php
@@ -22,8 +22,7 @@ if (get_magic_quotes_gpc()) {
$login_username = file_get_contents("data/username.txt");
-function rmdirr($recurse_dirname)
-{
+function rmdirr($recurse_dirname) {
if (!file_exists($recurse_dirname)) {
return false;
@@ -79,89 +78,116 @@ if (file_exists("data/items/{$_REQUEST['entry']}/category.txt")) {
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
- background-color: #FFFFFF;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
+ background-color: #ffffff;
}
-p
-{
+p, td {
font-size: 11px;
}
-a
-{
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+a:hover {
color: #336699;
}
a:active {
color: #336699;
}
+
.input_title {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 525px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-title.txt")) {
+ $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$font_panel_title},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
font-weight: bold
}
+
.input_body {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 525px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-body.txt")) {
+ $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$font_panel_body},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px
}
-#panel_title
-{
- font-family: verdana, helvetica, sans-serif;
+
+#panel_title {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-title.txt")) {
+ $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$font_panel_title},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #666666;
padding: 5px 5px 5px 5px;
- background-color: #FFFFFF;
+ background-color: #ffffff;
margin: 0px;
border-color: #CCCCCC;
border-width: 1px 1px 0px 1px;
border-style: solid solid none solid;
}
-#panel_body
-{
- font-family: verdana, helvetica, sans-serif;
+
+#panel_body {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-body.txt")) {
+ $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$font_panel_body},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
color: #666666;
padding: 5px 5px 5px 5px;
- background-color: #FFFFFF;
+ background-color: #ffffff;
margin: 0px;
border-color: #CCCCCC;
border-width: 1px 1px 1px 1px;
border-style: solid solid solid solid;
}
-#panel_footer
-{
- font-family: verdana, helvetica, sans-serif;
+
+#panel_footer {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-footer.txt")) {
+ $font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
+ echo "{$font_panel_footer},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
color: #666666;
padding: 5px 5px 5px 5px;
- background-color: #FFFFFF;
+ background-color: #ffffff;
margin: 0px;
border-color: #CCCCCC;
border-width: 0px 1px 1px 1px;
@@ -258,6 +284,10 @@ if (isset($_REQUEST['comment']) and !empty($_REQUEST['comment'])) { ?>
<tr><td><input class=input_body type=submit value="click here to update this comment"></td></tr>
</form>
+ <form enctype="multipart/form-data" action="index.php?entry=<?php echo $_REQUEST['entry']; ?>&show=comments" method="post">
+ <tr><td><input class=input_body type=submit value="click here to view posted entry"></td></tr>
+ </form>
+
<form enctype="multipart/form-data" action="<?php echo 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']); ?>" method="post">
<tr><td><input class=input_body type=submit value="click here to go to the index page"></td></tr>
</form>
@@ -420,6 +450,10 @@ echo $body_read_content;
<tr><td><input class=input_body type=submit value="click here to update this entry"></td></tr>
</form>
+<form enctype="multipart/form-data" action="index.php?entry=<?php echo $_REQUEST['entry']; ?>" method="post">
+<tr><td><input class=input_body type=submit value="click here to view posted entry"></td></tr>
+</form>
+
<form enctype="multipart/form-data" action="<?php echo 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']); ?>" method="post">
<tr><td><input class=input_body type=submit value="click here to go to the index page"></td></tr>
</form>
diff --git a/fonts.php b/fonts.php
new file mode 100644
index 0000000..e97cf3b
--- /dev/null
+++ b/fonts.php
@@ -0,0 +1,551 @@
+<?php
+
+session_start();
+header("Cache-control: private");
+
+error_reporting(E_ERROR);
+
+if (get_magic_quotes_gpc()) {
+ function stripslashes_array($data) {
+ if (is_array($data)){
+ foreach ($data as $key => $value){
+ $data[$key] = stripslashes_array($value);
+ }
+ return $data;
+ }
+ else{
+ return stripslashes($data);
+ }
+ }
+
+ $_REQUEST = stripslashes_array($_REQUEST);
+}
+
+$login_username = file_get_contents("data/username.txt");
+
+if (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) {
+ exit();
+}
+
+if (!file_exists("data/fonts")) {
+ mkdir("data/fonts");
+}
+
+function rmdirr($recurse_dirname) {
+
+ if (!file_exists($recurse_dirname)) {
+ return false;
+ }
+
+ if (is_file($recurse_dirname)) {
+ return unlink($recurse_dirname);
+ }
+
+ $recurse_dir = dir($recurse_dirname);
+
+ while (false !== $recurse_entry = $recurse_dir->read()) {
+
+ if ($recurse_entry == '.' || $recurse_entry == '..') {
+ continue;
+ }
+
+ rmdirr("$recurse_dirname/$recurse_entry");
+ }
+
+ $recurse_dir->close();
+ return rmdir($recurse_dirname);
+}
+
+if (isset($_REQUEST['reset']) and !empty($_REQUEST['reset']) and ($_REQUEST['reset'] == "go")) {
+ rmdirr("data/fonts");
+}
+
+if (isset($_REQUEST['body']) and !empty($_REQUEST['body']) and (file_get_contents("data/fonts/body.txt") != $_REQUEST['body'])) {
+ $body_write_content = strtolower($_REQUEST['body']);
+ $body_write_content = trim($body_write_content);
+ $body_write_content = str_replace(", ",",",$body_write_content);
+ $body_write_content = str_replace(" ,",",",$body_write_content);
+ $body_write_content = preg_replace("/([!?,.])+/","\\1",$body_write_content);
+ $body_write_content = rtrim($body_write_content,',');
+ $body_write_content = str_replace(",",", ",$body_write_content);
+ $body_write_content = preg_replace('/\s\s+/',' ',$body_write_content);
+ $body_write_content = trim($body_write_content);
+ $fp_body_txt = fopen("data/fonts/body.txt","w");
+ fwrite($fp_body_txt,$body_write_content);
+ fclose($fp_body_txt);
+}
+
+if (!isset($_REQUEST['body']) or empty($_REQUEST['body'])) {
+ if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+ if (file_exists("data/fonts/body.txt")) {
+ unlink("data/fonts/body.txt");
+ }
+ }
+}
+
+if (isset($_REQUEST['input']) and !empty($_REQUEST['input']) and (file_get_contents("data/fonts/input.txt") != $_REQUEST['input'])) {
+ $input_write_content = strtolower($_REQUEST['input']);
+ $input_write_content = trim($input_write_content);
+ $input_write_content = str_replace(", ",",",$input_write_content);
+ $input_write_content = str_replace(" ,",",",$input_write_content);
+ $input_write_content = preg_replace("/([!?,.])+/","\\1",$input_write_content);
+ $input_write_content = rtrim($input_write_content,',');
+ $input_write_content = str_replace(",",", ",$input_write_content);
+ $input_write_content = preg_replace('/\s\s+/',' ',$input_write_content);
+ $input_write_content = trim($input_write_content);
+ $fp_input_txt = fopen("data/fonts/input.txt","w");
+ fwrite($fp_input_txt,$input_write_content);
+ fclose($fp_input_txt);
+}
+
+if (!isset($_REQUEST['input']) or empty($_REQUEST['input'])) {
+ if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+ if (file_exists("data/fonts/input.txt")) {
+ unlink("data/fonts/input.txt");
+ }
+ }
+}
+
+if (isset($_REQUEST['panel_title']) and !empty($_REQUEST['panel_title']) and (file_get_contents("data/fonts/panel-title.txt") != $_REQUEST['panel_title'])) {
+ $panel_title_write_content = strtolower($_REQUEST['panel_title']);
+ $panel_title_write_content = trim($panel_title_write_content);
+ $panel_title_write_content = str_replace(", ",",",$panel_title_write_content);
+ $panel_title_write_content = str_replace(" ,",",",$panel_title_write_content);
+ $panel_title_write_content = preg_replace("/([!?,.])+/","\\1",$panel_title_write_content);
+ $panel_title_write_content = rtrim($panel_title_write_content,',');
+ $panel_title_write_content = str_replace(",",", ",$panel_title_write_content);
+ $panel_title_write_content = preg_replace('/\s\s+/',' ',$panel_title_write_content);
+ $panel_title_write_content = trim($panel_title_write_content);
+ $fp_panel_title_txt = fopen("data/fonts/panel-title.txt","w");
+ fwrite($fp_panel_title_txt,$panel_title_write_content);
+ fclose($fp_panel_title_txt);
+}
+
+if (!isset($_REQUEST['panel_title']) or empty($_REQUEST['panel_title'])) {
+ if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+ if (file_exists("data/fonts/panel-title.txt")) {
+ unlink("data/fonts/panel-title.txt");
+ }
+ }
+}
+
+if (isset($_REQUEST['panel_body']) and !empty($_REQUEST['panel_body']) and (file_get_contents("data/fonts/panel-body.txt") != $_REQUEST['panel_body'])) {
+ $panel_body_write_content = strtolower($_REQUEST['panel_body']);
+ $panel_body_write_content = trim($panel_body_write_content);
+ $panel_body_write_content = str_replace(", ",",",$panel_body_write_content);
+ $panel_body_write_content = str_replace(" ,",",",$panel_body_write_content);
+ $panel_body_write_content = preg_replace("/([!?,.])+/","\\1",$panel_body_write_content);
+ $panel_body_write_content = rtrim($panel_body_write_content,',');
+ $panel_body_write_content = str_replace(",",", ",$panel_body_write_content);
+ $panel_body_write_content = preg_replace('/\s\s+/',' ',$panel_body_write_content);
+ $panel_body_write_content = trim($panel_body_write_content);
+ $fp_panel_body_txt = fopen("data/fonts/panel-body.txt","w");
+ fwrite($fp_panel_body_txt,$panel_body_write_content);
+ fclose($fp_panel_body_txt);
+}
+
+if (!isset($_REQUEST['panel_body']) or empty($_REQUEST['panel_body'])) {
+ if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+ if (file_exists("data/fonts/panel-body.txt")) {
+ unlink("data/fonts/panel-body.txt");
+ }
+ }
+}
+
+if (isset($_REQUEST['panel_footer']) and !empty($_REQUEST['panel_footer']) and (file_get_contents("data/fonts/panel-footer.txt") != $_REQUEST['panel_footer'])) {
+ $panel_footer_write_content = strtolower($_REQUEST['panel_footer']);
+ $panel_footer_write_content = trim($panel_footer_write_content);
+ $panel_footer_write_content = str_replace(", ",",",$panel_footer_write_content);
+ $panel_footer_write_content = str_replace(" ,",",",$panel_footer_write_content);
+ $panel_footer_write_content = preg_replace("/([!?,.])+/","\\1",$panel_footer_write_content);
+ $panel_footer_write_content = rtrim($panel_footer_write_content,',');
+ $panel_footer_write_content = str_replace(",",", ",$panel_footer_write_content);
+ $panel_footer_write_content = preg_replace('/\s\s+/',' ',$panel_footer_write_content);
+ $panel_footer_write_content = trim($panel_footer_write_content);
+ $fp_panel_footer_txt = fopen("data/fonts/panel-footer.txt","w");
+ fwrite($fp_panel_footer_txt,$panel_footer_write_content);
+ fclose($fp_panel_footer_txt);
+}
+
+if (!isset($_REQUEST['panel_footer']) or empty($_REQUEST['panel_footer'])) {
+ if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+ if (file_exists("data/fonts/panel-footer.txt")) {
+ unlink("data/fonts/panel-footer.txt");
+ }
+ }
+}
+
+?>
+
+<style>
+body {
+ color: #666666;
+ margin: 5px 5px;
+ padding: 0px;
+ text-align: left;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
+ background-color: #ffffff;
+}
+
+p, td {
+ font-size: 11px;
+}
+
+a {
+ font-weight: bold;
+ text-decoration: none;
+}
+
+a:link {
+ color: <?php
+ if (file_exists("data/colors/link.txt")) {
+ readfile("data/colors/link.txt");
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+}
+
+a:visited {
+ color: <?php
+ if (file_exists("data/colors/vlink.txt")) {
+ readfile("data/colors/vlink.txt");
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+}
+
+a:hover {
+ color: <?php
+ if (file_exists("data/colors/hover.txt")) {
+ readfile("data/colors/hover.txt");
+ }
+ else {
+ echo "#336699";
+ }
+ ?>;
+}
+
+a:active {
+ color: <?php
+ if (file_exists("data/colors/hover.txt")) {
+ readfile("data/colors/hover.txt");
+ }
+ else {
+ echo "#336699";
+ }
+ ?>;
+}
+
+#panel_title {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-title.txt")) {
+ $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$font_panel_title},";
+ }
+ ?> arial, helvetica, sans-serif;
+ font-size: 12px;
+ font-weight: bold;
+ color: <?php
+ if (file_exists("data/colors/pt-font.txt")) {
+ readfile("data/colors/pt-font.txt");
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+
+ padding: 5px 5px 5px 5px;
+ background-color: <?php
+ if (file_exists("data/colors/pt-bg.txt")) {
+ readfile("data/colors/pt-bg.txt");
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+ margin: 0px;
+ border-color: <?php
+ if (file_exists("data/colors/border.txt")) {
+ readfile("data/colors/border.txt");
+ }
+ else {
+ echo "#CCCCCC";
+ }
+ ?>;
+ border-width: 1px 1px 0px 1px;
+ border-style: solid solid none solid;
+ width: 277px;
+}
+
+#panel_body {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-body.txt")) {
+ $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$font_panel_body},";
+ }
+ ?> arial, helvetica, sans-serif;
+ font-size: 11px;
+ color: <?php
+ if (file_exists("data/colors/pb-font.txt")) {
+ readfile("data/colors/pb-font.txt");
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+
+ padding: 5px 5px 5px 5px;
+ background-color: <?php
+ if (file_exists("data/colors/pb-bg.txt")) {
+ readfile("data/colors/pb-bg.txt");
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+ margin: 0px;
+ border-color: <?php
+ if (file_exists("data/colors/border.txt")) {
+ readfile("data/colors/border.txt");
+ }
+ else {
+ echo "#CCCCCC";
+ }
+ ?>;
+ border-width: 1px 1px 1px 1px;
+ border-style: solid solid solid solid;
+ width: 277px;
+}
+
+#panel_footer {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-footer.txt")) {
+ $font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
+ echo "{$font_panel_footer},";
+ }
+ ?> arial, helvetica, sans-serif;
+ font-size: 11px;
+ color: <?php
+ if (file_exists("data/colors/pf-font.txt")) {
+ readfile("data/colors/pf-font.txt");
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+ padding: 5px 5px 5px 5px;
+ background-color: <?php
+ if (file_exists("data/colors/pf-bg.txt")) {
+ readfile("data/colors/pf-bg.txt");
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+ margin: 0px;
+ border-color: <?php
+ if (file_exists("data/colors/border.txt")) {
+ readfile("data/colors/border.txt");
+ }
+ else {
+ echo "#CCCCCC";
+ }
+ ?>;
+ border-width: 0px 1px 1px 1px;
+ border-style: none solid solid solid;
+ width: 277px;
+}
+
+#panel_input {
+ color: <?php
+ if (file_exists("data/colors/border.txt")) {
+ readfile("data/colors/border.txt");
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+ background: #ffffff;
+ border: <?php
+ if (file_exists("data/colors/border.txt")) {
+ readfile("data/colors/border.txt");
+ }
+ else {
+ echo "#999999";
+ }
+ ?> solid 1px;
+ width: 277px;
+ margin: 2px 0px 0px 0px;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
+ font-size: 11px;
+ padding: 2px 5px 2px 5px;
+}
+
+.input {
+ color: #666666;
+ background: #ffffff;
+ border: #999999 solid 1px;
+ width: 289px;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
+ font-size: 11px
+}
+
+#panel_out {
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
+ font-size: 11px;
+ color: <?php
+ if (file_exists("data/colors/font.txt")) {
+ readfile("data/colors/font.txt");
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+ padding: 5px 5px 5px 5px;
+ background-color: <?php
+ if (file_exists("data/colors/bg.txt") and !file_exists("images/background.gif") and !file_exists("images/background.jpg") and !file_exists("images/background.png")) {
+ readfile("data/colors/bg.txt");
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+ margin: 0px;
+ border-width: 0px 0px 0px 0px;
+ border-style: solid solid solid solid;
+}
+
+</style>
+
+
+<table border=0 cellspacing=10 cellpadding=2><tr><td>
+
+<table border=0 cellspacing=1 cellpadding=10 bgcolor=#cccccc>
+<tr><td<?php
+ if (file_exists("images/background.gif") or file_exists("images/background.jpg") or file_exists("images/background.png")) {
+ echo ' style="';
+ }
+
+ if (file_exists("images/background.gif") and !file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>background-image: url('images/background.gif');
+ background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
+ background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
+ background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
+ <?php
+ }
+ if (!file_exists("images/background.gif") and file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>background-image: url('images/background.jpg');
+ background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
+ background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
+ background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
+ <?php
+ }
+ if (!file_exists("images/background.gif") and !file_exists("images/background.jpg") and file_exists("images/background.png")) { ?>background-image: url('images/background.png');
+ background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
+ background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
+ background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
+ <?php
+ }
+
+ if (file_exists("images/background.gif") or file_exists("images/background.jpg") or file_exists("images/background.png")) {
+ echo '"';
+ }
+
+ echo ' bgcolor="';
+
+ if (file_exists("data/colors/bg.txt")) {
+ $bgcolor = file_get_contents("data/colors/bg.txt");
+ if ($bgcolor == "transparent") {
+ echo "#ffffff";
+ }
+ else {
+ echo $bgcolor;
+ }
+ }
+ else {
+ echo "#ffffff";
+ }
+
+ echo '">';
+
+ ?>
+
+<div id=panel_out><b>Fonts</b> Preview</div>
+<div id=panel_title>Panel Title</div>
+<div id=panel_body><font style="font-size: 10px; color: #999999;">panel body</font><p>Enter your preferred fonts to override the defaults. You may specify more than one font, separated by commas, for each field. The following fonts are relatively web safe:</p><p>Arial<br>Arial Black<br>Comic Sans MS<br>Courier New<br>Georgia<br>Impact<br>Times New Roman<br>Trebuchet MS<br>Verdana<br>Courier<br>Helvetica<br>Times<br>Andale Mono<br>Bitstream Vera Sans<br>Bitstream Vera Sans Mono<br>Bitstream Vera Serif</p><p>While this serves as a convenient preview, fonts are actually applied immediately after submission.</p><p><a href=none.php>Hyperlink #1</a><br><a href="<?php echo $_SERVER['PHP_SELF']; ?>">Hyperlink #2</a><br><a href="<?php echo $_SERVER['PHP_SELF']; ?>">Hyperlink #3</a></p></div>
+<div id=panel_footer><font style="font-size: 10px; color: <?php if (file_exists("data/colors/pf-font.txt")) { $color_pf_font = file_get_contents("data/colors/pf-font.txt"); if ($color_pf_font == "transparent") { echo "#ffffff"; } else { echo $color_pf_font; } } else { echo "#999999"; } ?>;">panel footer | <a href="<?php echo $_SERVER['PHP_SELF']; ?>">permalink</a></font></div>
+<div id=panel_input>text input field</div>
+<div id=panel_input><center>submit button</center></div>
+</td></tr></table>
+
+</td><td>
+
+<form action=fonts.php method=post>
+<input type=hidden name=edit value=on>
+<table border=0 cellspacing=1 cellpadding=2 bgcolor=#cccccc>
+
+<tr><td bgcolor=#ffffff><p>body</p></td><td bgcolor=#ffffff><input type=text class=input name=body autocomplete=off<?php if (file_exists("data/fonts/body.txt")) {
+ echo ' value="';
+ readfile("data/fonts/body.txt");
+ echo '"';
+} ?>></td></tr>
+
+<tr><td bgcolor=#ffffff><p>input</p></td><td bgcolor=#ffffff><input type=text class=input name=input autocomplete=off<?php if (file_exists("data/fonts/input.txt")) {
+ echo ' value="';
+ readfile("data/fonts/input.txt");
+ echo '"';
+} ?>></td></tr>
+
+<tr><td bgcolor=#ffffff><p>panel title</p></td><td bgcolor=#ffffff><input type=text class=input name=panel_title autocomplete=off<?php if (file_exists("data/fonts/panel-title.txt")) {
+ echo ' value="';
+ readfile("data/fonts/panel-title.txt");
+ echo '"';
+} ?>></td></tr>
+
+<tr><td bgcolor=#ffffff><p>panel body</p></td><td bgcolor=#ffffff><input type=text class=input name=panel_body autocomplete=off<?php if (file_exists("data/fonts/panel-body.txt")) {
+ echo ' value="';
+ readfile("data/fonts/panel-body.txt");
+ echo '"';
+} ?>></td></tr>
+
+<tr><td bgcolor=#ffffff><p>panel footer</p></td><td bgcolor=#ffffff><input type=text class=input name=panel_footer autocomplete=off<?php if (file_exists("data/fonts/panel-footer.txt")) {
+ echo ' value="';
+ readfile("data/fonts/panel-footer.txt");
+ echo '"';
+} ?>></td></tr>
+
+<tr><td bgcolor=#ffffff rowspan=3><p></p></td><td bgcolor=#ffffff><input type=submit class=input value="click here to apply fonts"></td></tr>
+</form>
+<form action=fonts.php method=post>
+<input type=hidden name=reset value=go>
+<tr><td bgcolor=#ffffff><input type=submit class=input value="click here to use default fonts"></td></tr>
+</form>
+<form action=index.php method=post>
+<tr><td bgcolor=#ffffff><input type=submit class=input value="click here to go to the index page"></td></tr>
+</form>
+</table>
+
+
+</td></tr></table>
diff --git a/function_unzip.php b/function_unzip.php
index 8ae539a..c2105cb 100644
--- a/function_unzip.php
+++ b/function_unzip.php
@@ -88,4 +88,4 @@
}
-?>
\ No newline at end of file
+?>
diff --git a/index.php b/index.php
index 7d7fcfb..9ad4a63 100644
--- a/index.php
+++ b/index.php
@@ -637,12 +637,15 @@ body {
echo "#666666";
}
?>;
-
margin: 0px 0px 10px 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
-
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: <?php
if (file_exists("data/colors/bg.txt")) {
$background_color = file_get_contents("data/colors/bg.txt");
@@ -657,27 +660,26 @@ body {
echo "#ffffff";
}
?>;
-
<?php
if (file_exists("images/background.gif") and !file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>
- background-image: url('images/background.gif');
- background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
- background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
- background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
+ background-image: url('images/background.gif');
+ background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
+ background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
+ background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
<?php
}
if (!file_exists("images/background.gif") and file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>
- background-image: url('images/background.jpg');
- background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
- background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
- background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
+ background-image: url('images/background.jpg');
+ background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
+ background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
+ background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
<?php
}
if (!file_exists("images/background.gif") and !file_exists("images/background.jpg") and file_exists("images/background.png")) { ?>
- background-image: url('images/background.png');
- background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
- background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
- background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
+ background-image: url('images/background.png');
+ background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
+ background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
+ background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
<?php
}
?>
@@ -741,10 +743,14 @@ a:active {
}
#panel_title {
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-title.txt")) {
+ $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$font_panel_title},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
-
color: <?php
if (file_exists("data/colors/pt-font.txt")) {
$panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
@@ -754,9 +760,7 @@ a:active {
echo "#666666";
}
?>;
-
padding: 5px 5px 5px 5px;
-
background-color: <?php
if (file_exists("data/colors/pt-bg.txt")) {
$panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
@@ -766,9 +770,7 @@ a:active {
echo "transparent";
}
?>;
-
margin: 10px 0px 0px 0px;
-
border-color: <?php
if (file_exists("data/colors/border.txt")) {
$panel_title_border_color = file_get_contents("data/colors/border.txt");
@@ -778,15 +780,18 @@ a:active {
echo "#cccccc";
}
?>;
-
border-width: 1px 1px 0px 1px;
border-style: solid solid none solid;
}
#panel_body {
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-body.txt")) {
+ $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$font_panel_body},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
-
color: <?php
if (file_exists("data/colors/pb-font.txt")) {
$panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
@@ -796,7 +801,6 @@ a:active {
echo "#666666";
}
?>;
-
<?php
if (file_exists("data/round.txt")) {
echo 'padding: 5px 5px 2px 5px;';
@@ -805,7 +809,6 @@ a:active {
echo 'padding: 5px 5px 5px 5px;';
}
?>
-
background-color: <?php
if (file_exists("data/colors/pb-bg.txt")) {
$panel_body_background_color = file_get_contents("data/colors/pb-bg.txt");
@@ -815,9 +818,7 @@ a:active {
echo "transparent";
}
?>;
-
margin: 0px;
-
border-color: <?php
if (file_exists("data/colors/border.txt")) {
$panel_body_border_color = file_get_contents("data/colors/border.txt");
@@ -827,7 +828,6 @@ a:active {
echo "#cccccc";
}
?>;
-
<?php
if (file_exists("data/round.txt")) {
echo 'border-width: 1px 1px 0px 1px;';
@@ -841,9 +841,13 @@ a:active {
}
#panel_footer {
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-footer.txt")) {
+ $font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
+ echo "{$font_panel_footer},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
-
color: <?php
if (file_exists("data/colors/pf-font.txt")) {
$panel_footer_font_color = file_get_contents("data/colors/pf-font.txt");
@@ -853,7 +857,6 @@ a:active {
echo "#666666";
}
?>;
-
<?php
if (file_exists("data/round.txt")) {
echo 'padding: 5px 5px 2px 5px;';
@@ -862,7 +865,6 @@ a:active {
echo 'padding: 5px 5px 5px 5px;';
}
?>
-
background-color: <?php
if (file_exists("data/colors/pf-bg.txt")) {
$panel_footer_background_color = file_get_contents("data/colors/pf-bg.txt");
@@ -872,9 +874,7 @@ a:active {
echo "transparent";
}
?>;
-
margin: 0px;
-
border-color: <?php
if (file_exists("data/colors/border.txt")) {
$panel_footer_border_color = file_get_contents("data/colors/border.txt");
@@ -884,7 +884,6 @@ a:active {
echo "#cccccc";
}
?>;
-
<?php
if (file_exists("data/round.txt")) {
echo 'border-width: 1px 1px 0px 1px;';
@@ -895,7 +894,6 @@ a:active {
echo 'border-style: none solid solid solid;';
}
?>
-
text-align: right;
}
@@ -909,9 +907,7 @@ a:active {
echo "#666666";
}
?>;
-
background: #ffffff;
-
border: <?php
if (file_exists("data/colors/border.txt")) {
$panel_footer_border_color = file_get_contents("data/colors/border.txt");
@@ -921,9 +917,13 @@ a:active {
echo "#999999";
}
?> solid 1px;
-
width: 300px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
}
@@ -931,7 +931,13 @@ a:active {
color: #666666;
background: #ffffff;
width: 100%;
- font-family: verdana,helvetica,sans-serif;
+
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
}
@@ -940,7 +946,6 @@ a:active {
margin: 10px 0px 0px 0px;
}
-
.rbtop {
display: block;
background: transparent;
@@ -1066,6 +1071,12 @@ a:active {
border-width:0 1px;
padding: 1px 5px 5px 5px;
font-weight: bold;
+ font-family: <?php
+ if (file_exists("data/fonts/panel-title.txt")) {
+ $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$font_panel_title},";
+ }
+ ?> arial, helvetica, sans-serif;
color: <?php
if (file_exists("data/colors/pt-font.txt")) {
$panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
@@ -1228,6 +1239,7 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
echo '<a href=panels.php>Panels</a><br>';
echo '<a href=cat.php>Categories</a><br>';
echo '<a href=colors.php>Colors</a><br>';
+ echo '<a href=fonts.php>Fonts</a><br>';
echo '<a href=login.php>Logout</a>';
} elseif (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/bb.txt")) {
diff --git a/login.php b/login.php
index d2cfda3..6d42f7f 100644
--- a/login.php
+++ b/login.php
@@ -25,46 +25,52 @@ if (get_magic_quotes_gpc()) {
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+p {
font-size: 11px;
}
-a
-{
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+a:hover {
color: #336699;
}
a:active {
color: #336699;
}
+
.input {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 125px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
}
</style>
diff --git a/member.php b/member.php
index 0e20e16..0477b98 100644
--- a/member.php
+++ b/member.php
@@ -50,48 +50,52 @@ if (file_get_contents("data/username.txt") != $id) {
<style>
-body
-{
+body {
color: #666666;
margin: 0px 0px 10px 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p, td
-{
+p, td {
font-size: 11px;
}
-a
-{
+a {
font-weight: bold;
text-decoration: none;
}
-a:link
-{
+a:link {
color: #666666;
}
-a:visited
-{
+a:visited {
color: #666666;
}
-a:hover
-{
+a:hover {
color: #336699;
}
a:active {
color: #336699;
}
-#panel_title
-{
- font-family: verdana, helvetica, sans-serif;
+
+#panel_title {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-title.txt")) {
+ $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
+ echo "{$font_panel_title},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #666666;
@@ -102,9 +106,14 @@ a:active {
border-width: 1px 1px 0px 1px;
border-style: solid solid none solid;
}
-#panel_body
-{
- font-family: verdana, helvetica, sans-serif;
+
+#panel_body {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-body.txt")) {
+ $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
+ echo "{$font_panel_body},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
color: #666666;
padding: 5px 5px 5px 5px;
@@ -114,9 +123,14 @@ a:active {
border-width: 1px 1px 1px 1px;
border-style: solid solid solid solid;
}
-#panel_footer
-{
- font-family: verdana, helvetica, sans-serif;
+
+#panel_footer {
+ font-family: <?php
+ if (file_exists("data/fonts/panel-footer.txt")) {
+ $font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
+ echo "{$font_panel_footer},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
color: #666666;
padding: 5px 5px 5px 5px;
@@ -127,12 +141,18 @@ a:active {
border-style: none solid solid solid;
text-align: right;
}
+
.submit {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 100%;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px
}
</style>
diff --git a/options.php b/options.php
index 85c856c..efa5f91 100644
--- a/options.php
+++ b/options.php
@@ -53,41 +53,52 @@ else {
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+
+p {
font-size: 11px;
}
-a
-{
+
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+
+a:hover {
color: #336699;
}
+
a:active {
color: #336699;
}
+
.input {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 300px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
font-weight: normal;
}
diff --git a/panels.php b/panels.php
index 0a061ce..d9d0235 100644
--- a/panels.php
+++ b/panels.php
@@ -27,8 +27,7 @@ if (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username
exit();
}
-function rmdirr($recurse_dirname)
-{
+function rmdirr($recurse_dirname) {
if (!file_exists($recurse_dirname)) {
return false;
@@ -192,41 +191,52 @@ if (isset($_REQUEST['panel_content']) and !empty($_REQUEST['panel_content'])) {
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+
+p {
font-size: 11px;
}
-a
-{
+
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+
+a:hover {
color: #336699;
}
+
a:active {
color: #336699;
}
+
.input {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 300px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px
}
</style>
diff --git a/passwd.php b/passwd.php
index fe098bb..ccec3e8 100644
--- a/passwd.php
+++ b/passwd.php
@@ -1,44 +1,50 @@
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+p {
font-size: 11px;
}
-a
-{
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+a:hover {
color: #336699;
}
a:active {
color: #336699;
}
+
.input {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 125px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
}
</style>
diff --git a/reg.php b/reg.php
index 2f95fd8..b01d391 100644
--- a/reg.php
+++ b/reg.php
@@ -50,50 +50,67 @@ else {
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+
+p {
font-size: 11px;
}
-a
-{
+
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+
+a:hover {
color: #336699;
}
+
a:active {
color: #336699;
}
+
.input {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 300px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
font-weight: normal;
}
+
.bd {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 98px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
font-weight: normal;
}
@@ -118,8 +135,7 @@ function str_rand($length = 8, $seeds = 'abcdefghijklmnopqrstuvwxyz0123456789')
return $str;
}
-function rmdirr($recurse_dirname)
-{
+function rmdirr($recurse_dirname) {
if (!file_exists($recurse_dirname)) {
return false;
diff --git a/reset.php b/reset.php
index b595b26..562f3ee 100644
--- a/reset.php
+++ b/reset.php
@@ -54,46 +54,52 @@ else {
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+p {
font-size: 11px;
}
-a
-{
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+a:hover {
color: #336699;
}
a:active {
color: #336699;
}
+
.input {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 125px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px;
}
</style>
diff --git a/settings.php b/settings.php
index a063545..23dcae4 100644
--- a/settings.php
+++ b/settings.php
@@ -896,41 +896,52 @@ if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and (file_get
?>
<style>
-body
-{
+body {
color: #666666;
margin: 10px;
padding: 0px;
text-align: left;
- font-family: verdana, helvetica, sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/body.txt")) {
+ $font_body = file_get_contents("data/fonts/body.txt");
+ echo "{$font_body},";
+ }
+ ?> arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
-p
-{
+
+p {
font-size: 11px;
}
-a
-{
+
+a {
font-weight: bold;
text-decoration: none;
}
-a:link, a:visited
-{
+
+a:link, a:visited {
color: #666666;
}
-a:hover
-{
+
+a:hover {
color: #336699;
}
+
a:active {
color: #336699;
}
+
.input {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
width: 300px;
- font-family: verdana,helvetica,sans-serif;
+ font-family: <?php
+ if (file_exists("data/fonts/input.txt")) {
+ $font_input = file_get_contents("data/fonts/input.txt");
+ echo "{$font_input},";
+ }
+ ?> arial, helvetica, sans-serif;
font-size: 11px
}
</style>