This commit has been accessed 571 times via Git panel.
commit 55f358ed1346ea52e5f042ace6de7d7f34495275
tree c5323941a6079782113d83bf396218fda2607276
parent 01d09d60efa13575504c05b86255300ab5f15491
author Engels Antonio <engels@majcms.org> 1277314206 +0800
committer Engels Antonio <engels@majcms.org> 1277314206 +0800
maj-1.0-20081228-bb.zip
diff --git a/colors.php b/colors.php
index 207cd11..51b48ca 100644
--- a/colors.php
+++ b/colors.php
@@ -1002,6 +1002,7 @@ if ($dh_color_scheme = opendir("data/schemes/colors")) {
}
sort($color_schemes);
+reset($color_schemes);
if (count($color_schemes) > 0) {
echo "<form action=colors.php method=post>";
diff --git a/index.php b/index.php
index c9c33d6..26c48d1 100644
--- a/index.php
+++ b/index.php
@@ -1443,7 +1443,7 @@ if (file_exists("data/header.txt")) {
}
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$wtable\">";
-echo "<tr><td width=\"$wside\" height=\"10\"></td><td width=\"$wspace\" height=\"10\"></td><td width=\"$wmain\" height=\"10\"></td><td width=\"$wspace\" height=\"10\"></td><td width=\"$wside\" height=\"10\"></td></tr>";
+echo "<tr><td width=\"$wside\" height=\"$wspace\"></td><td width=\"$wspace\" height=\"$wspace\"><div style=\"width: {$wspace}px;\"></div></td><td width=\"$wmain\" height=\"$wspace\"></td><td width=\"$wspace\" height=\"$wspace\"><div style=\"width: {$wspace}px;\"></div></td><td width=\"$wside\" height=\"$wspace\"></td></tr>";
echo "<tr><td width=\"$wside\" valign=\"top\">";
if (file_exists("data/round.txt")) {
@@ -1742,25 +1742,151 @@ if (file_exists("data/panels")) {
if (!file_exists("data/panels/$left_panel/free.txt")) {
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ $left_panel_border = file_get_contents("data/panels/$left_panel/border.txt");
+ }
+ else {
+ if (isset($left_panel_border)) {
+ unset($left_panel_border);
+ }
+ }
+
+ if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ $left_panel_bgcolor_t = file_get_contents("data/panels/$left_panel/bgcolor-t.txt");
+ }
+ else {
+ if (isset($left_panel_bgcolor_t)) {
+ unset($left_panel_bgcolor_t);
+ }
+ }
+
+ if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
+ $left_panel_bgcolor_c = file_get_contents("data/panels/$left_panel/bgcolor-c.txt");
+ }
+ else {
+ if (isset($left_panel_bgcolor_c)) {
+ unset($left_panel_bgcolor_c);
+ }
+ }
+
+ if (file_exists("data/panels/$left_panel/text-t.txt")) {
+ $left_panel_text_t = file_get_contents("data/panels/$left_panel/text-t.txt");
+ }
+ else {
+ if (isset($left_panel_text_t)) {
+ unset($left_panel_text_t);
+ }
+ }
+
+ if (file_exists("data/panels/$left_panel/text-c.txt")) {
+ $left_panel_text_c = file_get_contents("data/panels/$left_panel/text-c.txt");
+ }
+ else {
+ if (isset($left_panel_text_c)) {
+ unset($left_panel_text_c);
+ }
+ }
+
if (file_exists("data/round.txt")) {
- echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
+
+ echo '<b class="rbtop"><b class="rb1t" style="';
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "background-color: $left_panel_border;";
+ }
+
+ echo '"></b><b class="rb2t" style="';
+
+ if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ echo "background-color: $left_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "border-color: $left_panel_border;";
+ }
+
+ echo '"></b><b class="rb3t" style="';
+
+ if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ echo "background-color: $left_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "border-color: $left_panel_border;";
+ }
+
+ echo '"></b><b class="rb4t" style="';
+
+ if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ echo "background-color: $left_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "border-color: $left_panel_border;";
+ }
+
+ echo '"></b></b><div class="xtitle" style="';
+
+ if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ echo "background-color: $left_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$left_panel/text-t.txt")) {
+ echo "color: $left_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "border-color: $left_panel_border;";
+ }
+
+ echo '">';
}
else {
- echo '<div id="panel_title">';
+ echo '<div id="panel_title" style="';
+
+ if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ echo "background-color: $left_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$left_panel/text-t.txt")) {
+ echo "color: $left_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "border-color: $left_panel_border;";
+ }
+
+ echo '">';
}
readfile("data/panels/$left_panel/title.txt");
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo "<a href=panels.php#{$left_panel}>";
- echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
+ echo "<a href=\"panels.php#{$left_panel}\">";
+ echo '<img src="images/widget.edit.png" border="0" width="11" height="11" align="right"></a>';
}
if (file_exists("data/panels/$left_panel/private.txt")) {
- echo '<img src=images/widget.private.png border=0 width=11 height=11 align=right>';
+ echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
+ }
+
+ echo '</div>';
+
+ echo '<div id="panel_body" style="';
+
+ if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
+ echo "background-color: $left_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$left_panel/text-c.txt")) {
+ echo "color: $left_panel_text_c;";
}
- echo '</div><div id=panel_body>';
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "border-color: $left_panel_border;";
+ }
+
+ echo '">';
}
if (file_exists("data/panels/$left_panel/free.txt")) {
@@ -1772,13 +1898,50 @@ if (file_exists("data/panels")) {
echo '</div>';
if (file_exists("data/round.txt") and !file_exists("data/panels/$left_panel/free.txt")) {
- echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+
+ echo '<b class="rbbottom"><b class="rb4b" style="';
+
+ if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
+ echo "background-color: $left_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "border-color: $left_panel_border;";
+ }
+
+ echo '"></b><b class="rb3b" style="';
+
+ if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
+ echo "background-color: $left_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "border-color: $left_panel_border;";
+ }
+
+ echo '"></b><b class="rb2b" style="';
+
+ if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
+ echo "background-color: $left_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "border-color: $left_panel_border;";
+ }
+
+ echo '"></b><b class="rb1b" style="';
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "background-color: $left_panel_border;";
+ }
+
+ echo '"></b></b>';
}
}
}
}
-echo "</td><td width=\"$wspace\"></td>";
+echo "</td><td width=\"$wspace\"><div style=\"width: {$wspace}px;\"></div></td>";
// main
@@ -1790,21 +1953,151 @@ if ($count_top_panels > 0) {
if (!file_exists("data/panels/$top_panel/free.txt")) {
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ $top_panel_border = file_get_contents("data/panels/$top_panel/border.txt");
+ }
+ else {
+ if (isset($top_panel_border)) {
+ unset($top_panel_border);
+ }
+ }
+
+ if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ $top_panel_bgcolor_t = file_get_contents("data/panels/$top_panel/bgcolor-t.txt");
+ }
+ else {
+ if (isset($top_panel_bgcolor_t)) {
+ unset($top_panel_bgcolor_t);
+ }
+ }
+
+ if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
+ $top_panel_bgcolor_c = file_get_contents("data/panels/$top_panel/bgcolor-c.txt");
+ }
+ else {
+ if (isset($top_panel_bgcolor_c)) {
+ unset($top_panel_bgcolor_c);
+ }
+ }
+
+ if (file_exists("data/panels/$top_panel/text-t.txt")) {
+ $top_panel_text_t = file_get_contents("data/panels/$top_panel/text-t.txt");
+ }
+ else {
+ if (isset($top_panel_text_t)) {
+ unset($top_panel_text_t);
+ }
+ }
+
+ if (file_exists("data/panels/$top_panel/text-c.txt")) {
+ $top_panel_text_c = file_get_contents("data/panels/$top_panel/text-c.txt");
+ }
+ else {
+ if (isset($top_panel_text_c)) {
+ unset($top_panel_text_c);
+ }
+ }
+
if (file_exists("data/round.txt")) {
- echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
+
+ echo '<b class="rbtop"><b class="rb1t" style="';
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "background-color: $top_panel_border;";
+ }
+
+ echo '"></b><b class="rb2t" style="';
+
+ if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ echo "background-color: $top_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "border-color: $top_panel_border;";
+ }
+
+ echo '"></b><b class="rb3t" style="';
+
+ if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ echo "background-color: $top_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "border-color: $top_panel_border;";
+ }
+
+ echo '"></b><b class="rb4t" style="';
+
+ if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ echo "background-color: $top_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "border-color: $top_panel_border;";
+ }
+
+ echo '"></b></b><div class="xtitle" style="';
+
+ if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ echo "background-color: $top_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$top_panel/text-t.txt")) {
+ echo "color: $top_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "border-color: $top_panel_border;";
+ }
+
+ echo '">';
}
else {
- echo '<div id="panel_title">';
+ echo '<div id="panel_title" style="';
+
+ if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ echo "background-color: $top_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$top_panel/text-t.txt")) {
+ echo "color: $top_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "border-color: $top_panel_border;";
+ }
+
+ echo '">';
}
readfile("data/panels/$top_panel/title.txt");
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo "<a href=panels.php#{$top_panel}>";
- echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
+ echo "<a href=\"panels.php#{$top_panel}\">";
+ echo '<img src="images/widget.edit.png" border="0" width="11" height="11" align="right"></a>';
}
- echo '</div><div id=panel_body>';
+ if (file_exists("data/panels/$top_panel/private.txt")) {
+ echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
+ }
+
+ echo '</div>';
+
+ echo '<div id="panel_body" style="';
+
+ if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
+ echo "background-color: $top_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$top_panel/text-c.txt")) {
+ echo "color: $top_panel_text_c;";
+ }
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "border-color: $top_panel_border;";
+ }
+
+ echo '">';
}
if (file_exists("data/panels/$top_panel/free.txt")) {
@@ -1816,7 +2109,44 @@ if ($count_top_panels > 0) {
echo '</div>';
if (file_exists("data/round.txt") and !file_exists("data/panels/$top_panel/free.txt")) {
- echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+
+ echo '<b class="rbbottom"><b class="rb4b" style="';
+
+ if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
+ echo "background-color: $top_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "border-color: $top_panel_border;";
+ }
+
+ echo '"></b><b class="rb3b" style="';
+
+ if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
+ echo "background-color: $top_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "border-color: $top_panel_border;";
+ }
+
+ echo '"></b><b class="rb2b" style="';
+
+ if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
+ echo "background-color: $top_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "border-color: $top_panel_border;";
+ }
+
+ echo '"></b><b class="rb1b" style="';
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "background-color: $top_panel_border;";
+ }
+
+ echo '"></b></b>';
}
}
}
@@ -2184,21 +2514,151 @@ if ($count_center_panels > 0) {
if (!file_exists("data/panels/$center_panel/free.txt")) {
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ $center_panel_border = file_get_contents("data/panels/$center_panel/border.txt");
+ }
+ else {
+ if (isset($center_panel_border)) {
+ unset($center_panel_border);
+ }
+ }
+
+ if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ $center_panel_bgcolor_t = file_get_contents("data/panels/$center_panel/bgcolor-t.txt");
+ }
+ else {
+ if (isset($center_panel_bgcolor_t)) {
+ unset($center_panel_bgcolor_t);
+ }
+ }
+
+ if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
+ $center_panel_bgcolor_c = file_get_contents("data/panels/$center_panel/bgcolor-c.txt");
+ }
+ else {
+ if (isset($center_panel_bgcolor_c)) {
+ unset($center_panel_bgcolor_c);
+ }
+ }
+
+ if (file_exists("data/panels/$center_panel/text-t.txt")) {
+ $center_panel_text_t = file_get_contents("data/panels/$center_panel/text-t.txt");
+ }
+ else {
+ if (isset($center_panel_text_t)) {
+ unset($center_panel_text_t);
+ }
+ }
+
+ if (file_exists("data/panels/$center_panel/text-c.txt")) {
+ $center_panel_text_c = file_get_contents("data/panels/$center_panel/text-c.txt");
+ }
+ else {
+ if (isset($center_panel_text_c)) {
+ unset($center_panel_text_c);
+ }
+ }
+
if (file_exists("data/round.txt")) {
- echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
+
+ echo '<b class="rbcenter"><b class="rb1t" style="';
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "background-color: $center_panel_border;";
+ }
+
+ echo '"></b><b class="rb2t" style="';
+
+ if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ echo "background-color: $center_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "border-color: $center_panel_border;";
+ }
+
+ echo '"></b><b class="rb3t" style="';
+
+ if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ echo "background-color: $center_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "border-color: $center_panel_border;";
+ }
+
+ echo '"></b><b class="rb4t" style="';
+
+ if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ echo "background-color: $center_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "border-color: $center_panel_border;";
+ }
+
+ echo '"></b></b><div class="xtitle" style="';
+
+ if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ echo "background-color: $center_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$center_panel/text-t.txt")) {
+ echo "color: $center_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "border-color: $center_panel_border;";
+ }
+
+ echo '">';
}
else {
- echo '<div id="panel_title">';
+ echo '<div id="panel_title" style="';
+
+ if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ echo "background-color: $center_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$center_panel/text-t.txt")) {
+ echo "color: $center_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "border-color: $center_panel_border;";
+ }
+
+ echo '">';
}
readfile("data/panels/$center_panel/title.txt");
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo "<a href=panels.php#{$center_panel}>";
- echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
+ echo "<a href=\"panels.php#{$center_panel}\">";
+ echo '<img src="images/widget.edit.png" border="0" width="11" height="11" align="right"></a>';
+ }
+
+ if (file_exists("data/panels/$center_panel/private.txt")) {
+ echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
}
- echo '</div><div id=panel_body>';
+ echo '</div>';
+
+ echo '<div id="panel_body" style="';
+
+ if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
+ echo "background-color: $center_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$center_panel/text-c.txt")) {
+ echo "color: $center_panel_text_c;";
+ }
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "border-color: $center_panel_border;";
+ }
+
+ echo '">';
}
if (file_exists("data/panels/$center_panel/free.txt")) {
@@ -2210,7 +2670,44 @@ if ($count_center_panels > 0) {
echo '</div>';
if (file_exists("data/round.txt") and !file_exists("data/panels/$center_panel/free.txt")) {
- echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+
+ echo '<b class="rbbottom"><b class="rb4b" style="';
+
+ if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
+ echo "background-color: $center_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "border-color: $center_panel_border;";
+ }
+
+ echo '"></b><b class="rb3b" style="';
+
+ if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
+ echo "background-color: $center_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "border-color: $center_panel_border;";
+ }
+
+ echo '"></b><b class="rb2b" style="';
+
+ if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
+ echo "background-color: $center_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "border-color: $center_panel_border;";
+ }
+
+ echo '"></b><b class="rb1b" style="';
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "background-color: $center_panel_border;";
+ }
+
+ echo '"></b></b>';
}
}
}
@@ -2899,34 +3396,201 @@ foreach ($disp as $d) {
foreach ($entry_panels as $entry_panel) {
if (!file_exists("data/panels/$entry_panel/free.txt")) {
-
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ $entry_panel_border = file_get_contents("data/panels/$entry_panel/border.txt");
+ }
+ else {
+ if (isset($entry_panel_border)) {
+ unset($entry_panel_border);
+ }
+ }
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ $entry_panel_bgcolor_t = file_get_contents("data/panels/$entry_panel/bgcolor-t.txt");
+ }
+ else {
+ if (isset($entry_panel_bgcolor_t)) {
+ unset($entry_panel_bgcolor_t);
+ }
+ }
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-c.txt")) {
+ $entry_panel_bgcolor_c = file_get_contents("data/panels/$entry_panel/bgcolor-c.txt");
+ }
+ else {
+ if (isset($entry_panel_bgcolor_c)) {
+ unset($entry_panel_bgcolor_c);
+ }
+ }
+
+ if (file_exists("data/panels/$entry_panel/text-t.txt")) {
+ $entry_panel_text_t = file_get_contents("data/panels/$entry_panel/text-t.txt");
+ }
+ else {
+ if (isset($entry_panel_text_t)) {
+ unset($entry_panel_text_t);
+ }
+ }
+
+ if (file_exists("data/panels/$entry_panel/text-c.txt")) {
+ $entry_panel_text_c = file_get_contents("data/panels/$entry_panel/text-c.txt");
+ }
+ else {
+ if (isset($entry_panel_text_c)) {
+ unset($entry_panel_text_c);
+ }
+ }
+
if (file_exists("data/round.txt")) {
- echo "<b class=\"rbper_entry\"><b class=\"rb1t\"></b><b class=\"rb2t\"></b><b class=\"rb3t\"></b><b class=\"rb4t\"></b></b><div class=\"xtitle\">";
+
+ echo '<b class="rbtop"><b class="rb1t" style="';
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "background-color: $entry_panel_border;";
+ }
+
+ echo '"></b><b class="rb2t" style="';
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ echo "background-color: $entry_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "border-color: $entry_panel_border;";
+ }
+
+ echo '"></b><b class="rb3t" style="';
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ echo "background-color: $entry_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "border-color: $entry_panel_border;";
+ }
+
+ echo '"></b><b class="rb4t" style="';
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ echo "background-color: $entry_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "border-color: $entry_panel_border;";
+ }
+
+ echo '"></b></b><div class="xtitle" style="';
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ echo "background-color: $entry_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/text-t.txt")) {
+ echo "color: $entry_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "border-color: $entry_panel_border;";
+ }
+
+ echo '">';
}
else {
- echo "<div id=\"panel_title\">";
+ echo '<div id="panel_title" style="';
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ echo "background-color: $entry_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/text-t.txt")) {
+ echo "color: $entry_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "border-color: $entry_panel_border;";
+ }
+
+ echo '">';
}
-
+
readfile("data/panels/$entry_panel/title.txt");
-
+
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo "<a href=\"panels.php#$entry_panel\">";
- echo "<img src=\"images/widget.edit.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\"></a>";
+ echo "<a href=\"panels.php#{$entry_panel}\">";
+ echo '<img src="images/widget.edit.png" border="0" width="11" height="11" align="right"></a>';
}
-
- echo "</div><div id=panel_body>";
+
+ if (file_exists("data/panels/$entry_panel/private.txt")) {
+ echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
+ }
+
+ echo '</div>';
+
+ echo '<div id="panel_body" style="';
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-c.txt")) {
+ echo "background-color: $entry_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/text-c.txt")) {
+ echo "color: $entry_panel_text_c;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "border-color: $entry_panel_border;";
+ }
+
+ echo '">';
}
-
+
if (file_exists("data/panels/$entry_panel/free.txt")) {
- echo "<div id=\"panel_free\">";
+ echo '<div id=panel_free>';
}
-
+
include("data/panels/$entry_panel/panel.php");
- echo "</div>";
-
+ echo '</div>';
+
if (file_exists("data/round.txt") and !file_exists("data/panels/$entry_panel/free.txt")) {
- echo "<b class=\"rbbottom\"><b class=\"rb4b\"></b><b class=\"rb3b\"></b><b class=\"rb2b\"></b><b class=\"rb1b\"></b></b>";
+
+ echo '<b class="rbbottom"><b class="rb4b" style="';
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-c.txt")) {
+ echo "background-color: $entry_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "border-color: $entry_panel_border;";
+ }
+
+ echo '"></b><b class="rb3b" style="';
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-c.txt")) {
+ echo "background-color: $entry_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "border-color: $entry_panel_border;";
+ }
+
+ echo '"></b><b class="rb2b" style="';
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-c.txt")) {
+ echo "background-color: $entry_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "border-color: $entry_panel_border;";
+ }
+
+ echo '"></b><b class="rb1b" style="';
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "background-color: $entry_panel_border;";
+ }
+
+ echo '"></b></b>';
}
}
}
@@ -4092,7 +4756,7 @@ if ($end < sizeof($items)) {
// right side
-echo "</tr></table></td><td width=\"$wspace\"></td><td width=\"$wside\" valign=\"top\">";
+echo "</tr></table></td><td width=\"$wspace\"><div style=\"width: {$wspace}px;\"></div></td><td width=\"$wside\" valign=\"top\">";
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
if ($dh_pending_comment_flags = opendir("data/comments/pending")) {
@@ -4728,21 +5392,151 @@ if ($count_right_panels > 0) {
if (!file_exists("data/panels/$right_panel/free.txt")) {
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ $right_panel_border = file_get_contents("data/panels/$right_panel/border.txt");
+ }
+ else {
+ if (isset($right_panel_border)) {
+ unset($right_panel_border);
+ }
+ }
+
+ if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ $right_panel_bgcolor_t = file_get_contents("data/panels/$right_panel/bgcolor-t.txt");
+ }
+ else {
+ if (isset($right_panel_bgcolor_t)) {
+ unset($right_panel_bgcolor_t);
+ }
+ }
+
+ if (file_exists("data/panels/$right_panel/bgcolor-c.txt")) {
+ $right_panel_bgcolor_c = file_get_contents("data/panels/$right_panel/bgcolor-c.txt");
+ }
+ else {
+ if (isset($right_panel_bgcolor_c)) {
+ unset($right_panel_bgcolor_c);
+ }
+ }
+
+ if (file_exists("data/panels/$right_panel/text-t.txt")) {
+ $right_panel_text_t = file_get_contents("data/panels/$right_panel/text-t.txt");
+ }
+ else {
+ if (isset($right_panel_text_t)) {
+ unset($right_panel_text_t);
+ }
+ }
+
+ if (file_exists("data/panels/$right_panel/text-c.txt")) {
+ $right_panel_text_c = file_get_contents("data/panels/$right_panel/text-c.txt");
+ }
+ else {
+ if (isset($right_panel_text_c)) {
+ unset($right_panel_text_c);
+ }
+ }
+
if (file_exists("data/round.txt")) {
- echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
+
+ echo '<b class="rbright"><b class="rb1t" style="';
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "background-color: $right_panel_border;";
+ }
+
+ echo '"></b><b class="rb2t" style="';
+
+ if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ echo "background-color: $right_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "border-color: $right_panel_border;";
+ }
+
+ echo '"></b><b class="rb3t" style="';
+
+ if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ echo "background-color: $right_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "border-color: $right_panel_border;";
+ }
+
+ echo '"></b><b class="rb4t" style="';
+
+ if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ echo "background-color: $right_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "border-color: $right_panel_border;";
+ }
+
+ echo '"></b></b><div class="xtitle" style="';
+
+ if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ echo "background-color: $right_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$right_panel/text-t.txt")) {
+ echo "color: $right_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "border-color: $right_panel_border;";
+ }
+
+ echo '">';
}
else {
- echo '<div id="panel_title">';
+ echo '<div id="panel_title" style="';
+
+ if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ echo "background-color: $right_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$right_panel/text-t.txt")) {
+ echo "color: $right_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "border-color: $right_panel_border;";
+ }
+
+ echo '">';
}
readfile("data/panels/$right_panel/title.txt");
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo "<a href=panels.php#{$right_panel}>";
- echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
+ echo "<a href=\"panels.php#{$right_panel}\">";
+ echo '<img src="images/widget.edit.png" border="0" width="11" height="11" align="right"></a>';
+ }
+
+ if (file_exists("data/panels/$right_panel/private.txt")) {
+ echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
+ }
+
+ echo '</div>';
+
+ echo '<div id="panel_body" style="';
+
+ if (file_exists("data/panels/$right_panel/bgcolor-c.txt")) {
+ echo "background-color: $right_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$right_panel/text-c.txt")) {
+ echo "color: $right_panel_text_c;";
+ }
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "border-color: $right_panel_border;";
}
- echo '</div><div id=panel_body>';
+ echo '">';
}
if (file_exists("data/panels/$right_panel/free.txt")) {
@@ -4754,7 +5548,44 @@ if ($count_right_panels > 0) {
echo '</div>';
if (file_exists("data/round.txt") and !file_exists("data/panels/$right_panel/free.txt")) {
- echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+
+ echo '<b class="rbbottom"><b class="rb4b" style="';
+
+ if (file_exists("data/panels/$right_panel/bgcolor-c.txt")) {
+ echo "background-color: $right_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "border-color: $right_panel_border;";
+ }
+
+ echo '"></b><b class="rb3b" style="';
+
+ if (file_exists("data/panels/$right_panel/bgcolor-c.txt")) {
+ echo "background-color: $right_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "border-color: $right_panel_border;";
+ }
+
+ echo '"></b><b class="rb2b" style="';
+
+ if (file_exists("data/panels/$right_panel/bgcolor-c.txt")) {
+ echo "background-color: $right_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "border-color: $right_panel_border;";
+ }
+
+ echo '"></b><b class="rb1b" style="';
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "background-color: $right_panel_border;";
+ }
+
+ echo '"></b></b>';
}
}
}
@@ -4788,14 +5619,9 @@ if ($count_latest > 0) {
echo '</table>';
}
-?>
-
-
-
-</td></tr>
-</table>
-
-<?php
+echo "</td></tr>";
+echo "<tr><td width=\"$wside\" height=\"$wspace\"></td><td width=\"$wspace\" height=\"$wspace\"><div style=\"width: {$wspace}px;\"></div></td><td width=\"$wmain\" height=\"$wspace\"></td><td width=\"$wspace\" height=\"$wspace\"><div style=\"width: {$wspace}px;\"></div></td><td width=\"$wside\" height=\"$wspace\"></td></tr>";
+echo "</table>";
if (file_exists("data/footer.txt")) {
diff --git a/rel.txt b/rel.txt
index ac9f42b..6b17962 100644
--- a/rel.txt
+++ b/rel.txt
@@ -1 +1 @@
-20081224
\ No newline at end of file
+20081228
\ No newline at end of file
tree c5323941a6079782113d83bf396218fda2607276
parent 01d09d60efa13575504c05b86255300ab5f15491
author Engels Antonio <engels@majcms.org> 1277314206 +0800
committer Engels Antonio <engels@majcms.org> 1277314206 +0800
maj-1.0-20081228-bb.zip
diff --git a/colors.php b/colors.php
index 207cd11..51b48ca 100644
--- a/colors.php
+++ b/colors.php
@@ -1002,6 +1002,7 @@ if ($dh_color_scheme = opendir("data/schemes/colors")) {
}
sort($color_schemes);
+reset($color_schemes);
if (count($color_schemes) > 0) {
echo "<form action=colors.php method=post>";
diff --git a/index.php b/index.php
index c9c33d6..26c48d1 100644
--- a/index.php
+++ b/index.php
@@ -1443,7 +1443,7 @@ if (file_exists("data/header.txt")) {
}
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$wtable\">";
-echo "<tr><td width=\"$wside\" height=\"10\"></td><td width=\"$wspace\" height=\"10\"></td><td width=\"$wmain\" height=\"10\"></td><td width=\"$wspace\" height=\"10\"></td><td width=\"$wside\" height=\"10\"></td></tr>";
+echo "<tr><td width=\"$wside\" height=\"$wspace\"></td><td width=\"$wspace\" height=\"$wspace\"><div style=\"width: {$wspace}px;\"></div></td><td width=\"$wmain\" height=\"$wspace\"></td><td width=\"$wspace\" height=\"$wspace\"><div style=\"width: {$wspace}px;\"></div></td><td width=\"$wside\" height=\"$wspace\"></td></tr>";
echo "<tr><td width=\"$wside\" valign=\"top\">";
if (file_exists("data/round.txt")) {
@@ -1742,25 +1742,151 @@ if (file_exists("data/panels")) {
if (!file_exists("data/panels/$left_panel/free.txt")) {
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ $left_panel_border = file_get_contents("data/panels/$left_panel/border.txt");
+ }
+ else {
+ if (isset($left_panel_border)) {
+ unset($left_panel_border);
+ }
+ }
+
+ if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ $left_panel_bgcolor_t = file_get_contents("data/panels/$left_panel/bgcolor-t.txt");
+ }
+ else {
+ if (isset($left_panel_bgcolor_t)) {
+ unset($left_panel_bgcolor_t);
+ }
+ }
+
+ if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
+ $left_panel_bgcolor_c = file_get_contents("data/panels/$left_panel/bgcolor-c.txt");
+ }
+ else {
+ if (isset($left_panel_bgcolor_c)) {
+ unset($left_panel_bgcolor_c);
+ }
+ }
+
+ if (file_exists("data/panels/$left_panel/text-t.txt")) {
+ $left_panel_text_t = file_get_contents("data/panels/$left_panel/text-t.txt");
+ }
+ else {
+ if (isset($left_panel_text_t)) {
+ unset($left_panel_text_t);
+ }
+ }
+
+ if (file_exists("data/panels/$left_panel/text-c.txt")) {
+ $left_panel_text_c = file_get_contents("data/panels/$left_panel/text-c.txt");
+ }
+ else {
+ if (isset($left_panel_text_c)) {
+ unset($left_panel_text_c);
+ }
+ }
+
if (file_exists("data/round.txt")) {
- echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
+
+ echo '<b class="rbtop"><b class="rb1t" style="';
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "background-color: $left_panel_border;";
+ }
+
+ echo '"></b><b class="rb2t" style="';
+
+ if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ echo "background-color: $left_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "border-color: $left_panel_border;";
+ }
+
+ echo '"></b><b class="rb3t" style="';
+
+ if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ echo "background-color: $left_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "border-color: $left_panel_border;";
+ }
+
+ echo '"></b><b class="rb4t" style="';
+
+ if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ echo "background-color: $left_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "border-color: $left_panel_border;";
+ }
+
+ echo '"></b></b><div class="xtitle" style="';
+
+ if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ echo "background-color: $left_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$left_panel/text-t.txt")) {
+ echo "color: $left_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "border-color: $left_panel_border;";
+ }
+
+ echo '">';
}
else {
- echo '<div id="panel_title">';
+ echo '<div id="panel_title" style="';
+
+ if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ echo "background-color: $left_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$left_panel/text-t.txt")) {
+ echo "color: $left_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "border-color: $left_panel_border;";
+ }
+
+ echo '">';
}
readfile("data/panels/$left_panel/title.txt");
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo "<a href=panels.php#{$left_panel}>";
- echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
+ echo "<a href=\"panels.php#{$left_panel}\">";
+ echo '<img src="images/widget.edit.png" border="0" width="11" height="11" align="right"></a>';
}
if (file_exists("data/panels/$left_panel/private.txt")) {
- echo '<img src=images/widget.private.png border=0 width=11 height=11 align=right>';
+ echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
+ }
+
+ echo '</div>';
+
+ echo '<div id="panel_body" style="';
+
+ if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
+ echo "background-color: $left_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$left_panel/text-c.txt")) {
+ echo "color: $left_panel_text_c;";
}
- echo '</div><div id=panel_body>';
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "border-color: $left_panel_border;";
+ }
+
+ echo '">';
}
if (file_exists("data/panels/$left_panel/free.txt")) {
@@ -1772,13 +1898,50 @@ if (file_exists("data/panels")) {
echo '</div>';
if (file_exists("data/round.txt") and !file_exists("data/panels/$left_panel/free.txt")) {
- echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+
+ echo '<b class="rbbottom"><b class="rb4b" style="';
+
+ if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
+ echo "background-color: $left_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "border-color: $left_panel_border;";
+ }
+
+ echo '"></b><b class="rb3b" style="';
+
+ if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
+ echo "background-color: $left_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "border-color: $left_panel_border;";
+ }
+
+ echo '"></b><b class="rb2b" style="';
+
+ if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
+ echo "background-color: $left_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "border-color: $left_panel_border;";
+ }
+
+ echo '"></b><b class="rb1b" style="';
+
+ if (file_exists("data/panels/$left_panel/border.txt")) {
+ echo "background-color: $left_panel_border;";
+ }
+
+ echo '"></b></b>';
}
}
}
}
-echo "</td><td width=\"$wspace\"></td>";
+echo "</td><td width=\"$wspace\"><div style=\"width: {$wspace}px;\"></div></td>";
// main
@@ -1790,21 +1953,151 @@ if ($count_top_panels > 0) {
if (!file_exists("data/panels/$top_panel/free.txt")) {
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ $top_panel_border = file_get_contents("data/panels/$top_panel/border.txt");
+ }
+ else {
+ if (isset($top_panel_border)) {
+ unset($top_panel_border);
+ }
+ }
+
+ if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ $top_panel_bgcolor_t = file_get_contents("data/panels/$top_panel/bgcolor-t.txt");
+ }
+ else {
+ if (isset($top_panel_bgcolor_t)) {
+ unset($top_panel_bgcolor_t);
+ }
+ }
+
+ if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
+ $top_panel_bgcolor_c = file_get_contents("data/panels/$top_panel/bgcolor-c.txt");
+ }
+ else {
+ if (isset($top_panel_bgcolor_c)) {
+ unset($top_panel_bgcolor_c);
+ }
+ }
+
+ if (file_exists("data/panels/$top_panel/text-t.txt")) {
+ $top_panel_text_t = file_get_contents("data/panels/$top_panel/text-t.txt");
+ }
+ else {
+ if (isset($top_panel_text_t)) {
+ unset($top_panel_text_t);
+ }
+ }
+
+ if (file_exists("data/panels/$top_panel/text-c.txt")) {
+ $top_panel_text_c = file_get_contents("data/panels/$top_panel/text-c.txt");
+ }
+ else {
+ if (isset($top_panel_text_c)) {
+ unset($top_panel_text_c);
+ }
+ }
+
if (file_exists("data/round.txt")) {
- echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
+
+ echo '<b class="rbtop"><b class="rb1t" style="';
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "background-color: $top_panel_border;";
+ }
+
+ echo '"></b><b class="rb2t" style="';
+
+ if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ echo "background-color: $top_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "border-color: $top_panel_border;";
+ }
+
+ echo '"></b><b class="rb3t" style="';
+
+ if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ echo "background-color: $top_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "border-color: $top_panel_border;";
+ }
+
+ echo '"></b><b class="rb4t" style="';
+
+ if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ echo "background-color: $top_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "border-color: $top_panel_border;";
+ }
+
+ echo '"></b></b><div class="xtitle" style="';
+
+ if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ echo "background-color: $top_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$top_panel/text-t.txt")) {
+ echo "color: $top_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "border-color: $top_panel_border;";
+ }
+
+ echo '">';
}
else {
- echo '<div id="panel_title">';
+ echo '<div id="panel_title" style="';
+
+ if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ echo "background-color: $top_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$top_panel/text-t.txt")) {
+ echo "color: $top_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "border-color: $top_panel_border;";
+ }
+
+ echo '">';
}
readfile("data/panels/$top_panel/title.txt");
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo "<a href=panels.php#{$top_panel}>";
- echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
+ echo "<a href=\"panels.php#{$top_panel}\">";
+ echo '<img src="images/widget.edit.png" border="0" width="11" height="11" align="right"></a>';
}
- echo '</div><div id=panel_body>';
+ if (file_exists("data/panels/$top_panel/private.txt")) {
+ echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
+ }
+
+ echo '</div>';
+
+ echo '<div id="panel_body" style="';
+
+ if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
+ echo "background-color: $top_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$top_panel/text-c.txt")) {
+ echo "color: $top_panel_text_c;";
+ }
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "border-color: $top_panel_border;";
+ }
+
+ echo '">';
}
if (file_exists("data/panels/$top_panel/free.txt")) {
@@ -1816,7 +2109,44 @@ if ($count_top_panels > 0) {
echo '</div>';
if (file_exists("data/round.txt") and !file_exists("data/panels/$top_panel/free.txt")) {
- echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+
+ echo '<b class="rbbottom"><b class="rb4b" style="';
+
+ if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
+ echo "background-color: $top_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "border-color: $top_panel_border;";
+ }
+
+ echo '"></b><b class="rb3b" style="';
+
+ if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
+ echo "background-color: $top_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "border-color: $top_panel_border;";
+ }
+
+ echo '"></b><b class="rb2b" style="';
+
+ if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
+ echo "background-color: $top_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "border-color: $top_panel_border;";
+ }
+
+ echo '"></b><b class="rb1b" style="';
+
+ if (file_exists("data/panels/$top_panel/border.txt")) {
+ echo "background-color: $top_panel_border;";
+ }
+
+ echo '"></b></b>';
}
}
}
@@ -2184,21 +2514,151 @@ if ($count_center_panels > 0) {
if (!file_exists("data/panels/$center_panel/free.txt")) {
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ $center_panel_border = file_get_contents("data/panels/$center_panel/border.txt");
+ }
+ else {
+ if (isset($center_panel_border)) {
+ unset($center_panel_border);
+ }
+ }
+
+ if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ $center_panel_bgcolor_t = file_get_contents("data/panels/$center_panel/bgcolor-t.txt");
+ }
+ else {
+ if (isset($center_panel_bgcolor_t)) {
+ unset($center_panel_bgcolor_t);
+ }
+ }
+
+ if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
+ $center_panel_bgcolor_c = file_get_contents("data/panels/$center_panel/bgcolor-c.txt");
+ }
+ else {
+ if (isset($center_panel_bgcolor_c)) {
+ unset($center_panel_bgcolor_c);
+ }
+ }
+
+ if (file_exists("data/panels/$center_panel/text-t.txt")) {
+ $center_panel_text_t = file_get_contents("data/panels/$center_panel/text-t.txt");
+ }
+ else {
+ if (isset($center_panel_text_t)) {
+ unset($center_panel_text_t);
+ }
+ }
+
+ if (file_exists("data/panels/$center_panel/text-c.txt")) {
+ $center_panel_text_c = file_get_contents("data/panels/$center_panel/text-c.txt");
+ }
+ else {
+ if (isset($center_panel_text_c)) {
+ unset($center_panel_text_c);
+ }
+ }
+
if (file_exists("data/round.txt")) {
- echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
+
+ echo '<b class="rbcenter"><b class="rb1t" style="';
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "background-color: $center_panel_border;";
+ }
+
+ echo '"></b><b class="rb2t" style="';
+
+ if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ echo "background-color: $center_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "border-color: $center_panel_border;";
+ }
+
+ echo '"></b><b class="rb3t" style="';
+
+ if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ echo "background-color: $center_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "border-color: $center_panel_border;";
+ }
+
+ echo '"></b><b class="rb4t" style="';
+
+ if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ echo "background-color: $center_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "border-color: $center_panel_border;";
+ }
+
+ echo '"></b></b><div class="xtitle" style="';
+
+ if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ echo "background-color: $center_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$center_panel/text-t.txt")) {
+ echo "color: $center_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "border-color: $center_panel_border;";
+ }
+
+ echo '">';
}
else {
- echo '<div id="panel_title">';
+ echo '<div id="panel_title" style="';
+
+ if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ echo "background-color: $center_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$center_panel/text-t.txt")) {
+ echo "color: $center_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "border-color: $center_panel_border;";
+ }
+
+ echo '">';
}
readfile("data/panels/$center_panel/title.txt");
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo "<a href=panels.php#{$center_panel}>";
- echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
+ echo "<a href=\"panels.php#{$center_panel}\">";
+ echo '<img src="images/widget.edit.png" border="0" width="11" height="11" align="right"></a>';
+ }
+
+ if (file_exists("data/panels/$center_panel/private.txt")) {
+ echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
}
- echo '</div><div id=panel_body>';
+ echo '</div>';
+
+ echo '<div id="panel_body" style="';
+
+ if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
+ echo "background-color: $center_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$center_panel/text-c.txt")) {
+ echo "color: $center_panel_text_c;";
+ }
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "border-color: $center_panel_border;";
+ }
+
+ echo '">';
}
if (file_exists("data/panels/$center_panel/free.txt")) {
@@ -2210,7 +2670,44 @@ if ($count_center_panels > 0) {
echo '</div>';
if (file_exists("data/round.txt") and !file_exists("data/panels/$center_panel/free.txt")) {
- echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+
+ echo '<b class="rbbottom"><b class="rb4b" style="';
+
+ if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
+ echo "background-color: $center_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "border-color: $center_panel_border;";
+ }
+
+ echo '"></b><b class="rb3b" style="';
+
+ if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
+ echo "background-color: $center_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "border-color: $center_panel_border;";
+ }
+
+ echo '"></b><b class="rb2b" style="';
+
+ if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
+ echo "background-color: $center_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "border-color: $center_panel_border;";
+ }
+
+ echo '"></b><b class="rb1b" style="';
+
+ if (file_exists("data/panels/$center_panel/border.txt")) {
+ echo "background-color: $center_panel_border;";
+ }
+
+ echo '"></b></b>';
}
}
}
@@ -2899,34 +3396,201 @@ foreach ($disp as $d) {
foreach ($entry_panels as $entry_panel) {
if (!file_exists("data/panels/$entry_panel/free.txt")) {
-
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ $entry_panel_border = file_get_contents("data/panels/$entry_panel/border.txt");
+ }
+ else {
+ if (isset($entry_panel_border)) {
+ unset($entry_panel_border);
+ }
+ }
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ $entry_panel_bgcolor_t = file_get_contents("data/panels/$entry_panel/bgcolor-t.txt");
+ }
+ else {
+ if (isset($entry_panel_bgcolor_t)) {
+ unset($entry_panel_bgcolor_t);
+ }
+ }
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-c.txt")) {
+ $entry_panel_bgcolor_c = file_get_contents("data/panels/$entry_panel/bgcolor-c.txt");
+ }
+ else {
+ if (isset($entry_panel_bgcolor_c)) {
+ unset($entry_panel_bgcolor_c);
+ }
+ }
+
+ if (file_exists("data/panels/$entry_panel/text-t.txt")) {
+ $entry_panel_text_t = file_get_contents("data/panels/$entry_panel/text-t.txt");
+ }
+ else {
+ if (isset($entry_panel_text_t)) {
+ unset($entry_panel_text_t);
+ }
+ }
+
+ if (file_exists("data/panels/$entry_panel/text-c.txt")) {
+ $entry_panel_text_c = file_get_contents("data/panels/$entry_panel/text-c.txt");
+ }
+ else {
+ if (isset($entry_panel_text_c)) {
+ unset($entry_panel_text_c);
+ }
+ }
+
if (file_exists("data/round.txt")) {
- echo "<b class=\"rbper_entry\"><b class=\"rb1t\"></b><b class=\"rb2t\"></b><b class=\"rb3t\"></b><b class=\"rb4t\"></b></b><div class=\"xtitle\">";
+
+ echo '<b class="rbtop"><b class="rb1t" style="';
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "background-color: $entry_panel_border;";
+ }
+
+ echo '"></b><b class="rb2t" style="';
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ echo "background-color: $entry_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "border-color: $entry_panel_border;";
+ }
+
+ echo '"></b><b class="rb3t" style="';
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ echo "background-color: $entry_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "border-color: $entry_panel_border;";
+ }
+
+ echo '"></b><b class="rb4t" style="';
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ echo "background-color: $entry_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "border-color: $entry_panel_border;";
+ }
+
+ echo '"></b></b><div class="xtitle" style="';
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ echo "background-color: $entry_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/text-t.txt")) {
+ echo "color: $entry_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "border-color: $entry_panel_border;";
+ }
+
+ echo '">';
}
else {
- echo "<div id=\"panel_title\">";
+ echo '<div id="panel_title" style="';
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ echo "background-color: $entry_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/text-t.txt")) {
+ echo "color: $entry_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "border-color: $entry_panel_border;";
+ }
+
+ echo '">';
}
-
+
readfile("data/panels/$entry_panel/title.txt");
-
+
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo "<a href=\"panels.php#$entry_panel\">";
- echo "<img src=\"images/widget.edit.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\"></a>";
+ echo "<a href=\"panels.php#{$entry_panel}\">";
+ echo '<img src="images/widget.edit.png" border="0" width="11" height="11" align="right"></a>';
}
-
- echo "</div><div id=panel_body>";
+
+ if (file_exists("data/panels/$entry_panel/private.txt")) {
+ echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
+ }
+
+ echo '</div>';
+
+ echo '<div id="panel_body" style="';
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-c.txt")) {
+ echo "background-color: $entry_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/text-c.txt")) {
+ echo "color: $entry_panel_text_c;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "border-color: $entry_panel_border;";
+ }
+
+ echo '">';
}
-
+
if (file_exists("data/panels/$entry_panel/free.txt")) {
- echo "<div id=\"panel_free\">";
+ echo '<div id=panel_free>';
}
-
+
include("data/panels/$entry_panel/panel.php");
- echo "</div>";
-
+ echo '</div>';
+
if (file_exists("data/round.txt") and !file_exists("data/panels/$entry_panel/free.txt")) {
- echo "<b class=\"rbbottom\"><b class=\"rb4b\"></b><b class=\"rb3b\"></b><b class=\"rb2b\"></b><b class=\"rb1b\"></b></b>";
+
+ echo '<b class="rbbottom"><b class="rb4b" style="';
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-c.txt")) {
+ echo "background-color: $entry_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "border-color: $entry_panel_border;";
+ }
+
+ echo '"></b><b class="rb3b" style="';
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-c.txt")) {
+ echo "background-color: $entry_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "border-color: $entry_panel_border;";
+ }
+
+ echo '"></b><b class="rb2b" style="';
+
+ if (file_exists("data/panels/$entry_panel/bgcolor-c.txt")) {
+ echo "background-color: $entry_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "border-color: $entry_panel_border;";
+ }
+
+ echo '"></b><b class="rb1b" style="';
+
+ if (file_exists("data/panels/$entry_panel/border.txt")) {
+ echo "background-color: $entry_panel_border;";
+ }
+
+ echo '"></b></b>';
}
}
}
@@ -4092,7 +4756,7 @@ if ($end < sizeof($items)) {
// right side
-echo "</tr></table></td><td width=\"$wspace\"></td><td width=\"$wside\" valign=\"top\">";
+echo "</tr></table></td><td width=\"$wspace\"><div style=\"width: {$wspace}px;\"></div></td><td width=\"$wside\" valign=\"top\">";
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
if ($dh_pending_comment_flags = opendir("data/comments/pending")) {
@@ -4728,21 +5392,151 @@ if ($count_right_panels > 0) {
if (!file_exists("data/panels/$right_panel/free.txt")) {
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ $right_panel_border = file_get_contents("data/panels/$right_panel/border.txt");
+ }
+ else {
+ if (isset($right_panel_border)) {
+ unset($right_panel_border);
+ }
+ }
+
+ if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ $right_panel_bgcolor_t = file_get_contents("data/panels/$right_panel/bgcolor-t.txt");
+ }
+ else {
+ if (isset($right_panel_bgcolor_t)) {
+ unset($right_panel_bgcolor_t);
+ }
+ }
+
+ if (file_exists("data/panels/$right_panel/bgcolor-c.txt")) {
+ $right_panel_bgcolor_c = file_get_contents("data/panels/$right_panel/bgcolor-c.txt");
+ }
+ else {
+ if (isset($right_panel_bgcolor_c)) {
+ unset($right_panel_bgcolor_c);
+ }
+ }
+
+ if (file_exists("data/panels/$right_panel/text-t.txt")) {
+ $right_panel_text_t = file_get_contents("data/panels/$right_panel/text-t.txt");
+ }
+ else {
+ if (isset($right_panel_text_t)) {
+ unset($right_panel_text_t);
+ }
+ }
+
+ if (file_exists("data/panels/$right_panel/text-c.txt")) {
+ $right_panel_text_c = file_get_contents("data/panels/$right_panel/text-c.txt");
+ }
+ else {
+ if (isset($right_panel_text_c)) {
+ unset($right_panel_text_c);
+ }
+ }
+
if (file_exists("data/round.txt")) {
- echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
+
+ echo '<b class="rbright"><b class="rb1t" style="';
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "background-color: $right_panel_border;";
+ }
+
+ echo '"></b><b class="rb2t" style="';
+
+ if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ echo "background-color: $right_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "border-color: $right_panel_border;";
+ }
+
+ echo '"></b><b class="rb3t" style="';
+
+ if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ echo "background-color: $right_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "border-color: $right_panel_border;";
+ }
+
+ echo '"></b><b class="rb4t" style="';
+
+ if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ echo "background-color: $right_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "border-color: $right_panel_border;";
+ }
+
+ echo '"></b></b><div class="xtitle" style="';
+
+ if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ echo "background-color: $right_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$right_panel/text-t.txt")) {
+ echo "color: $right_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "border-color: $right_panel_border;";
+ }
+
+ echo '">';
}
else {
- echo '<div id="panel_title">';
+ echo '<div id="panel_title" style="';
+
+ if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ echo "background-color: $right_panel_bgcolor_t;";
+ }
+
+ if (file_exists("data/panels/$right_panel/text-t.txt")) {
+ echo "color: $right_panel_text_t;";
+ }
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "border-color: $right_panel_border;";
+ }
+
+ echo '">';
}
readfile("data/panels/$right_panel/title.txt");
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo "<a href=panels.php#{$right_panel}>";
- echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
+ echo "<a href=\"panels.php#{$right_panel}\">";
+ echo '<img src="images/widget.edit.png" border="0" width="11" height="11" align="right"></a>';
+ }
+
+ if (file_exists("data/panels/$right_panel/private.txt")) {
+ echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
+ }
+
+ echo '</div>';
+
+ echo '<div id="panel_body" style="';
+
+ if (file_exists("data/panels/$right_panel/bgcolor-c.txt")) {
+ echo "background-color: $right_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$right_panel/text-c.txt")) {
+ echo "color: $right_panel_text_c;";
+ }
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "border-color: $right_panel_border;";
}
- echo '</div><div id=panel_body>';
+ echo '">';
}
if (file_exists("data/panels/$right_panel/free.txt")) {
@@ -4754,7 +5548,44 @@ if ($count_right_panels > 0) {
echo '</div>';
if (file_exists("data/round.txt") and !file_exists("data/panels/$right_panel/free.txt")) {
- echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+
+ echo '<b class="rbbottom"><b class="rb4b" style="';
+
+ if (file_exists("data/panels/$right_panel/bgcolor-c.txt")) {
+ echo "background-color: $right_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "border-color: $right_panel_border;";
+ }
+
+ echo '"></b><b class="rb3b" style="';
+
+ if (file_exists("data/panels/$right_panel/bgcolor-c.txt")) {
+ echo "background-color: $right_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "border-color: $right_panel_border;";
+ }
+
+ echo '"></b><b class="rb2b" style="';
+
+ if (file_exists("data/panels/$right_panel/bgcolor-c.txt")) {
+ echo "background-color: $right_panel_bgcolor_c;";
+ }
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "border-color: $right_panel_border;";
+ }
+
+ echo '"></b><b class="rb1b" style="';
+
+ if (file_exists("data/panels/$right_panel/border.txt")) {
+ echo "background-color: $right_panel_border;";
+ }
+
+ echo '"></b></b>';
}
}
}
@@ -4788,14 +5619,9 @@ if ($count_latest > 0) {
echo '</table>';
}
-?>
-
-
-
-</td></tr>
-</table>
-
-<?php
+echo "</td></tr>";
+echo "<tr><td width=\"$wside\" height=\"$wspace\"></td><td width=\"$wspace\" height=\"$wspace\"><div style=\"width: {$wspace}px;\"></div></td><td width=\"$wmain\" height=\"$wspace\"></td><td width=\"$wspace\" height=\"$wspace\"><div style=\"width: {$wspace}px;\"></div></td><td width=\"$wside\" height=\"$wspace\"></td></tr>";
+echo "</table>";
if (file_exists("data/footer.txt")) {
diff --git a/rel.txt b/rel.txt
index ac9f42b..6b17962 100644
--- a/rel.txt
+++ b/rel.txt
@@ -1 +1 @@
-20081224
\ No newline at end of file
+20081228
\ No newline at end of file