This commit has been accessed 323 times via Git panel.
commit 3cb5e55599841254c5be0e6d874a8545fbd17d81
tree bcaa744236c2844a7b59cae2e40255b942192a39
parent 55f358ed1346ea52e5f042ace6de7d7f34495275
author Engels Antonio <engels@majcms.org> 1277314207 +0800
committer Engels Antonio <engels@majcms.org> 1277314207 +0800
maj-1.0-20081230-bb.zip
diff --git a/index.php b/index.php
index 26c48d1..4f16022 100644
--- a/index.php
+++ b/index.php
@@ -728,10 +728,6 @@ if (file_exists("data/comments/pending") and file_exists("data/xscreen.txt")) {
}
}
-?>
-
-<?php
-
if (isset($req_entry) and !empty($req_entry) and file_exists("data/items/$req_entry")) {
$private_categories = "0";
@@ -1140,7 +1136,7 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
}
#panel_free {
- padding: 0px 5px 0px 5px;
+ padding: 0px 0px 0px 0px;
margin: 0px 0px 10px 0px;
}
@@ -1515,12 +1511,10 @@ include("data/profile.php");
</div>
<?php
- if (file_exists("data/round.txt")) {
- echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
- }
-?>
-<?php
+if (file_exists("data/round.txt")) {
+ echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+}
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">';
@@ -1579,12 +1573,10 @@ else {
</div>
<?php
- if (file_exists("data/round.txt")) {
- echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
- }
-?>
-<?php
+if (file_exists("data/round.txt")) {
+ echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+}
if (file_exists("data/sticky")) {
@@ -1661,10 +1653,6 @@ if (file_exists("data/sticky")) {
}
}
-?>
-
-<?php
-
if (file_exists("data/panels")) {
if ($dh_panels = opendir("data/panels")) {
@@ -1789,74 +1777,114 @@ if (file_exists("data/panels")) {
if (file_exists("data/round.txt")) {
- echo '<b class="rbtop"><b class="rb1t" style="';
+ echo '<b class="rbtop"><b class="rb1t"';
- if (file_exists("data/panels/$left_panel/border.txt")) {
- echo "background-color: $left_panel_border;";
+ if (isset($left_panel_border)) {
+ echo " style=\"background-color: $left_panel_border;\"";
}
- echo '"></b><b class="rb2t" style="';
+ echo '></b><b class="rb2t"';
- if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ echo ' style="';
+ }
+
+ if (isset($left_panel_bgcolor_t)) {
echo "background-color: $left_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$left_panel/border.txt")) {
+ if (isset($left_panel_border)) {
echo "border-color: $left_panel_border;";
}
- echo '"></b><b class="rb3t" style="';
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3t"';
+
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ if (isset($left_panel_bgcolor_t)) {
echo "background-color: $left_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$left_panel/border.txt")) {
+ if (isset($left_panel_border)) {
echo "border-color: $left_panel_border;";
}
- echo '"></b><b class="rb4t" style="';
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb4t"';
+
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ if (isset($left_panel_bgcolor_t)) {
echo "background-color: $left_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$left_panel/border.txt")) {
+ if (isset($left_panel_border)) {
echo "border-color: $left_panel_border;";
}
- echo '"></b></b><div class="xtitle" style="';
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b></b><div class="xtitle"';
- if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t) or isset($left_panel_text_t)) {
+ echo ' style="';
+ }
+
+ if (isset($left_panel_bgcolor_t)) {
echo "background-color: $left_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$left_panel/text-t.txt")) {
+ if (isset($left_panel_text_t)) {
echo "color: $left_panel_text_t;";
}
- if (file_exists("data/panels/$left_panel/border.txt")) {
+ if (isset($left_panel_border)) {
echo "border-color: $left_panel_border;";
}
- echo '">';
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t) or isset($left_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
else {
- echo '<div id="panel_title" style="';
+ echo '<div id="panel_title"';
- if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t) or isset($left_panel_text_t)) {
+ echo ' style="';
+ }
+
+ if (isset($left_panel_bgcolor_t)) {
echo "background-color: $left_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$left_panel/text-t.txt")) {
+ if (isset($left_panel_text_t)) {
echo "color: $left_panel_text_t;";
}
- if (file_exists("data/panels/$left_panel/border.txt")) {
+ if (isset($left_panel_border)) {
echo "border-color: $left_panel_border;";
}
- echo '">';
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t) or isset($left_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
readfile("data/panels/$left_panel/title.txt");
@@ -1872,21 +1900,29 @@ if (file_exists("data/panels")) {
echo '</div>';
- echo '<div id="panel_body" style="';
+ echo '<div id="panel_body"';
- if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_c) or isset($left_panel_text_c)) {
+ echo ' style="';
+ }
+
+ if (isset($left_panel_bgcolor_c)) {
echo "background-color: $left_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$left_panel/text-c.txt")) {
+ if (isset($left_panel_text_c)) {
echo "color: $left_panel_text_c;";
}
- if (file_exists("data/panels/$left_panel/border.txt")) {
+ if (isset($left_panel_border)) {
echo "border-color: $left_panel_border;";
}
- echo '">';
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_c) or isset($left_panel_text_c)) {
+ echo '"';
+ }
+
+ echo '>';
}
if (file_exists("data/panels/$left_panel/free.txt")) {
@@ -1899,43 +1935,67 @@ if (file_exists("data/panels")) {
if (file_exists("data/round.txt") and !file_exists("data/panels/$left_panel/free.txt")) {
- echo '<b class="rbbottom"><b class="rb4b" style="';
+ echo '<b class="rbbottom"><b class="rb4b"';
- if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($left_panel_bgcolor_c)) {
echo "background-color: $left_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$left_panel/border.txt")) {
+ if (isset($left_panel_border)) {
echo "border-color: $left_panel_border;";
}
- echo '"></b><b class="rb3b" style="';
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
+ echo '></b><b class="rb3b"';
+
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($left_panel_bgcolor_c)) {
echo "background-color: $left_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$left_panel/border.txt")) {
+ if (isset($left_panel_border)) {
echo "border-color: $left_panel_border;";
}
- echo '"></b><b class="rb2b" style="';
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
+ echo '></b><b class="rb2b"';
+
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($left_panel_bgcolor_c)) {
echo "background-color: $left_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$left_panel/border.txt")) {
+ if (isset($left_panel_border)) {
echo "border-color: $left_panel_border;";
}
- echo '"></b><b class="rb1b" style="';
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$left_panel/border.txt")) {
- echo "background-color: $left_panel_border;";
+ echo '></b><b class="rb1b"';
+
+ if (isset($left_panel_border)) {
+ echo " style=\"background-color: $left_panel_border;\"";
}
- echo '"></b></b>';
+ echo '></b></b>';
}
}
}
@@ -2000,74 +2060,114 @@ if ($count_top_panels > 0) {
if (file_exists("data/round.txt")) {
- echo '<b class="rbtop"><b class="rb1t" style="';
+ echo '<b class="rbtop"><b class="rb1t"';
- if (file_exists("data/panels/$top_panel/border.txt")) {
- echo "background-color: $top_panel_border;";
+ if (isset($top_panel_border)) {
+ echo " style=\"background-color: $top_panel_border;\"";
}
- echo '"></b><b class="rb2t" style="';
+ echo '></b><b class="rb2t"';
+
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ if (isset($top_panel_bgcolor_t)) {
echo "background-color: $top_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$top_panel/border.txt")) {
+ if (isset($top_panel_border)) {
echo "border-color: $top_panel_border;";
}
- echo '"></b><b class="rb3t" style="';
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3t"';
- if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ echo ' style="';
+ }
+
+ if (isset($top_panel_bgcolor_t)) {
echo "background-color: $top_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$top_panel/border.txt")) {
+ if (isset($top_panel_border)) {
echo "border-color: $top_panel_border;";
}
- echo '"></b><b class="rb4t" style="';
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb4t"';
+
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ if (isset($top_panel_bgcolor_t)) {
echo "background-color: $top_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$top_panel/border.txt")) {
+ if (isset($top_panel_border)) {
echo "border-color: $top_panel_border;";
}
- echo '"></b></b><div class="xtitle" style="';
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ echo '></b></b><div class="xtitle"';
+
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t) or isset($top_panel_text_t)) {
+ echo ' style="';
+ }
+
+ if (isset($top_panel_bgcolor_t)) {
echo "background-color: $top_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$top_panel/text-t.txt")) {
+ if (isset($top_panel_text_t)) {
echo "color: $top_panel_text_t;";
}
- if (file_exists("data/panels/$top_panel/border.txt")) {
+ if (isset($top_panel_border)) {
echo "border-color: $top_panel_border;";
}
- echo '">';
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t) or isset($top_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
else {
- echo '<div id="panel_title" style="';
+ echo '<div id="panel_title"';
+
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t) or isset($top_panel_text_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ if (isset($top_panel_bgcolor_t)) {
echo "background-color: $top_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$top_panel/text-t.txt")) {
+ if (isset($top_panel_text_t)) {
echo "color: $top_panel_text_t;";
}
- if (file_exists("data/panels/$top_panel/border.txt")) {
+ if (isset($top_panel_border)) {
echo "border-color: $top_panel_border;";
}
- echo '">';
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t) or isset($top_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
readfile("data/panels/$top_panel/title.txt");
@@ -2083,21 +2183,29 @@ if ($count_top_panels > 0) {
echo '</div>';
- echo '<div id="panel_body" style="';
+ echo '<div id="panel_body"';
- if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_c) or isset($top_panel_text_c)) {
+ echo ' style="';
+ }
+
+ if (isset($top_panel_bgcolor_c)) {
echo "background-color: $top_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$top_panel/text-c.txt")) {
+ if (isset($top_panel_text_c)) {
echo "color: $top_panel_text_c;";
}
- if (file_exists("data/panels/$top_panel/border.txt")) {
+ if (isset($top_panel_border)) {
echo "border-color: $top_panel_border;";
}
- echo '">';
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_c) or isset($top_panel_text_c)) {
+ echo '"';
+ }
+
+ echo '>';
}
if (file_exists("data/panels/$top_panel/free.txt")) {
@@ -2110,51 +2218,71 @@ if ($count_top_panels > 0) {
if (file_exists("data/round.txt") and !file_exists("data/panels/$top_panel/free.txt")) {
- echo '<b class="rbbottom"><b class="rb4b" style="';
+ echo '<b class="rbbottom"><b class="rb4b"';
- if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($top_panel_bgcolor_c)) {
echo "background-color: $top_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$top_panel/border.txt")) {
+ if (isset($top_panel_border)) {
echo "border-color: $top_panel_border;";
}
- echo '"></b><b class="rb3b" style="';
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3b"';
- if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($top_panel_bgcolor_c)) {
echo "background-color: $top_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$top_panel/border.txt")) {
+ if (isset($top_panel_border)) {
echo "border-color: $top_panel_border;";
}
- echo '"></b><b class="rb2b" style="';
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
+ echo '></b><b class="rb2b"';
+
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($top_panel_bgcolor_c)) {
echo "background-color: $top_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$top_panel/border.txt")) {
+ if (isset($top_panel_border)) {
echo "border-color: $top_panel_border;";
}
- echo '"></b><b class="rb1b" style="';
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$top_panel/border.txt")) {
- echo "background-color: $top_panel_border;";
+ echo '></b><b class="rb1b"';
+
+ if (isset($top_panel_border)) {
+ echo " style=\"background-color: $top_panel_border;\"";
}
- echo '"></b></b>';
+ echo '></b></b>';
}
}
}
-?>
-
-<?php
-
// clean-up (start)
if (file_exists("data/albums")) {
@@ -2403,10 +2531,6 @@ reset($archives);
$count_archives = count($archives);
-?>
-
-<?php
-
if (file_exists("data/bb.txt") and file_exists("data/bb-summary.txt") and !file_exists("data/lite.txt") and !isset($req_entry) and !isset($req_category) and !isset($_REQUEST['start']) and !isset($req_author) and !isset($req_archive) and !isset($req_find)) {
if ($count_latest > 0) {
@@ -2504,10 +2628,6 @@ if (file_exists("data/bb.txt") and file_exists("data/bb-summary.txt") and !file_
}
-?>
-
-<?php
-
if ($count_center_panels > 0) {
foreach ($center_panels as $center_panel) {
@@ -2561,74 +2681,114 @@ if ($count_center_panels > 0) {
if (file_exists("data/round.txt")) {
- echo '<b class="rbcenter"><b class="rb1t" style="';
+ echo '<b class="rbtop"><b class="rb1t"';
- if (file_exists("data/panels/$center_panel/border.txt")) {
- echo "background-color: $center_panel_border;";
+ if (isset($center_panel_border)) {
+ echo " style=\"background-color: $center_panel_border;\"";
}
- echo '"></b><b class="rb2t" style="';
+ echo '></b><b class="rb2t"';
- if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ echo ' style="';
+ }
+
+ if (isset($center_panel_bgcolor_t)) {
echo "background-color: $center_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$center_panel/border.txt")) {
+ if (isset($center_panel_border)) {
echo "border-color: $center_panel_border;";
}
- echo '"></b><b class="rb3t" style="';
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3t"';
+
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ if (isset($center_panel_bgcolor_t)) {
echo "background-color: $center_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$center_panel/border.txt")) {
+ if (isset($center_panel_border)) {
echo "border-color: $center_panel_border;";
}
- echo '"></b><b class="rb4t" style="';
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb4t"';
+
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ if (isset($center_panel_bgcolor_t)) {
echo "background-color: $center_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$center_panel/border.txt")) {
+ if (isset($center_panel_border)) {
echo "border-color: $center_panel_border;";
}
- echo '"></b></b><div class="xtitle" style="';
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ echo '></b></b><div class="xtitle"';
+
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t) or isset($center_panel_text_t)) {
+ echo ' style="';
+ }
+
+ if (isset($center_panel_bgcolor_t)) {
echo "background-color: $center_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$center_panel/text-t.txt")) {
+ if (isset($center_panel_text_t)) {
echo "color: $center_panel_text_t;";
}
- if (file_exists("data/panels/$center_panel/border.txt")) {
+ if (isset($center_panel_border)) {
echo "border-color: $center_panel_border;";
}
- echo '">';
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t) or isset($center_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
else {
- echo '<div id="panel_title" style="';
+ echo '<div id="panel_title"';
+
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t) or isset($center_panel_text_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ if (isset($center_panel_bgcolor_t)) {
echo "background-color: $center_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$center_panel/text-t.txt")) {
+ if (isset($center_panel_text_t)) {
echo "color: $center_panel_text_t;";
}
- if (file_exists("data/panels/$center_panel/border.txt")) {
+ if (isset($center_panel_border)) {
echo "border-color: $center_panel_border;";
}
- echo '">';
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t) or isset($center_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
readfile("data/panels/$center_panel/title.txt");
@@ -2644,21 +2804,29 @@ if ($count_center_panels > 0) {
echo '</div>';
- echo '<div id="panel_body" style="';
+ echo '<div id="panel_body"';
- if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_c) or isset($center_panel_text_c)) {
+ echo ' style="';
+ }
+
+ if (isset($center_panel_bgcolor_c)) {
echo "background-color: $center_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$center_panel/text-c.txt")) {
+ if (isset($center_panel_text_c)) {
echo "color: $center_panel_text_c;";
}
- if (file_exists("data/panels/$center_panel/border.txt")) {
+ if (isset($center_panel_border)) {
echo "border-color: $center_panel_border;";
}
- echo '">';
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_c) or isset($center_panel_text_c)) {
+ echo '"';
+ }
+
+ echo '>';
}
if (file_exists("data/panels/$center_panel/free.txt")) {
@@ -2671,51 +2839,71 @@ if ($count_center_panels > 0) {
if (file_exists("data/round.txt") and !file_exists("data/panels/$center_panel/free.txt")) {
- echo '<b class="rbbottom"><b class="rb4b" style="';
+ echo '<b class="rbbottom"><b class="rb4b"';
- if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($center_panel_bgcolor_c)) {
echo "background-color: $center_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$center_panel/border.txt")) {
+ if (isset($center_panel_border)) {
echo "border-color: $center_panel_border;";
}
- echo '"></b><b class="rb3b" style="';
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3b"';
- if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($center_panel_bgcolor_c)) {
echo "background-color: $center_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$center_panel/border.txt")) {
+ if (isset($center_panel_border)) {
echo "border-color: $center_panel_border;";
}
- echo '"></b><b class="rb2b" style="';
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
+ echo '></b><b class="rb2b"';
+
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($center_panel_bgcolor_c)) {
echo "background-color: $center_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$center_panel/border.txt")) {
+ if (isset($center_panel_border)) {
echo "border-color: $center_panel_border;";
}
- echo '"></b><b class="rb1b" style="';
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$center_panel/border.txt")) {
- echo "background-color: $center_panel_border;";
+ echo '></b><b class="rb1b"';
+
+ if (isset($center_panel_border)) {
+ echo " style=\"background-color: $center_panel_border;\"";
}
- echo '"></b></b>';
+ echo '></b></b>';
}
}
}
-?>
-
-<?php
-
if (isset($req_category) and !empty($req_category)) {
if (file_exists("data/categories/$req_category/book.txt")) {
@@ -2745,39 +2933,224 @@ if ($count_items == 0) {
if (count($_GET) > 0) {
echo "The entry you are looking for does not exist or is off limits to you.";
}
- else {
- echo "Login required. Entries are off limits without proper credentials.";
+ else {
+ echo "Login required. Entries are off limits without proper credentials.";
+ }
+ }
+
+ echo '</td></tr></table></div>';
+
+ if (file_exists("data/round.txt")) {
+ echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+ }
+
+ echo "</td></tr></table>";
+}
+
+$start = $_REQUEST['start'];
+
+if (!isset($_REQUEST['start']) or empty($_REQUEST['start'])) {
+ $start = 0;
+}
+
+$end = $start + $increase;
+
+$disp = array_slice($items,$start,$increase);
+
+foreach ($disp as $d) {
+
+ echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\"><tr><td width=\"$wmain\">";
+
+ if (file_exists("data/items/$d/border.txt")) {
+ $d_border = file_get_contents("data/items/$d/border.txt");
+ }
+ else {
+ if (isset($d_border)) {
+ unset($d_border);
+ }
+ }
+
+ if (file_exists("data/items/$d/bgcolor-t.txt")) {
+ $d_bgcolor_t = file_get_contents("data/items/$d/bgcolor-t.txt");
+ }
+ else {
+ if (isset($d_bgcolor_t)) {
+ unset($d_bgcolor_t);
+ }
+ }
+
+ if (file_exists("data/items/$d/bgcolor-b.txt")) {
+ $d_bgcolor_b = file_get_contents("data/items/$d/bgcolor-b.txt");
+ }
+ else {
+ if (isset($d_bgcolor_b)) {
+ unset($d_bgcolor_b);
+ }
+ }
+
+ if (file_exists("data/items/$d/bgcolor-c.txt")) {
+ $d_bgcolor_c = file_get_contents("data/items/$d/bgcolor-c.txt");
+ }
+ else {
+ if (isset($d_bgcolor_c)) {
+ unset($d_bgcolor_c);
+ }
+ }
+
+ if (file_exists("data/items/$d/bgcolor-f.txt")) {
+ $d_bgcolor_f = file_get_contents("data/items/$d/bgcolor-f.txt");
+ }
+ else {
+ if (isset($d_bgcolor_f)) {
+ unset($d_bgcolor_f);
+ }
+ }
+
+ if (file_exists("data/items/$d/text-t.txt")) {
+ $d_text_t = file_get_contents("data/items/$d/text-t.txt");
+ }
+ else {
+ if (isset($d_text_t)) {
+ unset($d_text_t);
+ }
+ }
+
+ if (file_exists("data/items/$d/text-b.txt")) {
+ $d_text_b = file_get_contents("data/items/$d/text-b.txt");
+ }
+ else {
+ if (isset($d_text_b)) {
+ unset($d_text_b);
+ }
+ }
+
+ if (file_exists("data/items/$d/text-c.txt")) {
+ $d_text_c = file_get_contents("data/items/$d/text-c.txt");
+ }
+ else {
+ if (isset($d_text_c)) {
+ unset($d_text_c);
+ }
+ }
+
+ if (file_exists("data/items/$d/text-f.txt")) {
+ $d_text_f = file_get_contents("data/items/$d/text-f.txt");
+ }
+ else {
+ if (isset($d_text_f)) {
+ unset($d_text_f);
+ }
+ }
+
+ if (file_exists("data/round.txt")) {
+ echo '<b class="rbtop"><b class="rb1t"';
+
+ if (isset($d_border)) {
+ echo " style=\"background-color: $d_border;\"";
+ }
+
+ echo '></b><b class="rb2t"';
+
+ if (isset($d_border) or isset($d_bgcolor_t)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_t)) {
+ echo "background-color: $d_bgcolor_t;";
+ }
+
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
+
+ if (isset($d_border) or isset($d_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3t"';
+
+ if (isset($d_border) or isset($d_bgcolor_t)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_t)) {
+ echo "background-color: $d_bgcolor_t;";
+ }
+
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
+
+ if (isset($d_border) or isset($d_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb4t"';
+
+ if (isset($d_border) or isset($d_bgcolor_t)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_t)) {
+ echo "background-color: $d_bgcolor_t;";
+ }
+
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
+
+ if (isset($d_border) or isset($d_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b></b><div class="xtitle"';
+
+ if (isset($d_border) or isset($d_bgcolor_t) or isset($d_text_t)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_t)) {
+ echo "background-color: $d_bgcolor_t;";
+ }
+
+ if (isset($d_text_t)) {
+ echo "color: $d_text_t;";
}
- }
- echo '</td></tr></table></div>';
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
- if (file_exists("data/round.txt")) {
- echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
- }
+ if (isset($d_border) or isset($d_bgcolor_t) or isset($d_text_t)) {
+ echo '"';
+ }
- echo "</td></tr></table>";
-}
+ echo '>';
+ }
+ else {
+ echo '<div id="panel_title"';
-$start = $_REQUEST['start'];
+ if (isset($d_border) or isset($d_bgcolor_t) or isset($d_text_t)) {
+ echo ' style="';
+ }
-if (!isset($_REQUEST['start']) or empty($_REQUEST['start'])) {
- $start = 0;
-}
+ if (isset($d_bgcolor_t)) {
+ echo "background-color: $d_bgcolor_t;";
+ }
-$end = $start + $increase;
-
-$disp = array_slice($items,$start,$increase);
+ if (isset($d_text_t)) {
+ echo "color: $d_text_t;";
+ }
-foreach ($disp as $d) {
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
- echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\"><tr><td width=\"$wmain\">";
+ if (isset($d_border) or isset($d_bgcolor_t) or isset($d_text_t)) {
+ echo '"';
+ }
- 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\">";
- }
- else {
- echo "<div id=\"panel_title\">";
+ echo '>';
}
readfile("data/items/$d/title.txt");
@@ -2865,7 +3238,31 @@ foreach ($disp as $d) {
}
- echo "</div><div id=\"panel_entry_body\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
+ echo "</div><div id=\"panel_entry_body\"";
+
+ if (isset($d_border) or isset($d_bgcolor_b) or isset($d_text_b)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_b)) {
+ echo "background-color: $d_bgcolor_b;";
+ }
+
+ if (isset($d_text_b)) {
+ echo "color: $d_text_b;";
+ }
+
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
+
+ if (isset($d_border) or isset($d_bgcolor_b) or isset($d_text_b)) {
+ echo '"';
+ }
+
+ echo '>';
+
+ echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
if (file_exists("data/bb.txt") and file_exists("data/avatar.txt") and file_exists("data/items/$d/author.txt")) {
@@ -3093,8 +3490,12 @@ foreach ($disp as $d) {
echo "</font><font style=\"font-size: 5px;\"><br><br></font>";
+ if (isset($d_text_b)) {
+ echo "<font style=\"color: $d_text_b;\">";
+ }
+
if (file_exists("data/items/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
- echo "This entry is password protected. If you know the magic word,click <a href=\"passwd.php?entry=$d\">here</a> to enter it.";
+ echo "This entry is password protected. If you know the magic word, click <a href=\"passwd.php?entry=$d\">here</a> to enter it.";
}
else {
$entry_body = file_get_contents("data/items/$d/body.txt");
@@ -3123,6 +3524,10 @@ foreach ($disp as $d) {
echo "<br><br>--<br>$sig";
}
+ if (isset($d_text_b)) {
+ echo "</font>";
+ }
+
echo "</td></tr></table>";
if (file_exists("data/round.txt")) {
@@ -3160,12 +3565,56 @@ foreach ($disp as $d) {
$category_list = $category_list . " | <a href=\"index.php?category=$filed_under\">$filed_under</a>";
}
- echo "<div id=\"panel_category\">$category_list</div>";
+ echo "<div id=\"panel_category\"";
+
+ if (isset($d_border) or isset($d_bgcolor_c) or isset($d_text_c)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_c)) {
+ echo "background-color: $d_bgcolor_c;";
+ }
+
+ if (isset($d_text_c)) {
+ echo "color: $d_text_c;";
+ }
+
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
+
+ if (isset($d_border) or isset($d_bgcolor_c) or isset($d_text_c)) {
+ echo '"';
+ }
+
+ echo ">$category_list</div>";
}
unset($entry_categories);
}
- echo "<div id=\"panel_footer\">";
+ echo "<div id=\"panel_footer\"";
+
+ if (isset($d_border) or isset($d_bgcolor_f) or isset($d_text_f)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_f)) {
+ echo "background-color: $d_bgcolor_f;";
+ }
+
+ if (isset($d_text_f)) {
+ echo "color: $d_text_f;";
+ }
+
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
+
+ if (isset($d_border) or isset($d_bgcolor_f) or isset($d_text_f)) {
+ echo '"';
+ }
+
+ echo '>';
if (!file_exists("data/nocomment.txt") or (file_exists("data/memcomment.txt") and isset($_SESSION['logged_in']))) {
@@ -3386,7 +3835,68 @@ foreach ($disp as $d) {
echo "</div>";
if (file_exists("data/round.txt")) {
- echo "<b class=\"rbbottom\"><b class=\"rb4e\"></b><b class=\"rb3e\"></b><b class=\"rb2e\"></b><b class=\"rb1e\"></b></b>";
+
+ echo '<b class="rbbottom"><b class="rb4e"';
+
+ if (isset($d_border) or isset($d_bgcolor_f)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_f)) {
+ echo "background-color: $d_bgcolor_f;";
+ }
+
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
+
+ if (isset($d_border) or isset($d_bgcolor_f)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3e"';
+
+ if (isset($d_border) or isset($d_bgcolor_f)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_f)) {
+ echo "background-color: $d_bgcolor_f;";
+ }
+
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
+
+ if (isset($d_border) or isset($d_bgcolor_f)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb2e"';
+
+ if (isset($d_border) or isset($d_bgcolor_f)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_f)) {
+ echo "background-color: $d_bgcolor_f;";
+ }
+
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
+
+ if (isset($d_border) or isset($d_bgcolor_f)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb1e"';
+
+ if (isset($d_border)) {
+ echo " style=\"background-color: $d_border;\"";
+ }
+
+ echo '></b></b>';
}
echo "</td></tr></table>";
@@ -3444,74 +3954,114 @@ foreach ($disp as $d) {
if (file_exists("data/round.txt")) {
- echo '<b class="rbtop"><b class="rb1t" style="';
+ echo '<b class="rbtop"><b class="rb1t"';
- if (file_exists("data/panels/$entry_panel/border.txt")) {
- echo "background-color: $entry_panel_border;";
+ if (isset($entry_panel_border)) {
+ echo " style=\"background-color: $entry_panel_border;\"";
}
- echo '"></b><b class="rb2t" style="';
+ echo '></b><b class="rb2t"';
+
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ if (isset($entry_panel_bgcolor_t)) {
echo "background-color: $entry_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$entry_panel/border.txt")) {
+ if (isset($entry_panel_border)) {
echo "border-color: $entry_panel_border;";
}
- echo '"></b><b class="rb3t" style="';
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3t"';
+
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ if (isset($entry_panel_bgcolor_t)) {
echo "background-color: $entry_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$entry_panel/border.txt")) {
+ if (isset($entry_panel_border)) {
echo "border-color: $entry_panel_border;";
}
- echo '"></b><b class="rb4t" style="';
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb4t"';
+
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ if (isset($entry_panel_bgcolor_t)) {
echo "background-color: $entry_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$entry_panel/border.txt")) {
+ if (isset($entry_panel_border)) {
echo "border-color: $entry_panel_border;";
}
- echo '"></b></b><div class="xtitle" style="';
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b></b><div class="xtitle"';
+
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t) or isset($entry_panel_text_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ if (isset($entry_panel_bgcolor_t)) {
echo "background-color: $entry_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$entry_panel/text-t.txt")) {
+ if (isset($entry_panel_text_t)) {
echo "color: $entry_panel_text_t;";
}
- if (file_exists("data/panels/$entry_panel/border.txt")) {
+ if (isset($entry_panel_border)) {
echo "border-color: $entry_panel_border;";
}
- echo '">';
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t) or isset($entry_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
else {
- echo '<div id="panel_title" style="';
+ echo '<div id="panel_title"';
+
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t) or isset($entry_panel_text_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ if (isset($entry_panel_bgcolor_t)) {
echo "background-color: $entry_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$entry_panel/text-t.txt")) {
+ if (isset($entry_panel_text_t)) {
echo "color: $entry_panel_text_t;";
}
- if (file_exists("data/panels/$entry_panel/border.txt")) {
+ if (isset($entry_panel_border)) {
echo "border-color: $entry_panel_border;";
}
- echo '">';
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t) or isset($entry_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
readfile("data/panels/$entry_panel/title.txt");
@@ -3527,21 +4077,29 @@ foreach ($disp as $d) {
echo '</div>';
- echo '<div id="panel_body" style="';
+ echo '<div id="panel_body"';
- if (file_exists("data/panels/$entry_panel/bgcolor-c.txt")) {
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_c) or isset($entry_panel_text_c)) {
+ echo ' style="';
+ }
+
+ if (isset($entry_panel_bgcolor_c)) {
echo "background-color: $entry_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$entry_panel/text-c.txt")) {
+ if (isset($entry_panel_text_c)) {
echo "color: $entry_panel_text_c;";
}
- if (file_exists("data/panels/$entry_panel/border.txt")) {
+ if (isset($entry_panel_border)) {
echo "border-color: $entry_panel_border;";
}
- echo '">';
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_c) or isset($entry_panel_text_c)) {
+ echo '"';
+ }
+
+ echo '>';
}
if (file_exists("data/panels/$entry_panel/free.txt")) {
@@ -3554,43 +4112,67 @@ foreach ($disp as $d) {
if (file_exists("data/round.txt") and !file_exists("data/panels/$entry_panel/free.txt")) {
- echo '<b class="rbbottom"><b class="rb4b" style="';
+ echo '<b class="rbbottom"><b class="rb4b"';
- if (file_exists("data/panels/$entry_panel/bgcolor-c.txt")) {
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($entry_panel_bgcolor_c)) {
echo "background-color: $entry_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$entry_panel/border.txt")) {
+ if (isset($entry_panel_border)) {
echo "border-color: $entry_panel_border;";
}
- echo '"></b><b class="rb3b" style="';
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$entry_panel/bgcolor-c.txt")) {
+ echo '></b><b class="rb3b"';
+
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($entry_panel_bgcolor_c)) {
echo "background-color: $entry_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$entry_panel/border.txt")) {
+ if (isset($entry_panel_border)) {
echo "border-color: $entry_panel_border;";
}
- echo '"></b><b class="rb2b" style="';
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$entry_panel/bgcolor-c.txt")) {
+ echo '></b><b class="rb2b"';
+
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($entry_panel_bgcolor_c)) {
echo "background-color: $entry_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$entry_panel/border.txt")) {
+ if (isset($entry_panel_border)) {
echo "border-color: $entry_panel_border;";
}
- echo '"></b><b class="rb1b" style="';
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$entry_panel/border.txt")) {
- echo "background-color: $entry_panel_border;";
+ echo '></b><b class="rb1b"';
+
+ if (isset($entry_panel_border)) {
+ echo " style=\"background-color: $entry_panel_border;\"";
}
- echo '"></b></b>';
+ echo '></b></b>';
}
}
}
@@ -3615,7 +4197,7 @@ foreach ($disp as $d) {
echo '</div><div id=panel_body>';
if (file_exists("data/items/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
- echo "This entry is password protected. If you know the magic word,click <a href=passwd.php?entry=$d&show=album>here</a> to enter it.";
+ echo "This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$d&show=album>here</a> to enter it.";
}
else {
if (file_exists("images/$d/thumbnails")) {
@@ -3770,7 +4352,7 @@ foreach ($disp as $d) {
echo "</div><div id=panel_body>";
if (file_exists("data/items/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
- echo "This entry is password protected. If you know the magic word,click <a href=passwd.php?entry=$d&show=filedrop>here</a> to enter it.";
+ echo "This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$d&show=filedrop>here</a> to enter it.";
}
else {
@@ -3854,7 +4436,7 @@ foreach ($disp as $d) {
echo '</div><div id=panel_body>';
if (file_exists("data/items/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
- echo "This entry is password protected. If you know the magic word,click <a href=passwd.php?entry=$d&show=pdf>here</a> to enter it.";
+ echo "This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$d&show=pdf>here</a> to enter it.";
}
else {
@@ -4204,7 +4786,7 @@ foreach ($disp as $d) {
echo '<font style="font-size: 12px;"><b>Add Comment</b></font>';
if (file_exists("data/items/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
- echo "<p>This entry is password protected. If you know the magic word,click <a href=passwd.php?entry=$d&show=comments>here</a> to enter it.</p>";
+ echo "<p>This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$d&show=comments>here</a> to enter it.</p>";
}
else {
$captcha_rand = str_rand(7);
@@ -4911,9 +5493,6 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
}
}
-?>
-
-<?php
if (file_exists("data/bb.txt") and file_exists("data/bb-stats.txt")) {
if (file_exists("data/round.txt")) {
@@ -4942,7 +5521,6 @@ if (file_exists("data/bb.txt") and file_exists("data/bb-stats.txt")) {
}
}
-
if (file_exists("data/items")) {
if ($dh_mempost_list = opendir("data/items")) {
while (($entry_mempost_list = readdir($dh_mempost_list)) !== false) {
@@ -5001,9 +5579,6 @@ if (file_exists("data/bb.txt") and file_exists("data/bb-stats.txt")) {
echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
}
}
-?>
-
-<?php
if ($count_grand > 0) {
@@ -5030,6 +5605,7 @@ if ($count_grand > 0) {
}
}
+
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
if (file_exists("data/round.txt")) {
@@ -5055,9 +5631,7 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
}
}
-?>
-<?php
if (file_exists("data/categories")) {
if ($dh_categories = opendir("data/categories")) {
while (($entry_categories = readdir($dh_categories)) !== false) {
@@ -5158,10 +5732,6 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
}
}
-?>
-
-<?php
-
if (($count_latest > 0) and ($count_latest > $increase) and (!file_exists("data/xrecent.txt") or isset($_SESSION['logged_in']))) {
if (file_exists("data/round.txt")) {
@@ -5198,10 +5768,6 @@ if (($count_latest > 0) and ($count_latest > $increase) and (!file_exists("data/
}
}
-?>
-
-<?php
-
$count_latest_comments = 0;
$cmonth = date("Ym",time() + $offset);
@@ -5264,10 +5830,6 @@ if (($count_latest_comments > 0) and ($count_latest > $increase) and (!file_exis
}
}
-?>
-
-<?php
-
if ($count_albums > 0) {
if (file_exists("data/round.txt")) {
@@ -5291,10 +5853,6 @@ if ($count_albums > 0) {
}
}
-?>
-
-<?php
-
if (!file_exists("data/xrand.txt")) {
shuffle($random);
@@ -5382,10 +5940,6 @@ if (($count_archives > 0) and ($count_latest > $increase) and ($count_latest > 0
}
}
-?>
-
-<?php
-
if ($count_right_panels > 0) {
foreach ($right_panels as $right_panel) {
@@ -5439,74 +5993,114 @@ if ($count_right_panels > 0) {
if (file_exists("data/round.txt")) {
- echo '<b class="rbright"><b class="rb1t" style="';
+ echo '<b class="rbtop"><b class="rb1t"';
- if (file_exists("data/panels/$right_panel/border.txt")) {
- echo "background-color: $right_panel_border;";
+ if (isset($right_panel_border)) {
+ echo " style=\"background-color: $right_panel_border;\"";
}
- echo '"></b><b class="rb2t" style="';
+ echo '></b><b class="rb2t"';
+
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ if (isset($right_panel_bgcolor_t)) {
echo "background-color: $right_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$right_panel/border.txt")) {
+ if (isset($right_panel_border)) {
echo "border-color: $right_panel_border;";
}
- echo '"></b><b class="rb3t" style="';
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3t"';
- if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t)) {
+ echo ' style="';
+ }
+
+ if (isset($right_panel_bgcolor_t)) {
echo "background-color: $right_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$right_panel/border.txt")) {
+ if (isset($right_panel_border)) {
echo "border-color: $right_panel_border;";
}
- echo '"></b><b class="rb4t" style="';
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb4t"';
+
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ if (isset($right_panel_bgcolor_t)) {
echo "background-color: $right_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$right_panel/border.txt")) {
+ if (isset($right_panel_border)) {
echo "border-color: $right_panel_border;";
}
- echo '"></b></b><div class="xtitle" style="';
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b></b><div class="xtitle"';
- if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t) or isset($right_panel_text_t)) {
+ echo ' style="';
+ }
+
+ if (isset($right_panel_bgcolor_t)) {
echo "background-color: $right_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$right_panel/text-t.txt")) {
+ if (isset($right_panel_text_t)) {
echo "color: $right_panel_text_t;";
}
- if (file_exists("data/panels/$right_panel/border.txt")) {
+ if (isset($right_panel_border)) {
echo "border-color: $right_panel_border;";
}
- echo '">';
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t) or isset($right_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
else {
- echo '<div id="panel_title" style="';
+ echo '<div id="panel_title"';
+
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t) or isset($right_panel_text_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ if (isset($right_panel_bgcolor_t)) {
echo "background-color: $right_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$right_panel/text-t.txt")) {
+ if (isset($right_panel_text_t)) {
echo "color: $right_panel_text_t;";
}
- if (file_exists("data/panels/$right_panel/border.txt")) {
+ if (isset($right_panel_border)) {
echo "border-color: $right_panel_border;";
}
- echo '">';
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t) or isset($right_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
readfile("data/panels/$right_panel/title.txt");
@@ -5522,21 +6116,29 @@ if ($count_right_panels > 0) {
echo '</div>';
- echo '<div id="panel_body" style="';
+ echo '<div id="panel_body"';
- if (file_exists("data/panels/$right_panel/bgcolor-c.txt")) {
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_c) or isset($right_panel_text_c)) {
+ echo ' style="';
+ }
+
+ if (isset($right_panel_bgcolor_c)) {
echo "background-color: $right_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$right_panel/text-c.txt")) {
+ if (isset($right_panel_text_c)) {
echo "color: $right_panel_text_c;";
}
- if (file_exists("data/panels/$right_panel/border.txt")) {
+ if (isset($right_panel_border)) {
echo "border-color: $right_panel_border;";
}
- echo '">';
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_c) or isset($right_panel_text_c)) {
+ echo '"';
+ }
+
+ echo '>';
}
if (file_exists("data/panels/$right_panel/free.txt")) {
@@ -5549,51 +6151,71 @@ if ($count_right_panels > 0) {
if (file_exists("data/round.txt") and !file_exists("data/panels/$right_panel/free.txt")) {
- echo '<b class="rbbottom"><b class="rb4b" style="';
+ echo '<b class="rbbottom"><b class="rb4b"';
- if (file_exists("data/panels/$right_panel/bgcolor-c.txt")) {
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($right_panel_bgcolor_c)) {
echo "background-color: $right_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$right_panel/border.txt")) {
+ if (isset($right_panel_border)) {
echo "border-color: $right_panel_border;";
}
- echo '"></b><b class="rb3b" style="';
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_c)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3b"';
- if (file_exists("data/panels/$right_panel/bgcolor-c.txt")) {
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($right_panel_bgcolor_c)) {
echo "background-color: $right_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$right_panel/border.txt")) {
+ if (isset($right_panel_border)) {
echo "border-color: $right_panel_border;";
}
- echo '"></b><b class="rb2b" style="';
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_c)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb2b"';
- if (file_exists("data/panels/$right_panel/bgcolor-c.txt")) {
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($right_panel_bgcolor_c)) {
echo "background-color: $right_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$right_panel/border.txt")) {
+ if (isset($right_panel_border)) {
echo "border-color: $right_panel_border;";
}
- echo '"></b><b class="rb1b" style="';
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_c)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb1b"';
- if (file_exists("data/panels/$right_panel/border.txt")) {
- echo "background-color: $right_panel_border;";
+ if (isset($right_panel_border)) {
+ echo " style=\"background-color: $right_panel_border;\"";
}
- echo '"></b></b>';
+ echo '></b></b>';
}
}
}
-?>
-
-<?php
-
if ($count_latest > 0) {
echo '<table border="0" cellspacing="2" cellpadding="0" width="100%">';
echo '<tr><td align="center"><a target="_button" href="http://maj.sourceforge.net/"><img src="images/button.maj.png" border="0" width="80" height="15"></a></td></tr>';
diff --git a/rel.txt b/rel.txt
index 6b17962..61d076e 100644
--- a/rel.txt
+++ b/rel.txt
@@ -1 +1 @@
-20081228
\ No newline at end of file
+20081230
\ No newline at end of file
tree bcaa744236c2844a7b59cae2e40255b942192a39
parent 55f358ed1346ea52e5f042ace6de7d7f34495275
author Engels Antonio <engels@majcms.org> 1277314207 +0800
committer Engels Antonio <engels@majcms.org> 1277314207 +0800
maj-1.0-20081230-bb.zip
diff --git a/index.php b/index.php
index 26c48d1..4f16022 100644
--- a/index.php
+++ b/index.php
@@ -728,10 +728,6 @@ if (file_exists("data/comments/pending") and file_exists("data/xscreen.txt")) {
}
}
-?>
-
-<?php
-
if (isset($req_entry) and !empty($req_entry) and file_exists("data/items/$req_entry")) {
$private_categories = "0";
@@ -1140,7 +1136,7 @@ a.navlink:link,a.navlink:visited,a.navlink:active,a.navlink:hover {
}
#panel_free {
- padding: 0px 5px 0px 5px;
+ padding: 0px 0px 0px 0px;
margin: 0px 0px 10px 0px;
}
@@ -1515,12 +1511,10 @@ include("data/profile.php");
</div>
<?php
- if (file_exists("data/round.txt")) {
- echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
- }
-?>
-<?php
+if (file_exists("data/round.txt")) {
+ echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+}
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">';
@@ -1579,12 +1573,10 @@ else {
</div>
<?php
- if (file_exists("data/round.txt")) {
- echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
- }
-?>
-<?php
+if (file_exists("data/round.txt")) {
+ echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+}
if (file_exists("data/sticky")) {
@@ -1661,10 +1653,6 @@ if (file_exists("data/sticky")) {
}
}
-?>
-
-<?php
-
if (file_exists("data/panels")) {
if ($dh_panels = opendir("data/panels")) {
@@ -1789,74 +1777,114 @@ if (file_exists("data/panels")) {
if (file_exists("data/round.txt")) {
- echo '<b class="rbtop"><b class="rb1t" style="';
+ echo '<b class="rbtop"><b class="rb1t"';
- if (file_exists("data/panels/$left_panel/border.txt")) {
- echo "background-color: $left_panel_border;";
+ if (isset($left_panel_border)) {
+ echo " style=\"background-color: $left_panel_border;\"";
}
- echo '"></b><b class="rb2t" style="';
+ echo '></b><b class="rb2t"';
- if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ echo ' style="';
+ }
+
+ if (isset($left_panel_bgcolor_t)) {
echo "background-color: $left_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$left_panel/border.txt")) {
+ if (isset($left_panel_border)) {
echo "border-color: $left_panel_border;";
}
- echo '"></b><b class="rb3t" style="';
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3t"';
+
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ if (isset($left_panel_bgcolor_t)) {
echo "background-color: $left_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$left_panel/border.txt")) {
+ if (isset($left_panel_border)) {
echo "border-color: $left_panel_border;";
}
- echo '"></b><b class="rb4t" style="';
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb4t"';
+
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ if (isset($left_panel_bgcolor_t)) {
echo "background-color: $left_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$left_panel/border.txt")) {
+ if (isset($left_panel_border)) {
echo "border-color: $left_panel_border;";
}
- echo '"></b></b><div class="xtitle" style="';
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b></b><div class="xtitle"';
- if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t) or isset($left_panel_text_t)) {
+ echo ' style="';
+ }
+
+ if (isset($left_panel_bgcolor_t)) {
echo "background-color: $left_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$left_panel/text-t.txt")) {
+ if (isset($left_panel_text_t)) {
echo "color: $left_panel_text_t;";
}
- if (file_exists("data/panels/$left_panel/border.txt")) {
+ if (isset($left_panel_border)) {
echo "border-color: $left_panel_border;";
}
- echo '">';
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t) or isset($left_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
else {
- echo '<div id="panel_title" style="';
+ echo '<div id="panel_title"';
- if (file_exists("data/panels/$left_panel/bgcolor-t.txt")) {
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t) or isset($left_panel_text_t)) {
+ echo ' style="';
+ }
+
+ if (isset($left_panel_bgcolor_t)) {
echo "background-color: $left_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$left_panel/text-t.txt")) {
+ if (isset($left_panel_text_t)) {
echo "color: $left_panel_text_t;";
}
- if (file_exists("data/panels/$left_panel/border.txt")) {
+ if (isset($left_panel_border)) {
echo "border-color: $left_panel_border;";
}
- echo '">';
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_t) or isset($left_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
readfile("data/panels/$left_panel/title.txt");
@@ -1872,21 +1900,29 @@ if (file_exists("data/panels")) {
echo '</div>';
- echo '<div id="panel_body" style="';
+ echo '<div id="panel_body"';
- if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_c) or isset($left_panel_text_c)) {
+ echo ' style="';
+ }
+
+ if (isset($left_panel_bgcolor_c)) {
echo "background-color: $left_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$left_panel/text-c.txt")) {
+ if (isset($left_panel_text_c)) {
echo "color: $left_panel_text_c;";
}
- if (file_exists("data/panels/$left_panel/border.txt")) {
+ if (isset($left_panel_border)) {
echo "border-color: $left_panel_border;";
}
- echo '">';
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_c) or isset($left_panel_text_c)) {
+ echo '"';
+ }
+
+ echo '>';
}
if (file_exists("data/panels/$left_panel/free.txt")) {
@@ -1899,43 +1935,67 @@ if (file_exists("data/panels")) {
if (file_exists("data/round.txt") and !file_exists("data/panels/$left_panel/free.txt")) {
- echo '<b class="rbbottom"><b class="rb4b" style="';
+ echo '<b class="rbbottom"><b class="rb4b"';
- if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($left_panel_bgcolor_c)) {
echo "background-color: $left_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$left_panel/border.txt")) {
+ if (isset($left_panel_border)) {
echo "border-color: $left_panel_border;";
}
- echo '"></b><b class="rb3b" style="';
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
+ echo '></b><b class="rb3b"';
+
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($left_panel_bgcolor_c)) {
echo "background-color: $left_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$left_panel/border.txt")) {
+ if (isset($left_panel_border)) {
echo "border-color: $left_panel_border;";
}
- echo '"></b><b class="rb2b" style="';
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$left_panel/bgcolor-c.txt")) {
+ echo '></b><b class="rb2b"';
+
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($left_panel_bgcolor_c)) {
echo "background-color: $left_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$left_panel/border.txt")) {
+ if (isset($left_panel_border)) {
echo "border-color: $left_panel_border;";
}
- echo '"></b><b class="rb1b" style="';
+ if (isset($left_panel_border) or isset($left_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$left_panel/border.txt")) {
- echo "background-color: $left_panel_border;";
+ echo '></b><b class="rb1b"';
+
+ if (isset($left_panel_border)) {
+ echo " style=\"background-color: $left_panel_border;\"";
}
- echo '"></b></b>';
+ echo '></b></b>';
}
}
}
@@ -2000,74 +2060,114 @@ if ($count_top_panels > 0) {
if (file_exists("data/round.txt")) {
- echo '<b class="rbtop"><b class="rb1t" style="';
+ echo '<b class="rbtop"><b class="rb1t"';
- if (file_exists("data/panels/$top_panel/border.txt")) {
- echo "background-color: $top_panel_border;";
+ if (isset($top_panel_border)) {
+ echo " style=\"background-color: $top_panel_border;\"";
}
- echo '"></b><b class="rb2t" style="';
+ echo '></b><b class="rb2t"';
+
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ if (isset($top_panel_bgcolor_t)) {
echo "background-color: $top_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$top_panel/border.txt")) {
+ if (isset($top_panel_border)) {
echo "border-color: $top_panel_border;";
}
- echo '"></b><b class="rb3t" style="';
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3t"';
- if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ echo ' style="';
+ }
+
+ if (isset($top_panel_bgcolor_t)) {
echo "background-color: $top_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$top_panel/border.txt")) {
+ if (isset($top_panel_border)) {
echo "border-color: $top_panel_border;";
}
- echo '"></b><b class="rb4t" style="';
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb4t"';
+
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ if (isset($top_panel_bgcolor_t)) {
echo "background-color: $top_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$top_panel/border.txt")) {
+ if (isset($top_panel_border)) {
echo "border-color: $top_panel_border;";
}
- echo '"></b></b><div class="xtitle" style="';
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ echo '></b></b><div class="xtitle"';
+
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t) or isset($top_panel_text_t)) {
+ echo ' style="';
+ }
+
+ if (isset($top_panel_bgcolor_t)) {
echo "background-color: $top_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$top_panel/text-t.txt")) {
+ if (isset($top_panel_text_t)) {
echo "color: $top_panel_text_t;";
}
- if (file_exists("data/panels/$top_panel/border.txt")) {
+ if (isset($top_panel_border)) {
echo "border-color: $top_panel_border;";
}
- echo '">';
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t) or isset($top_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
else {
- echo '<div id="panel_title" style="';
+ echo '<div id="panel_title"';
+
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t) or isset($top_panel_text_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$top_panel/bgcolor-t.txt")) {
+ if (isset($top_panel_bgcolor_t)) {
echo "background-color: $top_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$top_panel/text-t.txt")) {
+ if (isset($top_panel_text_t)) {
echo "color: $top_panel_text_t;";
}
- if (file_exists("data/panels/$top_panel/border.txt")) {
+ if (isset($top_panel_border)) {
echo "border-color: $top_panel_border;";
}
- echo '">';
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_t) or isset($top_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
readfile("data/panels/$top_panel/title.txt");
@@ -2083,21 +2183,29 @@ if ($count_top_panels > 0) {
echo '</div>';
- echo '<div id="panel_body" style="';
+ echo '<div id="panel_body"';
- if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_c) or isset($top_panel_text_c)) {
+ echo ' style="';
+ }
+
+ if (isset($top_panel_bgcolor_c)) {
echo "background-color: $top_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$top_panel/text-c.txt")) {
+ if (isset($top_panel_text_c)) {
echo "color: $top_panel_text_c;";
}
- if (file_exists("data/panels/$top_panel/border.txt")) {
+ if (isset($top_panel_border)) {
echo "border-color: $top_panel_border;";
}
- echo '">';
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_c) or isset($top_panel_text_c)) {
+ echo '"';
+ }
+
+ echo '>';
}
if (file_exists("data/panels/$top_panel/free.txt")) {
@@ -2110,51 +2218,71 @@ if ($count_top_panels > 0) {
if (file_exists("data/round.txt") and !file_exists("data/panels/$top_panel/free.txt")) {
- echo '<b class="rbbottom"><b class="rb4b" style="';
+ echo '<b class="rbbottom"><b class="rb4b"';
- if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($top_panel_bgcolor_c)) {
echo "background-color: $top_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$top_panel/border.txt")) {
+ if (isset($top_panel_border)) {
echo "border-color: $top_panel_border;";
}
- echo '"></b><b class="rb3b" style="';
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3b"';
- if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($top_panel_bgcolor_c)) {
echo "background-color: $top_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$top_panel/border.txt")) {
+ if (isset($top_panel_border)) {
echo "border-color: $top_panel_border;";
}
- echo '"></b><b class="rb2b" style="';
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$top_panel/bgcolor-c.txt")) {
+ echo '></b><b class="rb2b"';
+
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($top_panel_bgcolor_c)) {
echo "background-color: $top_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$top_panel/border.txt")) {
+ if (isset($top_panel_border)) {
echo "border-color: $top_panel_border;";
}
- echo '"></b><b class="rb1b" style="';
+ if (isset($top_panel_border) or isset($top_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$top_panel/border.txt")) {
- echo "background-color: $top_panel_border;";
+ echo '></b><b class="rb1b"';
+
+ if (isset($top_panel_border)) {
+ echo " style=\"background-color: $top_panel_border;\"";
}
- echo '"></b></b>';
+ echo '></b></b>';
}
}
}
-?>
-
-<?php
-
// clean-up (start)
if (file_exists("data/albums")) {
@@ -2403,10 +2531,6 @@ reset($archives);
$count_archives = count($archives);
-?>
-
-<?php
-
if (file_exists("data/bb.txt") and file_exists("data/bb-summary.txt") and !file_exists("data/lite.txt") and !isset($req_entry) and !isset($req_category) and !isset($_REQUEST['start']) and !isset($req_author) and !isset($req_archive) and !isset($req_find)) {
if ($count_latest > 0) {
@@ -2504,10 +2628,6 @@ if (file_exists("data/bb.txt") and file_exists("data/bb-summary.txt") and !file_
}
-?>
-
-<?php
-
if ($count_center_panels > 0) {
foreach ($center_panels as $center_panel) {
@@ -2561,74 +2681,114 @@ if ($count_center_panels > 0) {
if (file_exists("data/round.txt")) {
- echo '<b class="rbcenter"><b class="rb1t" style="';
+ echo '<b class="rbtop"><b class="rb1t"';
- if (file_exists("data/panels/$center_panel/border.txt")) {
- echo "background-color: $center_panel_border;";
+ if (isset($center_panel_border)) {
+ echo " style=\"background-color: $center_panel_border;\"";
}
- echo '"></b><b class="rb2t" style="';
+ echo '></b><b class="rb2t"';
- if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ echo ' style="';
+ }
+
+ if (isset($center_panel_bgcolor_t)) {
echo "background-color: $center_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$center_panel/border.txt")) {
+ if (isset($center_panel_border)) {
echo "border-color: $center_panel_border;";
}
- echo '"></b><b class="rb3t" style="';
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3t"';
+
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ if (isset($center_panel_bgcolor_t)) {
echo "background-color: $center_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$center_panel/border.txt")) {
+ if (isset($center_panel_border)) {
echo "border-color: $center_panel_border;";
}
- echo '"></b><b class="rb4t" style="';
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb4t"';
+
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ if (isset($center_panel_bgcolor_t)) {
echo "background-color: $center_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$center_panel/border.txt")) {
+ if (isset($center_panel_border)) {
echo "border-color: $center_panel_border;";
}
- echo '"></b></b><div class="xtitle" style="';
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ echo '></b></b><div class="xtitle"';
+
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t) or isset($center_panel_text_t)) {
+ echo ' style="';
+ }
+
+ if (isset($center_panel_bgcolor_t)) {
echo "background-color: $center_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$center_panel/text-t.txt")) {
+ if (isset($center_panel_text_t)) {
echo "color: $center_panel_text_t;";
}
- if (file_exists("data/panels/$center_panel/border.txt")) {
+ if (isset($center_panel_border)) {
echo "border-color: $center_panel_border;";
}
- echo '">';
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t) or isset($center_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
else {
- echo '<div id="panel_title" style="';
+ echo '<div id="panel_title"';
+
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t) or isset($center_panel_text_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$center_panel/bgcolor-t.txt")) {
+ if (isset($center_panel_bgcolor_t)) {
echo "background-color: $center_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$center_panel/text-t.txt")) {
+ if (isset($center_panel_text_t)) {
echo "color: $center_panel_text_t;";
}
- if (file_exists("data/panels/$center_panel/border.txt")) {
+ if (isset($center_panel_border)) {
echo "border-color: $center_panel_border;";
}
- echo '">';
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_t) or isset($center_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
readfile("data/panels/$center_panel/title.txt");
@@ -2644,21 +2804,29 @@ if ($count_center_panels > 0) {
echo '</div>';
- echo '<div id="panel_body" style="';
+ echo '<div id="panel_body"';
- if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_c) or isset($center_panel_text_c)) {
+ echo ' style="';
+ }
+
+ if (isset($center_panel_bgcolor_c)) {
echo "background-color: $center_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$center_panel/text-c.txt")) {
+ if (isset($center_panel_text_c)) {
echo "color: $center_panel_text_c;";
}
- if (file_exists("data/panels/$center_panel/border.txt")) {
+ if (isset($center_panel_border)) {
echo "border-color: $center_panel_border;";
}
- echo '">';
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_c) or isset($center_panel_text_c)) {
+ echo '"';
+ }
+
+ echo '>';
}
if (file_exists("data/panels/$center_panel/free.txt")) {
@@ -2671,51 +2839,71 @@ if ($count_center_panels > 0) {
if (file_exists("data/round.txt") and !file_exists("data/panels/$center_panel/free.txt")) {
- echo '<b class="rbbottom"><b class="rb4b" style="';
+ echo '<b class="rbbottom"><b class="rb4b"';
- if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($center_panel_bgcolor_c)) {
echo "background-color: $center_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$center_panel/border.txt")) {
+ if (isset($center_panel_border)) {
echo "border-color: $center_panel_border;";
}
- echo '"></b><b class="rb3b" style="';
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3b"';
- if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($center_panel_bgcolor_c)) {
echo "background-color: $center_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$center_panel/border.txt")) {
+ if (isset($center_panel_border)) {
echo "border-color: $center_panel_border;";
}
- echo '"></b><b class="rb2b" style="';
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$center_panel/bgcolor-c.txt")) {
+ echo '></b><b class="rb2b"';
+
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($center_panel_bgcolor_c)) {
echo "background-color: $center_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$center_panel/border.txt")) {
+ if (isset($center_panel_border)) {
echo "border-color: $center_panel_border;";
}
- echo '"></b><b class="rb1b" style="';
+ if (isset($center_panel_border) or isset($center_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$center_panel/border.txt")) {
- echo "background-color: $center_panel_border;";
+ echo '></b><b class="rb1b"';
+
+ if (isset($center_panel_border)) {
+ echo " style=\"background-color: $center_panel_border;\"";
}
- echo '"></b></b>';
+ echo '></b></b>';
}
}
}
-?>
-
-<?php
-
if (isset($req_category) and !empty($req_category)) {
if (file_exists("data/categories/$req_category/book.txt")) {
@@ -2745,39 +2933,224 @@ if ($count_items == 0) {
if (count($_GET) > 0) {
echo "The entry you are looking for does not exist or is off limits to you.";
}
- else {
- echo "Login required. Entries are off limits without proper credentials.";
+ else {
+ echo "Login required. Entries are off limits without proper credentials.";
+ }
+ }
+
+ echo '</td></tr></table></div>';
+
+ if (file_exists("data/round.txt")) {
+ echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+ }
+
+ echo "</td></tr></table>";
+}
+
+$start = $_REQUEST['start'];
+
+if (!isset($_REQUEST['start']) or empty($_REQUEST['start'])) {
+ $start = 0;
+}
+
+$end = $start + $increase;
+
+$disp = array_slice($items,$start,$increase);
+
+foreach ($disp as $d) {
+
+ echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\"><tr><td width=\"$wmain\">";
+
+ if (file_exists("data/items/$d/border.txt")) {
+ $d_border = file_get_contents("data/items/$d/border.txt");
+ }
+ else {
+ if (isset($d_border)) {
+ unset($d_border);
+ }
+ }
+
+ if (file_exists("data/items/$d/bgcolor-t.txt")) {
+ $d_bgcolor_t = file_get_contents("data/items/$d/bgcolor-t.txt");
+ }
+ else {
+ if (isset($d_bgcolor_t)) {
+ unset($d_bgcolor_t);
+ }
+ }
+
+ if (file_exists("data/items/$d/bgcolor-b.txt")) {
+ $d_bgcolor_b = file_get_contents("data/items/$d/bgcolor-b.txt");
+ }
+ else {
+ if (isset($d_bgcolor_b)) {
+ unset($d_bgcolor_b);
+ }
+ }
+
+ if (file_exists("data/items/$d/bgcolor-c.txt")) {
+ $d_bgcolor_c = file_get_contents("data/items/$d/bgcolor-c.txt");
+ }
+ else {
+ if (isset($d_bgcolor_c)) {
+ unset($d_bgcolor_c);
+ }
+ }
+
+ if (file_exists("data/items/$d/bgcolor-f.txt")) {
+ $d_bgcolor_f = file_get_contents("data/items/$d/bgcolor-f.txt");
+ }
+ else {
+ if (isset($d_bgcolor_f)) {
+ unset($d_bgcolor_f);
+ }
+ }
+
+ if (file_exists("data/items/$d/text-t.txt")) {
+ $d_text_t = file_get_contents("data/items/$d/text-t.txt");
+ }
+ else {
+ if (isset($d_text_t)) {
+ unset($d_text_t);
+ }
+ }
+
+ if (file_exists("data/items/$d/text-b.txt")) {
+ $d_text_b = file_get_contents("data/items/$d/text-b.txt");
+ }
+ else {
+ if (isset($d_text_b)) {
+ unset($d_text_b);
+ }
+ }
+
+ if (file_exists("data/items/$d/text-c.txt")) {
+ $d_text_c = file_get_contents("data/items/$d/text-c.txt");
+ }
+ else {
+ if (isset($d_text_c)) {
+ unset($d_text_c);
+ }
+ }
+
+ if (file_exists("data/items/$d/text-f.txt")) {
+ $d_text_f = file_get_contents("data/items/$d/text-f.txt");
+ }
+ else {
+ if (isset($d_text_f)) {
+ unset($d_text_f);
+ }
+ }
+
+ if (file_exists("data/round.txt")) {
+ echo '<b class="rbtop"><b class="rb1t"';
+
+ if (isset($d_border)) {
+ echo " style=\"background-color: $d_border;\"";
+ }
+
+ echo '></b><b class="rb2t"';
+
+ if (isset($d_border) or isset($d_bgcolor_t)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_t)) {
+ echo "background-color: $d_bgcolor_t;";
+ }
+
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
+
+ if (isset($d_border) or isset($d_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3t"';
+
+ if (isset($d_border) or isset($d_bgcolor_t)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_t)) {
+ echo "background-color: $d_bgcolor_t;";
+ }
+
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
+
+ if (isset($d_border) or isset($d_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb4t"';
+
+ if (isset($d_border) or isset($d_bgcolor_t)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_t)) {
+ echo "background-color: $d_bgcolor_t;";
+ }
+
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
+
+ if (isset($d_border) or isset($d_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b></b><div class="xtitle"';
+
+ if (isset($d_border) or isset($d_bgcolor_t) or isset($d_text_t)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_t)) {
+ echo "background-color: $d_bgcolor_t;";
+ }
+
+ if (isset($d_text_t)) {
+ echo "color: $d_text_t;";
}
- }
- echo '</td></tr></table></div>';
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
- if (file_exists("data/round.txt")) {
- echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
- }
+ if (isset($d_border) or isset($d_bgcolor_t) or isset($d_text_t)) {
+ echo '"';
+ }
- echo "</td></tr></table>";
-}
+ echo '>';
+ }
+ else {
+ echo '<div id="panel_title"';
-$start = $_REQUEST['start'];
+ if (isset($d_border) or isset($d_bgcolor_t) or isset($d_text_t)) {
+ echo ' style="';
+ }
-if (!isset($_REQUEST['start']) or empty($_REQUEST['start'])) {
- $start = 0;
-}
+ if (isset($d_bgcolor_t)) {
+ echo "background-color: $d_bgcolor_t;";
+ }
-$end = $start + $increase;
-
-$disp = array_slice($items,$start,$increase);
+ if (isset($d_text_t)) {
+ echo "color: $d_text_t;";
+ }
-foreach ($disp as $d) {
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
- echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\"><tr><td width=\"$wmain\">";
+ if (isset($d_border) or isset($d_bgcolor_t) or isset($d_text_t)) {
+ echo '"';
+ }
- 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\">";
- }
- else {
- echo "<div id=\"panel_title\">";
+ echo '>';
}
readfile("data/items/$d/title.txt");
@@ -2865,7 +3238,31 @@ foreach ($disp as $d) {
}
- echo "</div><div id=\"panel_entry_body\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
+ echo "</div><div id=\"panel_entry_body\"";
+
+ if (isset($d_border) or isset($d_bgcolor_b) or isset($d_text_b)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_b)) {
+ echo "background-color: $d_bgcolor_b;";
+ }
+
+ if (isset($d_text_b)) {
+ echo "color: $d_text_b;";
+ }
+
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
+
+ if (isset($d_border) or isset($d_bgcolor_b) or isset($d_text_b)) {
+ echo '"';
+ }
+
+ echo '>';
+
+ echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
if (file_exists("data/bb.txt") and file_exists("data/avatar.txt") and file_exists("data/items/$d/author.txt")) {
@@ -3093,8 +3490,12 @@ foreach ($disp as $d) {
echo "</font><font style=\"font-size: 5px;\"><br><br></font>";
+ if (isset($d_text_b)) {
+ echo "<font style=\"color: $d_text_b;\">";
+ }
+
if (file_exists("data/items/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
- echo "This entry is password protected. If you know the magic word,click <a href=\"passwd.php?entry=$d\">here</a> to enter it.";
+ echo "This entry is password protected. If you know the magic word, click <a href=\"passwd.php?entry=$d\">here</a> to enter it.";
}
else {
$entry_body = file_get_contents("data/items/$d/body.txt");
@@ -3123,6 +3524,10 @@ foreach ($disp as $d) {
echo "<br><br>--<br>$sig";
}
+ if (isset($d_text_b)) {
+ echo "</font>";
+ }
+
echo "</td></tr></table>";
if (file_exists("data/round.txt")) {
@@ -3160,12 +3565,56 @@ foreach ($disp as $d) {
$category_list = $category_list . " | <a href=\"index.php?category=$filed_under\">$filed_under</a>";
}
- echo "<div id=\"panel_category\">$category_list</div>";
+ echo "<div id=\"panel_category\"";
+
+ if (isset($d_border) or isset($d_bgcolor_c) or isset($d_text_c)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_c)) {
+ echo "background-color: $d_bgcolor_c;";
+ }
+
+ if (isset($d_text_c)) {
+ echo "color: $d_text_c;";
+ }
+
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
+
+ if (isset($d_border) or isset($d_bgcolor_c) or isset($d_text_c)) {
+ echo '"';
+ }
+
+ echo ">$category_list</div>";
}
unset($entry_categories);
}
- echo "<div id=\"panel_footer\">";
+ echo "<div id=\"panel_footer\"";
+
+ if (isset($d_border) or isset($d_bgcolor_f) or isset($d_text_f)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_f)) {
+ echo "background-color: $d_bgcolor_f;";
+ }
+
+ if (isset($d_text_f)) {
+ echo "color: $d_text_f;";
+ }
+
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
+
+ if (isset($d_border) or isset($d_bgcolor_f) or isset($d_text_f)) {
+ echo '"';
+ }
+
+ echo '>';
if (!file_exists("data/nocomment.txt") or (file_exists("data/memcomment.txt") and isset($_SESSION['logged_in']))) {
@@ -3386,7 +3835,68 @@ foreach ($disp as $d) {
echo "</div>";
if (file_exists("data/round.txt")) {
- echo "<b class=\"rbbottom\"><b class=\"rb4e\"></b><b class=\"rb3e\"></b><b class=\"rb2e\"></b><b class=\"rb1e\"></b></b>";
+
+ echo '<b class="rbbottom"><b class="rb4e"';
+
+ if (isset($d_border) or isset($d_bgcolor_f)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_f)) {
+ echo "background-color: $d_bgcolor_f;";
+ }
+
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
+
+ if (isset($d_border) or isset($d_bgcolor_f)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3e"';
+
+ if (isset($d_border) or isset($d_bgcolor_f)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_f)) {
+ echo "background-color: $d_bgcolor_f;";
+ }
+
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
+
+ if (isset($d_border) or isset($d_bgcolor_f)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb2e"';
+
+ if (isset($d_border) or isset($d_bgcolor_f)) {
+ echo ' style="';
+ }
+
+ if (isset($d_bgcolor_f)) {
+ echo "background-color: $d_bgcolor_f;";
+ }
+
+ if (isset($d_border)) {
+ echo "border-color: $d_border;";
+ }
+
+ if (isset($d_border) or isset($d_bgcolor_f)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb1e"';
+
+ if (isset($d_border)) {
+ echo " style=\"background-color: $d_border;\"";
+ }
+
+ echo '></b></b>';
}
echo "</td></tr></table>";
@@ -3444,74 +3954,114 @@ foreach ($disp as $d) {
if (file_exists("data/round.txt")) {
- echo '<b class="rbtop"><b class="rb1t" style="';
+ echo '<b class="rbtop"><b class="rb1t"';
- if (file_exists("data/panels/$entry_panel/border.txt")) {
- echo "background-color: $entry_panel_border;";
+ if (isset($entry_panel_border)) {
+ echo " style=\"background-color: $entry_panel_border;\"";
}
- echo '"></b><b class="rb2t" style="';
+ echo '></b><b class="rb2t"';
+
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ if (isset($entry_panel_bgcolor_t)) {
echo "background-color: $entry_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$entry_panel/border.txt")) {
+ if (isset($entry_panel_border)) {
echo "border-color: $entry_panel_border;";
}
- echo '"></b><b class="rb3t" style="';
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3t"';
+
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ if (isset($entry_panel_bgcolor_t)) {
echo "background-color: $entry_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$entry_panel/border.txt")) {
+ if (isset($entry_panel_border)) {
echo "border-color: $entry_panel_border;";
}
- echo '"></b><b class="rb4t" style="';
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb4t"';
+
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ if (isset($entry_panel_bgcolor_t)) {
echo "background-color: $entry_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$entry_panel/border.txt")) {
+ if (isset($entry_panel_border)) {
echo "border-color: $entry_panel_border;";
}
- echo '"></b></b><div class="xtitle" style="';
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b></b><div class="xtitle"';
+
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t) or isset($entry_panel_text_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ if (isset($entry_panel_bgcolor_t)) {
echo "background-color: $entry_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$entry_panel/text-t.txt")) {
+ if (isset($entry_panel_text_t)) {
echo "color: $entry_panel_text_t;";
}
- if (file_exists("data/panels/$entry_panel/border.txt")) {
+ if (isset($entry_panel_border)) {
echo "border-color: $entry_panel_border;";
}
- echo '">';
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t) or isset($entry_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
else {
- echo '<div id="panel_title" style="';
+ echo '<div id="panel_title"';
+
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t) or isset($entry_panel_text_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$entry_panel/bgcolor-t.txt")) {
+ if (isset($entry_panel_bgcolor_t)) {
echo "background-color: $entry_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$entry_panel/text-t.txt")) {
+ if (isset($entry_panel_text_t)) {
echo "color: $entry_panel_text_t;";
}
- if (file_exists("data/panels/$entry_panel/border.txt")) {
+ if (isset($entry_panel_border)) {
echo "border-color: $entry_panel_border;";
}
- echo '">';
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_t) or isset($entry_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
readfile("data/panels/$entry_panel/title.txt");
@@ -3527,21 +4077,29 @@ foreach ($disp as $d) {
echo '</div>';
- echo '<div id="panel_body" style="';
+ echo '<div id="panel_body"';
- if (file_exists("data/panels/$entry_panel/bgcolor-c.txt")) {
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_c) or isset($entry_panel_text_c)) {
+ echo ' style="';
+ }
+
+ if (isset($entry_panel_bgcolor_c)) {
echo "background-color: $entry_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$entry_panel/text-c.txt")) {
+ if (isset($entry_panel_text_c)) {
echo "color: $entry_panel_text_c;";
}
- if (file_exists("data/panels/$entry_panel/border.txt")) {
+ if (isset($entry_panel_border)) {
echo "border-color: $entry_panel_border;";
}
- echo '">';
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_c) or isset($entry_panel_text_c)) {
+ echo '"';
+ }
+
+ echo '>';
}
if (file_exists("data/panels/$entry_panel/free.txt")) {
@@ -3554,43 +4112,67 @@ foreach ($disp as $d) {
if (file_exists("data/round.txt") and !file_exists("data/panels/$entry_panel/free.txt")) {
- echo '<b class="rbbottom"><b class="rb4b" style="';
+ echo '<b class="rbbottom"><b class="rb4b"';
- if (file_exists("data/panels/$entry_panel/bgcolor-c.txt")) {
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($entry_panel_bgcolor_c)) {
echo "background-color: $entry_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$entry_panel/border.txt")) {
+ if (isset($entry_panel_border)) {
echo "border-color: $entry_panel_border;";
}
- echo '"></b><b class="rb3b" style="';
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$entry_panel/bgcolor-c.txt")) {
+ echo '></b><b class="rb3b"';
+
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($entry_panel_bgcolor_c)) {
echo "background-color: $entry_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$entry_panel/border.txt")) {
+ if (isset($entry_panel_border)) {
echo "border-color: $entry_panel_border;";
}
- echo '"></b><b class="rb2b" style="';
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$entry_panel/bgcolor-c.txt")) {
+ echo '></b><b class="rb2b"';
+
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($entry_panel_bgcolor_c)) {
echo "background-color: $entry_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$entry_panel/border.txt")) {
+ if (isset($entry_panel_border)) {
echo "border-color: $entry_panel_border;";
}
- echo '"></b><b class="rb1b" style="';
+ if (isset($entry_panel_border) or isset($entry_panel_bgcolor_c)) {
+ echo '"';
+ }
- if (file_exists("data/panels/$entry_panel/border.txt")) {
- echo "background-color: $entry_panel_border;";
+ echo '></b><b class="rb1b"';
+
+ if (isset($entry_panel_border)) {
+ echo " style=\"background-color: $entry_panel_border;\"";
}
- echo '"></b></b>';
+ echo '></b></b>';
}
}
}
@@ -3615,7 +4197,7 @@ foreach ($disp as $d) {
echo '</div><div id=panel_body>';
if (file_exists("data/items/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
- echo "This entry is password protected. If you know the magic word,click <a href=passwd.php?entry=$d&show=album>here</a> to enter it.";
+ echo "This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$d&show=album>here</a> to enter it.";
}
else {
if (file_exists("images/$d/thumbnails")) {
@@ -3770,7 +4352,7 @@ foreach ($disp as $d) {
echo "</div><div id=panel_body>";
if (file_exists("data/items/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
- echo "This entry is password protected. If you know the magic word,click <a href=passwd.php?entry=$d&show=filedrop>here</a> to enter it.";
+ echo "This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$d&show=filedrop>here</a> to enter it.";
}
else {
@@ -3854,7 +4436,7 @@ foreach ($disp as $d) {
echo '</div><div id=panel_body>';
if (file_exists("data/items/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
- echo "This entry is password protected. If you know the magic word,click <a href=passwd.php?entry=$d&show=pdf>here</a> to enter it.";
+ echo "This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$d&show=pdf>here</a> to enter it.";
}
else {
@@ -4204,7 +4786,7 @@ foreach ($disp as $d) {
echo '<font style="font-size: 12px;"><b>Add Comment</b></font>';
if (file_exists("data/items/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
- echo "<p>This entry is password protected. If you know the magic word,click <a href=passwd.php?entry=$d&show=comments>here</a> to enter it.</p>";
+ echo "<p>This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$d&show=comments>here</a> to enter it.</p>";
}
else {
$captcha_rand = str_rand(7);
@@ -4911,9 +5493,6 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
}
}
-?>
-
-<?php
if (file_exists("data/bb.txt") and file_exists("data/bb-stats.txt")) {
if (file_exists("data/round.txt")) {
@@ -4942,7 +5521,6 @@ if (file_exists("data/bb.txt") and file_exists("data/bb-stats.txt")) {
}
}
-
if (file_exists("data/items")) {
if ($dh_mempost_list = opendir("data/items")) {
while (($entry_mempost_list = readdir($dh_mempost_list)) !== false) {
@@ -5001,9 +5579,6 @@ if (file_exists("data/bb.txt") and file_exists("data/bb-stats.txt")) {
echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
}
}
-?>
-
-<?php
if ($count_grand > 0) {
@@ -5030,6 +5605,7 @@ if ($count_grand > 0) {
}
}
+
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
if (file_exists("data/round.txt")) {
@@ -5055,9 +5631,7 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
}
}
-?>
-<?php
if (file_exists("data/categories")) {
if ($dh_categories = opendir("data/categories")) {
while (($entry_categories = readdir($dh_categories)) !== false) {
@@ -5158,10 +5732,6 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
}
}
-?>
-
-<?php
-
if (($count_latest > 0) and ($count_latest > $increase) and (!file_exists("data/xrecent.txt") or isset($_SESSION['logged_in']))) {
if (file_exists("data/round.txt")) {
@@ -5198,10 +5768,6 @@ if (($count_latest > 0) and ($count_latest > $increase) and (!file_exists("data/
}
}
-?>
-
-<?php
-
$count_latest_comments = 0;
$cmonth = date("Ym",time() + $offset);
@@ -5264,10 +5830,6 @@ if (($count_latest_comments > 0) and ($count_latest > $increase) and (!file_exis
}
}
-?>
-
-<?php
-
if ($count_albums > 0) {
if (file_exists("data/round.txt")) {
@@ -5291,10 +5853,6 @@ if ($count_albums > 0) {
}
}
-?>
-
-<?php
-
if (!file_exists("data/xrand.txt")) {
shuffle($random);
@@ -5382,10 +5940,6 @@ if (($count_archives > 0) and ($count_latest > $increase) and ($count_latest > 0
}
}
-?>
-
-<?php
-
if ($count_right_panels > 0) {
foreach ($right_panels as $right_panel) {
@@ -5439,74 +5993,114 @@ if ($count_right_panels > 0) {
if (file_exists("data/round.txt")) {
- echo '<b class="rbright"><b class="rb1t" style="';
+ echo '<b class="rbtop"><b class="rb1t"';
- if (file_exists("data/panels/$right_panel/border.txt")) {
- echo "background-color: $right_panel_border;";
+ if (isset($right_panel_border)) {
+ echo " style=\"background-color: $right_panel_border;\"";
}
- echo '"></b><b class="rb2t" style="';
+ echo '></b><b class="rb2t"';
+
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ if (isset($right_panel_bgcolor_t)) {
echo "background-color: $right_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$right_panel/border.txt")) {
+ if (isset($right_panel_border)) {
echo "border-color: $right_panel_border;";
}
- echo '"></b><b class="rb3t" style="';
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3t"';
- if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t)) {
+ echo ' style="';
+ }
+
+ if (isset($right_panel_bgcolor_t)) {
echo "background-color: $right_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$right_panel/border.txt")) {
+ if (isset($right_panel_border)) {
echo "border-color: $right_panel_border;";
}
- echo '"></b><b class="rb4t" style="';
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb4t"';
+
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ if (isset($right_panel_bgcolor_t)) {
echo "background-color: $right_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$right_panel/border.txt")) {
+ if (isset($right_panel_border)) {
echo "border-color: $right_panel_border;";
}
- echo '"></b></b><div class="xtitle" style="';
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t)) {
+ echo '"';
+ }
+
+ echo '></b></b><div class="xtitle"';
- if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t) or isset($right_panel_text_t)) {
+ echo ' style="';
+ }
+
+ if (isset($right_panel_bgcolor_t)) {
echo "background-color: $right_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$right_panel/text-t.txt")) {
+ if (isset($right_panel_text_t)) {
echo "color: $right_panel_text_t;";
}
- if (file_exists("data/panels/$right_panel/border.txt")) {
+ if (isset($right_panel_border)) {
echo "border-color: $right_panel_border;";
}
- echo '">';
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t) or isset($right_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
else {
- echo '<div id="panel_title" style="';
+ echo '<div id="panel_title"';
+
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t) or isset($right_panel_text_t)) {
+ echo ' style="';
+ }
- if (file_exists("data/panels/$right_panel/bgcolor-t.txt")) {
+ if (isset($right_panel_bgcolor_t)) {
echo "background-color: $right_panel_bgcolor_t;";
}
- if (file_exists("data/panels/$right_panel/text-t.txt")) {
+ if (isset($right_panel_text_t)) {
echo "color: $right_panel_text_t;";
}
- if (file_exists("data/panels/$right_panel/border.txt")) {
+ if (isset($right_panel_border)) {
echo "border-color: $right_panel_border;";
}
- echo '">';
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_t) or isset($right_panel_text_t)) {
+ echo '"';
+ }
+
+ echo '>';
}
readfile("data/panels/$right_panel/title.txt");
@@ -5522,21 +6116,29 @@ if ($count_right_panels > 0) {
echo '</div>';
- echo '<div id="panel_body" style="';
+ echo '<div id="panel_body"';
- if (file_exists("data/panels/$right_panel/bgcolor-c.txt")) {
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_c) or isset($right_panel_text_c)) {
+ echo ' style="';
+ }
+
+ if (isset($right_panel_bgcolor_c)) {
echo "background-color: $right_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$right_panel/text-c.txt")) {
+ if (isset($right_panel_text_c)) {
echo "color: $right_panel_text_c;";
}
- if (file_exists("data/panels/$right_panel/border.txt")) {
+ if (isset($right_panel_border)) {
echo "border-color: $right_panel_border;";
}
- echo '">';
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_c) or isset($right_panel_text_c)) {
+ echo '"';
+ }
+
+ echo '>';
}
if (file_exists("data/panels/$right_panel/free.txt")) {
@@ -5549,51 +6151,71 @@ if ($count_right_panels > 0) {
if (file_exists("data/round.txt") and !file_exists("data/panels/$right_panel/free.txt")) {
- echo '<b class="rbbottom"><b class="rb4b" style="';
+ echo '<b class="rbbottom"><b class="rb4b"';
- if (file_exists("data/panels/$right_panel/bgcolor-c.txt")) {
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($right_panel_bgcolor_c)) {
echo "background-color: $right_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$right_panel/border.txt")) {
+ if (isset($right_panel_border)) {
echo "border-color: $right_panel_border;";
}
- echo '"></b><b class="rb3b" style="';
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_c)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb3b"';
- if (file_exists("data/panels/$right_panel/bgcolor-c.txt")) {
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($right_panel_bgcolor_c)) {
echo "background-color: $right_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$right_panel/border.txt")) {
+ if (isset($right_panel_border)) {
echo "border-color: $right_panel_border;";
}
- echo '"></b><b class="rb2b" style="';
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_c)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb2b"';
- if (file_exists("data/panels/$right_panel/bgcolor-c.txt")) {
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_c)) {
+ echo ' style="';
+ }
+
+ if (isset($right_panel_bgcolor_c)) {
echo "background-color: $right_panel_bgcolor_c;";
}
- if (file_exists("data/panels/$right_panel/border.txt")) {
+ if (isset($right_panel_border)) {
echo "border-color: $right_panel_border;";
}
- echo '"></b><b class="rb1b" style="';
+ if (isset($right_panel_border) or isset($right_panel_bgcolor_c)) {
+ echo '"';
+ }
+
+ echo '></b><b class="rb1b"';
- if (file_exists("data/panels/$right_panel/border.txt")) {
- echo "background-color: $right_panel_border;";
+ if (isset($right_panel_border)) {
+ echo " style=\"background-color: $right_panel_border;\"";
}
- echo '"></b></b>';
+ echo '></b></b>';
}
}
}
-?>
-
-<?php
-
if ($count_latest > 0) {
echo '<table border="0" cellspacing="2" cellpadding="0" width="100%">';
echo '<tr><td align="center"><a target="_button" href="http://maj.sourceforge.net/"><img src="images/button.maj.png" border="0" width="80" height="15"></a></td></tr>';
diff --git a/rel.txt b/rel.txt
index 6b17962..61d076e 100644
--- a/rel.txt
+++ b/rel.txt
@@ -1 +1 @@
-20081228
\ No newline at end of file
+20081230
\ No newline at end of file