This commit has been accessed 596 times via Git panel.
commit e7ff7a8105123767b478e4c848887d00164a73d0
tree 0885d7bcea025c9c5df75f7c7e54ec15500edb4e
parent b5cce784c77372dd99122fd029004764abe15d23
author Engels Antonio <engels@majcms.org> 1277314188 +0800
committer Engels Antonio <engels@majcms.org> 1277314188 +0800
maj-0.14-20070707-bb.zip
diff --git a/add.php b/add.php
index 819c4b0..de835ce 100644
--- a/add.php
+++ b/add.php
@@ -676,12 +676,17 @@ if (file_exists("data/members/active") and file_exists("data/ml.txt") and file_e
}
if ($_SESSION['logged_in'] == file_get_contents("data/username.txt")) {
+ $ml_author = file_get_contents("data/author.txt");
$ml_from = file_get_contents("data/email.txt");
+ $ml_from = '"' . $ml_author . '" <' . $ml_from . '>';
}
if ($_SESSION['logged_in'] != file_get_contents("data/username.txt")) {
if (file_exists("data/members/active/{$_SESSION['logged_in']}/rw.txt") and file_exists("data/bb.txt")) {
+ $ml_from_firstname = file_get_contents("data/members/active/{$_SESSION['logged_in']}/firstname.txt");
+ $ml_from_lastname = file_get_contents("data/members/active/{$_SESSION['logged_in']}/lastname.txt");
$ml_from = file_get_contents("data/members/active/{$_SESSION['logged_in']}/email.txt");
+ $ml_from = '"' . "$ml_from_firstname $ml_from_lastname" . '" <' . $ml_from . '>';
}
}
@@ -704,6 +709,8 @@ if (file_exists("data/members/active") and file_exists("data/ml.txt") and file_e
$ml_body = str_replace('<img src=images/smileys/surprised.png border=0>', '=)', $ml_body);
$ml_body = str_replace('<img src=images/smileys/undecided.png border=0>', ':\\', $ml_body);
$ml_body = str_replace('<img src=images/smileys/wink.png border=0>', ';)', $ml_body);
+ $ml_body = str_replace('&','&',$ml_body);
+ $ml_body = str_replace('®','(R)',$ml_body);
$ml_body = strip_tags($ml_body);
if (file_exists("data/ml-header.txt")) {
@@ -738,17 +745,22 @@ if (file_exists("data/members/active") and file_exists("data/ml.txt") and file_e
continue;
}
+ $ml_to_firstname = file_get_contents("data/members/active/$ml_member/firstname.txt");
+ $ml_to_lastname = file_get_contents("data/members/active/$ml_member/lastname.txt");
$ml_to = file_get_contents("data/members/active/$ml_member/email.txt");
+ $ml_to = '"' . "$ml_to_firstname $ml_to_lastname" . '" <' . $ml_to . '>';
if (file_exists("data/ml-reply2.txt")) {
mail($ml_to, $ml_subject, $ml_body,
"From: $ml_from\r\n" .
"Reply-To: $ml_reply2\r\n" .
+ "References: $entry\r\n" .
"X-Mailer: $ml_mailer");
}
else {
mail($ml_to, $ml_subject, $ml_body,
"From: $ml_from\r\n" .
+ "References: $entry\r\n" .
"X-Mailer: $ml_mailer");
}
}
diff --git a/edit.php b/edit.php
index b835f0c..0ba13af 100644
--- a/edit.php
+++ b/edit.php
@@ -174,7 +174,7 @@ a:active {
if (isset($_REQUEST['comment']) and !empty($_REQUEST['comment']) and isset($_REQUEST['comment_txt']) and !empty($_REQUEST['comment_txt'])) {
$comment_txt = ucfirst($_REQUEST['comment_txt']);
- $comment_txt = htmlentities($comment_txt, ENT_NOQUOTES);
+ //$comment_txt = htmlentities($comment_txt, ENT_NOQUOTES);
// $comment_txt = str_replace('href=', 'target=_maj href=', $comment_txt);
$comment_txt = str_replace("\n", '<br />', $comment_txt);
$comment_txt = str_replace(':((', '<img src=images/smileys/crying.png border=0>', $comment_txt);
diff --git a/index.php b/index.php
index 6b65d83..170c02a 100644
--- a/index.php
+++ b/index.php
@@ -232,13 +232,22 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
$ml_from = file_get_contents("$live_dir/email.txt");
$ml_from = str_replace(" at ","@",$ml_from);
+ $ml_from_firstname = file_get_contents("$live_dir/firstname.txt");
+ $ml_from_lastname = file_get_contents("$live_dir/lastname.txt");
+
+ $ml_from = '"' . "$ml_from_firstname $ml_from_lastname" . '" <' . $ml_from . '>';
+
$ml_subject = file_get_contents("data/items/{$_REQUEST['entry']}/title.txt");
if (file_exists("data/ml-prepend.txt")) {
- $ml_subject = file_get_contents("data/ml-prepend.txt") . " " . $ml_subject;
+ $ml_prepend = file_get_contents("data/ml-prepend.txt");
+ $ml_subject = str_replace($ml_prepend,"",$ml_subject);
+ $ml_subject = $ml_prepend . " " . $ml_subject;
}
+ $ml_subject = str_replace("Re:","",$ml_subject);
$ml_subject = "Re: " . $ml_subject;
$ml_mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
+
$ml_body = file_get_contents("$live_dir/comment.txt");
$ml_body = str_replace('<br />', "\n", $ml_body);
$ml_body = str_replace('<img src=images/smileys/crying.png border=0>', ':((', $ml_body);
@@ -251,6 +260,10 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
$ml_body = str_replace('<img src=images/smileys/surprised.png border=0>', '=)', $ml_body);
$ml_body = str_replace('<img src=images/smileys/undecided.png border=0>', ':\\', $ml_body);
$ml_body = str_replace('<img src=images/smileys/wink.png border=0>', ';)', $ml_body);
+ $ml_body = str_replace('&','&',$ml_body);
+ $ml_body = str_replace('<','<',$ml_body);
+ $ml_body = str_replace('>','>',$ml_body);
+ $ml_body = str_replace('®','(R)',$ml_body);
if (file_exists("data/pf.txt") and file_exists("data/pf-badwords.txt")) {
$badwords = file_get_contents("data/pf-badwords.txt");
@@ -274,6 +287,10 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
$ml_body = $ml_body . "\n\nPlease visit the following URL for the full thread:\n\n" . $ml_url;
+ if (file_exists("data/items/{$_REQUEST['entry']}/member.txt")) {
+ $ml_body = $ml_body . "\n\nYou need to login first to view the entry or to add a comment.";
+ }
+
if (file_exists("data/ml-footer.txt")) {
$ml_footer = file_get_contents("data/ml-footer.txt");
$ml_body = $ml_body . "\n\n" . $ml_footer;
@@ -292,17 +309,22 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
continue;
}
+ $ml_to_firstname = file_get_contents("data/members/active/$ml_member/firstname.txt");
+ $ml_to_lastname = file_get_contents("data/members/active/$ml_member/lastname.txt");
$ml_to = file_get_contents("data/members/active/$ml_member/email.txt");
+ $ml_to = '"' . "$ml_to_firstname $ml_to_lastname" . '" <'. $ml_to . '>';
if (file_exists("data/ml-reply2.txt")) {
mail($ml_to, $ml_subject, $ml_body,
"From: $ml_from\r\n" .
"Reply-To: $ml_reply2\r\n" .
+ "References: {$_REQUEST['entry']}\r\n" .
"X-Mailer: $ml_mailer");
}
else {
mail($ml_to, $ml_subject, $ml_body,
"From: $ml_from\r\n" .
+ "References: {$_REQUEST['entry']}\r\n" .
"X-Mailer: $ml_mailer");
}
}
@@ -460,7 +482,7 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry'])) {
fclose($fp_key_txt);
$comment_quote = ucfirst($_REQUEST['new_comment']);
- $comment_quote = htmlentities($comment_quote, ENT_NOQUOTES);
+ //$comment_quote = htmlentities($comment_quote, ENT_NOQUOTES);
$sig_author_file = "data/author.txt";
$fp_sig_author = fopen($sig_author_file, "r");
@@ -472,13 +494,12 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry'])) {
$sig_url = "http://" . $sig_url;
$email_to = strtolower($_REQUEST['email']);
- $email_to = $firstname . " " . $lastname . ' <' . $email_to . '>';
+ $email_to = '"' . "$firstname $lastname" . '" <' . $email_to . '>';
if (file_exists("data/email.txt")) {
- $from_email_file = "data/email.txt";
- $fp_from_email = fopen($from_email_file, "r");
- $from_email = fread($fp_from_email, filesize($from_email_file));
- fclose($fp_from_email);
+ $from_email_author = file_get_contents("data/author.txt");
+ $from_email = file_get_contents("data/email.txt");
+ $from_email = '"' . $from_email_author . '" <' . $from_email . '>';
}
$mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
@@ -606,30 +627,32 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and file_exists("da
<style>
-body
-{
+body {
color: <?php
-if (file_exists("data/colors/font.txt")) {
- $font_color = file_get_contents("data/colors/font.txt");
- echo $font_color;
-}
-else {
- echo "#666666";
-}
-?>;
+ if (file_exists("data/colors/font.txt")) {
+ $font_color = file_get_contents("data/colors/font.txt");
+ echo $font_color;
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+
margin: 0px 0px 10px 10px;
padding: 0px;
text-align: left;
font-family: verdana, helvetica, sans-serif;
+
background-color: <?php
-if (file_exists("data/colors/bg.txt")) {
- $background_color = file_get_contents("data/colors/bg.txt");
- echo $background_color;
-}
-else {
- echo "#FFFFFF";
-}
-?>;
+ if (file_exists("data/colors/bg.txt")) {
+ $background_color = file_get_contents("data/colors/bg.txt");
+ echo $background_color;
+ }
+ else {
+ echo "#ffffff";
+ }
+ ?>;
+
<?php
if (file_exists("images/background.gif") and !file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>
background-image: url('images/background.gif');
@@ -655,212 +678,422 @@ else {
?>
}
-p, td
-{
+p, td {
font-size: 11px;
}
-a
-{
+a {
font-weight: bold;
text-decoration: none;
}
-a:link
-{
+a:link {
color: <?php
-if (file_exists("data/colors/link.txt")) {
- $a_link_color = file_get_contents("data/colors/link.txt");
- echo $a_link_color;
-}
-else {
- echo "#666666";
-}
-?>;
+ if (file_exists("data/colors/link.txt")) {
+ $a_link_color = file_get_contents("data/colors/link.txt");
+ echo $a_link_color;
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
}
-a:visited
-{
+a:visited {
color: <?php
-if (file_exists("data/colors/vlink.txt")) {
- $a_visited_color = file_get_contents("data/colors/vlink.txt");
- echo $a_visited_color;
-}
-else {
- echo "#666666";
-}
-?>;
+ if (file_exists("data/colors/vlink.txt")) {
+ $a_visited_color = file_get_contents("data/colors/vlink.txt");
+ echo $a_visited_color;
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
}
-a:hover
-{
+a:hover {
color: <?php
-if (file_exists("data/colors/hover.txt")) {
- $a_hover_color = file_get_contents("data/colors/hover.txt");
- echo $a_hover_color;
-}
-else {
- echo "#336699";
-}
-?>;
+ if (file_exists("data/colors/hover.txt")) {
+ $a_hover_color = file_get_contents("data/colors/hover.txt");
+ echo $a_hover_color;
+ }
+ else {
+ echo "#336699";
+ }
+ ?>;
}
a:active {
color: <?php
-if (file_exists("data/colors/hover.txt")) {
- $a_active_color = file_get_contents("data/colors/hover.txt");
- echo $a_active_color;
-}
-else {
- echo "#336699";
-}
-?>;
+ if (file_exists("data/colors/hover.txt")) {
+ $a_active_color = file_get_contents("data/colors/hover.txt");
+ echo $a_active_color;
+ }
+ else {
+ echo "#336699";
+ }
+ ?>;
}
-#panel_title
-{
+
+#panel_title {
font-family: verdana, helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
+
color: <?php
-if (file_exists("data/colors/pt-font.txt")) {
- $panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
- echo $panel_title_font_color;
-}
-else {
- echo "#666666";
-}
-?>;
+ if (file_exists("data/colors/pt-font.txt")) {
+ $panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
+ echo $panel_title_font_color;
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+
padding: 5px 5px 5px 5px;
+
background-color: <?php
-if (file_exists("data/colors/pt-bg.txt")) {
- $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
- echo $panel_title_background_color;
-}
-else {
- echo "transparent";
-}
-?>;
+ if (file_exists("data/colors/pt-bg.txt")) {
+ $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
+ echo $panel_title_background_color;
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+
margin: 10px 0px 0px 0px;
+
border-color: <?php
-if (file_exists("data/colors/border.txt")) {
- $panel_title_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_title_border_color;
-}
-else {
- echo "#CCCCCC";
-}
-?>;
+ if (file_exists("data/colors/border.txt")) {
+ $panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $panel_title_border_color;
+ }
+ else {
+ echo "#cccccc";
+ }
+ ?>;
+
border-width: 1px 1px 0px 1px;
border-style: solid solid none solid;
}
-#panel_body
-{
+
+#panel_body {
font-family: verdana, helvetica, sans-serif;
font-size: 11px;
+
color: <?php
-if (file_exists("data/colors/pb-font.txt")) {
- $panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
- echo $panel_body_font_color;
-}
-else {
- echo "#666666";
-}
-?>;
- padding: 5px 5px 5px 5px;
+ if (file_exists("data/colors/pb-font.txt")) {
+ $panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
+ echo $panel_body_font_color;
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+
+ <?php
+ if (file_exists("data/round.txt")) {
+ echo 'padding: 5px 5px 2px 5px;';
+ }
+ else {
+ echo 'padding: 5px 5px 5px 5px;';
+ }
+ ?>
+
background-color: <?php
-if (file_exists("data/colors/pb-bg.txt")) {
- $panel_body_background_color = file_get_contents("data/colors/pb-bg.txt");
- echo $panel_body_background_color;
-}
-else {
- echo "transparent";
-}
-?>;
+ if (file_exists("data/colors/pb-bg.txt")) {
+ $panel_body_background_color = file_get_contents("data/colors/pb-bg.txt");
+ echo $panel_body_background_color;
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+
margin: 0px;
+
border-color: <?php
-if (file_exists("data/colors/border.txt")) {
- $panel_body_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_body_border_color;
-}
-else {
- echo "#CCCCCC";
-}
-?>;
- border-width: 1px 1px 1px 1px;
- border-style: solid solid solid solid;
+ if (file_exists("data/colors/border.txt")) {
+ $panel_body_border_color = file_get_contents("data/colors/border.txt");
+ echo $panel_body_border_color;
+ }
+ else {
+ echo "#cccccc";
+ }
+ ?>;
+
+ <?php
+ if (file_exists("data/round.txt")) {
+ echo 'border-width: 1px 1px 0px 1px;';
+ echo 'border-style: solid solid none solid;';
+ }
+ else {
+ echo 'border-width: 1px 1px 1px 1px;';
+ echo 'border-style: solid solid solid solid;';
+ }
+ ?>
}
-#panel_footer
-{
+
+#panel_footer {
font-family: verdana, helvetica, sans-serif;
font-size: 11px;
+
color: <?php
-if (file_exists("data/colors/pf-font.txt")) {
- $panel_footer_font_color = file_get_contents("data/colors/pf-font.txt");
- echo $panel_footer_font_color;
-}
-else {
- echo "#666666";
-}
-?>;
- padding: 5px 5px 5px 5px;
+ if (file_exists("data/colors/pf-font.txt")) {
+ $panel_footer_font_color = file_get_contents("data/colors/pf-font.txt");
+ echo $panel_footer_font_color;
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+
+ <?php
+ if (file_exists("data/round.txt")) {
+ echo 'padding: 5px 5px 2px 5px;';
+ }
+ else {
+ echo 'padding: 5px 5px 5px 5px;';
+ }
+ ?>
+
background-color: <?php
-if (file_exists("data/colors/pf-bg.txt")) {
- $panel_footer_background_color = file_get_contents("data/colors/pf-bg.txt");
- echo $panel_footer_background_color;
-}
-else {
- echo "transparent";
-}
-?>;
+ if (file_exists("data/colors/pf-bg.txt")) {
+ $panel_footer_background_color = file_get_contents("data/colors/pf-bg.txt");
+ echo $panel_footer_background_color;
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+
margin: 0px;
+
border-color: <?php
-if (file_exists("data/colors/border.txt")) {
- $panel_footer_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_footer_border_color;
-}
-else {
- echo "#CCCCCC";
-}
-?>;
- border-width: 0px 1px 1px 1px;
- border-style: none solid solid solid;
+ if (file_exists("data/colors/border.txt")) {
+ $panel_footer_border_color = file_get_contents("data/colors/border.txt");
+ echo $panel_footer_border_color;
+ }
+ else {
+ echo "#cccccc";
+ }
+ ?>;
+
+ <?php
+ if (file_exists("data/round.txt")) {
+ echo 'border-width: 1px 1px 0px 1px;';
+ echo 'border-style: solid solid none solid;';
+ }
+ else {
+ echo 'border-width: 0px 1px 1px 1px;';
+ echo 'border-style: none solid solid solid;';
+ }
+ ?>
+
text-align: right;
}
+
.input {
color: <?php
-if (file_exists("data/colors/border.txt")) {
- $input_color = file_get_contents("data/colors/border.txt");
- echo $input_color;
-}
-else {
- echo "#666666";
-}
-?>;
- background: #FFFFFF;
+ if (file_exists("data/colors/border.txt")) {
+ $input_color = file_get_contents("data/colors/border.txt");
+ echo $input_color;
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+
+ background: #ffffff;
+
border: <?php
-if (file_exists("data/colors/border.txt")) {
- $panel_footer_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_footer_border_color;
-}
-else {
- echo "#999999";
-}
-?> solid 1px;
+ if (file_exists("data/colors/border.txt")) {
+ $panel_footer_border_color = file_get_contents("data/colors/border.txt");
+ echo $panel_footer_border_color;
+ }
+ else {
+ echo "#999999";
+ }
+ ?> solid 1px;
+
width: 300px;
font-family: verdana,helvetica,sans-serif;
font-size: 11px;
}
+
.search {
color: #666666;
- background: #FFFFFF;
+ background: #ffffff;
width: 100%;
font-family: verdana,helvetica,sans-serif;
font-size: 11px;
}
+
#panel_free {
padding: 0px 5px 0px 5px;
margin: 10px 0px 0px 0px;
}
+
+
+.rbtop {
+ display: block;
+ background: transparent;
+ font-size: 1px;
+ margin: 10px 0px 0px 0px;
+}
+
+.rbbottom {
+ display: block;
+ background: transparent;
+ font-size: 1px;
+ margin: 0px 0px 0px 0px;
+}
+
+.rb1t, .rb2t, .rb3t, .rb4t, .rb1b, .rb2b, .rb3b, .rb4b, .rb1e, .rb2e, .rb3e, .rb4e {
+ display: block;
+ overflow: hidden;
+}
+
+.rb1t, .rb2t, .rb3t, .rb1b, .rb2b, .rb3b, .rb1e, .rb2e, .rb3e {
+ height: 1px;
+}
+
+.rb2t, .rb3t, .rb4t {
+ background-color: <?php
+ if (file_exists("data/colors/pt-bg.txt")) {
+ $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
+ echo $panel_title_background_color;
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+ border-left: 1px solid;
+ border-right: 1px solid;
+ border-color: <?php
+ if (file_exists("data/colors/border.txt")) {
+ $panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $panel_title_border_color;
+ }
+ else {
+ echo "#cccccc";
+ };
+ ?>;
+}
+
+.rb2b, .rb3b, .rb4b {
+ background-color: <?php
+ if (file_exists("data/colors/pb-bg.txt")) {
+ $panel_title_background_color = file_get_contents("data/colors/pb-bg.txt");
+ echo $panel_title_background_color;
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+ border-left: 1px solid;
+ border-right: 1px solid;
+ border-color: <?php
+ if (file_exists("data/colors/border.txt")) {
+ $panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $panel_title_border_color;
+ }
+ else {
+ echo "#cccccc";
+ };
+ ?>;
+}
+
+.rb2e, .rb3e, .rb4e {
+ background-color: <?php
+ if (file_exists("data/colors/pf-bg.txt")) {
+ $panel_title_background_color = file_get_contents("data/colors/pf-bg.txt");
+ echo $panel_title_background_color;
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+ border-left: 1px solid;
+ border-right: 1px solid;
+ border-color: <?php
+ if (file_exists("data/colors/border.txt")) {
+ $panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $panel_title_border_color;
+ }
+ else {
+ echo "#cccccc";
+ };
+ ?>;
+}
+
+.rb1t, .rb1b, .rb1e {
+ margin: 0 5px;
+ background: <?php
+ if (file_exists("data/colors/border.txt")) {
+ $panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $panel_title_border_color;
+ }
+ else {
+ echo "#cccccc";
+ };
+ ?>;
+}
+
+.rb2t, .rb2b, .rb2e {
+ margin: 0 3px;
+ border-width: 0 2px;
+}
+
+.rb3t, .rb3b, .rb3e {
+ margin: 0 2px;
+}
+
+.rb4t, .rb4b, .rb4e {
+ height: 2px;
+ margin: 0 1px;
+}
+
+.xtitle {
+ display: block;
+ border:0 solid;
+ border-width:0 1px;
+ padding: 1px 5px 5px 5px;
+ font-weight: bold;
+ color: <?php
+ if (file_exists("data/colors/pt-font.txt")) {
+ $panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
+ echo $panel_title_font_color;
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+ background-color: <?php
+ if (file_exists("data/colors/pt-bg.txt")) {
+ $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
+ echo $panel_title_background_color;
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+ border-color: <?php
+ if (file_exists("data/colors/border.txt")) {
+ $panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $panel_title_border_color;
+ }
+ else {
+ echo "#cccccc";
+ };
+ ?>;
+}
+
+.rbspace {
+ height: 3px;
+}
+
</style>
<link rel="alternate" type="application/rss+xml" title="RSS 0.91" href="rss.php?ver=0.91">
@@ -879,10 +1112,21 @@ if (file_exists("header.php")) {
}
?>
-<table border=0 cellspacing=0 cellpadding=0 width=<?php if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) { echo "990"; } else { echo "905"; } ?>>
+<table border=0 cellspacing=10 cellpadding=0>
<tr><td width=175 valign=top>
-<div id=panel_title>Profile</div>
+<?php
+
+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>';
+}
+
+?>
+
+Profile</div>
<div id=panel_body>
<?php
if (file_exists("images/profile.gif")) {
@@ -946,7 +1190,24 @@ include("data/profile.php");
?>
</div>
-<div id=panel_title>Navigation</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="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>';
+}
+
+?>
+
+Navigation</div>
<div id=panel_body>
<a href="<?php echo $_SERVER['PHP_SELF']; ?>">Home</a><br>
@@ -988,6 +1249,12 @@ 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/sticky")) {
if ($dh_sticky_list = opendir("data/sticky")) {
@@ -1019,7 +1286,15 @@ if (file_exists("data/sticky")) {
$count_sticky_list = count($show_sticky_list);
if ($count_sticky_list > 0) {
- echo '<div id=panel_title>Quick Links</div>';
+
+ 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 'Quick Links</div>';
echo '<div id=panel_body>';
foreach ($show_sticky_list as $sticky_list_entry) {
echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=';
@@ -1029,6 +1304,10 @@ if (file_exists("data/sticky")) {
echo '</a><br>';
}
echo '</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>';
+ }
}
}
?>
@@ -1048,6 +1327,18 @@ if (file_exists("data/panels")) {
continue;
}
+ if (file_exists("data/panels/$entry_panel_list/center.txt")) {
+ continue;
+ }
+
+ if (file_exists("data/panels/$entry_panel_list/top.txt")) {
+ continue;
+ }
+
+ if (file_exists("data/panels/$entry_panel_list/entry.txt")) {
+ continue;
+ }
+
if ($entry_panel_list != "." && $entry_panel_list != ".." && fnmatch("*", $entry_panel_list)) {
$show_panel_list[] = $entry_panel_list;
}
@@ -1062,25 +1353,103 @@ if (file_exists("data/panels")) {
if ($count_panel_list > 0) {
foreach ($show_panel_list as $panel_list_entry) {
if (!file_exists("data/panels/$panel_list_entry/free.txt")) {
- echo '<div id=panel_title>';
+
+ 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>';
+ }
+
readfile("data/panels/$panel_list_entry/title.txt");
+
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
echo "<a href=panels.php#{$panel_list_entry}>";
echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
}
+
echo '</div><div id=panel_body>';
}
+
if (file_exists("data/panels/$panel_list_entry/free.txt")) {
echo '<div id=panel_free>';
}
+
include("data/panels/$panel_list_entry/panel.php");
+
echo '</div>';
+
+ if (file_exists("data/round.txt") and !file_exists("data/panels/$panel_list_entry/free.txt")) {
+ echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+ }
}
}
}
?>
-</td><td width=15> </td><td valign=top width=<?php if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) { echo "610"; } else { echo "525"; } ?>>
+</td>
+
+<td valign=top width=<?php if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) { echo "610"; } else { echo "525"; } ?>>
+
+<?php
+if (file_exists("data/panels")) {
+ if ($dh_top_panel_list = opendir("data/panels")) {
+ while (($entry_top_panel_list = readdir($dh_top_panel_list)) !== false) {
+
+ if (file_exists("data/panels/$entry_top_panel_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
+ continue;
+ }
+
+ if (!file_exists("data/panels/$entry_top_panel_list/top.txt")) {
+ continue;
+ }
+
+ if ($entry_top_panel_list != "." && $entry_top_panel_list != ".." && fnmatch("*", $entry_top_panel_list)) {
+ $show_top_panel_list[] = $entry_top_panel_list;
+ }
+ }
+ closedir($dh_top_panel_list);
+ }
+
+ sort($show_top_panel_list);
+ reset($show_top_panel_list);
+ $count_top_panel_list = count($show_top_panel_list);
+
+ if ($count_top_panel_list > 0) {
+ foreach ($show_top_panel_list as $top_panel_list_entry) {
+ if (!file_exists("data/panels/$top_panel_list_entry/free.txt")) {
+
+ 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>';
+ }
+
+ readfile("data/panels/$top_panel_list_entry/title.txt");
+
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
+ echo "<a href=panels.php#{$top_panel_list_entry}>";
+ echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
+ }
+
+ echo '</div><div id=panel_body>';
+ }
+
+ if (file_exists("data/panels/$top_panel_list_entry/free.txt")) {
+ echo '<div id=panel_free>';
+ }
+
+ include("data/panels/$top_panel_list_entry/panel.php");
+ echo '</div>';
+
+ if (file_exists("data/round.txt") and !file_exists("data/panels/$top_panel_list_entry/free.txt")) {
+ echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+ }
+ }
+ }
+}
+?>
<?php
@@ -1093,9 +1462,10 @@ if ($dh_latest_post_items = opendir($dir)) {
continue;
}
- if (file_exists("data/items/$entry_latest_post_items/member.txt") and (!isset($_SESSION['logged_in']))) {
- continue;
- }
+ // hide_member (20070606)
+ //if (file_exists("data/items/$entry_latest_post_items/member.txt") and (!isset($_SESSION['logged_in']))) {
+ // continue;
+ //}
$cat_dir = file_get_contents("data/items/$entry_latest_post_items/category.txt");
@@ -1116,7 +1486,14 @@ $count_latest_post_items = count($show_latest_post_items);
if ($count_latest_post_items > 0) {
- echo "<div id=panel_title>Latest Entries</div><div id=panel_body>";
+ 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 "Latest Entries</div><div id=panel_body>";
echo "<table border=0 cellspacing=1 cellpadding=2 bgcolor=#cccccc width=100%>";
echo "<tr><td bgcolor=#eeeeee align=center><p>topic</p></td><td bgcolor=#eeeeee align=center><p>author</p></td><td bgcolor=#eeeeee align=center><p>views</p></td><td bgcolor=#eeeeee align=center><p>comments</p></td><td bgcolor=#eeeeee align=center><p>last post</p></td></tr>";
@@ -1173,16 +1550,80 @@ if ($count_latest_post_items > 0) {
}
unset($items_summary_comments);
- $increment_latest_post_entries = $increment_latest_post_entries + 1;
+ $increment_latest_post_entries = $increment_latest_post_entries + 1;
+ }
+}
+
+if ($count_latest_post_items > 0) {
+ echo "</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>';
+ }
+}
+
+}
+
+?>
+
+<?php
+if (file_exists("data/panels")) {
+ if ($dh_center_panel_list = opendir("data/panels")) {
+ while (($entry_center_panel_list = readdir($dh_center_panel_list)) !== false) {
+
+ if (file_exists("data/panels/$entry_center_panel_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
+ continue;
+ }
+
+ if (!file_exists("data/panels/$entry_center_panel_list/center.txt")) {
+ continue;
+ }
+
+ if ($entry_center_panel_list != "." && $entry_center_panel_list != ".." && fnmatch("*", $entry_center_panel_list)) {
+ $show_center_panel_list[] = $entry_center_panel_list;
+ }
+ }
+ closedir($dh_center_panel_list);
}
-}
-if ($count_latest_post_items > 0) {
- echo "</table></div>";
-}
+ sort($show_center_panel_list);
+ reset($show_center_panel_list);
+ $count_center_panel_list = count($show_center_panel_list);
+
+ if ($count_center_panel_list > 0) {
+ foreach ($show_center_panel_list as $center_panel_list_entry) {
+ if (!file_exists("data/panels/$center_panel_list_entry/free.txt")) {
-}
+ 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>';
+ }
+
+ readfile("data/panels/$center_panel_list_entry/title.txt");
+
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
+ echo "<a href=panels.php#{$center_panel_list_entry}>";
+ echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
+ }
+
+ echo '</div><div id=panel_body>';
+ }
+
+ if (file_exists("data/panels/$center_panel_list_entry/free.txt")) {
+ echo '<div id=panel_free>';
+ }
+ include("data/panels/$center_panel_list_entry/panel.php");
+ echo '</div>';
+
+ if (file_exists("data/round.txt") and !file_exists("data/panels/$center_panel_list_entry/free.txt")) {
+ echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+ }
+ }
+ }
+}
?>
<?php
@@ -1310,14 +1751,22 @@ foreach ($disp as $d) {
continue;
}
- echo '<table border=0 cellspacing=0 cellpadding=0 bgcolor=#CCCCCC style="background-color: transparent;"><tr><td width=';
+ echo '<table border=0 cellspacing=0 cellpadding=0 bgcolor=#cccccc style="background-color: transparent;"><tr><td width=';
if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
echo "610";
}
else {
echo "525";
}
- echo '><div id=panel_title>';
+ 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>';
+ }
+
readfile("$dir/$d/title.txt");
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
@@ -1502,9 +1951,10 @@ foreach ($disp as $d) {
continue;
}
- if (file_exists("data/items/$entry_posts/member.txt") and (!isset($_SESSION['logged_in']))) {
- continue;
- }
+ // hide_member (20070606)
+ //if (file_exists("data/items/$entry_posts/member.txt") and (!isset($_SESSION['logged_in']))) {
+ // continue;
+ //}
$post_cat_dir = file_get_contents("data/items/$entry_posts/category.txt");
@@ -1613,7 +2063,13 @@ foreach ($disp as $d) {
echo "<br><br>--<br>$sig";
}
- echo '</td></tr></table></div><div id=panel_footer>';
+ echo '</td></tr></table>';
+
+ if (file_exists("data/round.txt")) {
+ echo "<div class=rbspace></div>";
+ }
+
+ echo '</div><div id=panel_footer>';
echo '<font style="font-size: 10px; color: ';
if (file_exists("data/colors/pf-font.txt")) {
readfile("data/colors/pf-font.txt");
@@ -1810,7 +2266,80 @@ else {
echo '| <a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '>permalink</a></font>';
}
- echo '</div></td></tr></table>';
+ 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 '</td></tr></table>';
+
+// entry panel
+
+unset($show_per_entry_panel_list);
+
+if (file_exists("data/panels")) {
+ if ($dh_per_entry_panel_list = opendir("data/panels")) {
+ while (($entry_per_entry_panel_list = readdir($dh_per_entry_panel_list)) !== false) {
+
+ if (file_exists("data/panels/$entry_per_entry_panel_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
+ continue;
+ }
+
+ if (!file_exists("data/panels/$entry_per_entry_panel_list/entry.txt")) {
+ continue;
+ }
+
+ if ($entry_per_entry_panel_list != "." && $entry_per_entry_panel_list != ".." && fnmatch("*", $entry_per_entry_panel_list)) {
+ $show_per_entry_panel_list[] = $entry_per_entry_panel_list;
+ }
+ }
+ closedir($dh_per_entry_panel_list);
+ }
+
+ sort($show_per_entry_panel_list);
+ reset($show_per_entry_panel_list);
+ $count_per_entry_panel_list = count($show_per_entry_panel_list);
+
+ if ($count_per_entry_panel_list > 0) {
+ foreach ($show_per_entry_panel_list as $per_entry_panel_list_entry) {
+ if (!file_exists("data/panels/$per_entry_panel_list_entry/free.txt")) {
+
+ if (file_exists("data/round.txt")) {
+ echo '<p></p><b class="rbper_entry"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
+ }
+ else {
+ echo '<p></p><div id=panel_title>';
+ }
+
+ readfile("data/panels/$per_entry_panel_list_entry/title.txt");
+
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
+ echo "<a href=panels.php#{$per_entry_panel_list_entry}>";
+ echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
+ }
+
+ echo '</div><div id=panel_body>';
+ }
+
+ if (file_exists("data/panels/$per_entry_panel_list_entry/free.txt")) {
+ echo '<div id=panel_free>';
+ }
+
+ include("data/panels/$per_entry_panel_list_entry/panel.php");
+ echo '</div>';
+
+ if (file_exists("data/round.txt") and !file_exists("data/panels/$per_entry_panel_list_entry/free.txt")) {
+ echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+ }
+ }
+ }
+}
+
+
+// entry panel
+
+
if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == album) and file_exists("images/$d/album")) {
echo '<table border=0 cellspacing=0 cellpadding=0 width=';
@@ -1823,7 +2352,15 @@ else {
}
echo '><tr><td>';
- echo '<div id=panel_title>Album';
+
+ 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 'Album';
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
echo '<a href=del.php?entry=';
echo $d;
@@ -1963,7 +2500,13 @@ else {
}
}
}
- echo '</div></td></tr></table>';
+ echo '</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>';
}
@@ -1978,7 +2521,15 @@ else {
}
echo '><tr><td>';
- echo '<div id=panel_title>Filedrop';
+
+ 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 'Filedrop';
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
echo '<a href=del.php?entry=';
echo $d;
@@ -2031,7 +2582,13 @@ else {
closedir($dh_filedrop);
}
}
- echo '</div></td></tr></table>';
+ echo '</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>';
}
if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == pdf) and file_exists("data/items/$d/pdf/file")) {
@@ -2045,7 +2602,15 @@ else {
}
echo '><tr><td>';
- echo '<div id=panel_title>PDF';
+
+ 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 'PDF';
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
echo '<a href=del.php?entry=';
echo $d;
@@ -2090,7 +2655,13 @@ else {
closedir($dh_pdf);
}
}
- echo '</div></td></tr></table>';
+ echo '</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>';
}
if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == comments) and !file_exists("data/nocomment.txt")) {
@@ -2119,7 +2690,13 @@ else {
asort($show_comments);
reset($show_comments);
foreach ($show_comments as $comment) {
- echo '<div id=panel_title>';
+
+ 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>';
+ }
if (file_exists("$dir/$d/comments/live/$comment/url.txt")) {
echo '<a target=_maj href=';
@@ -2351,6 +2928,10 @@ else {
}
echo $entry_comment;
echo '</p></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>';
+ }
}
unset($show_comments);
echo '</td></tr></table>';
@@ -2587,7 +3168,13 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
}
echo '><tr><td>';
- echo '<div id=panel_title>';
+
+ 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>';
+ }
if (file_exists("$dir/$d/comments/pending/$pending_comment/url.txt")) {
echo '<a target=_maj href=';
@@ -2614,7 +3201,6 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
fclose($open_pending_comment_key_file);
echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&comment=' . $pending_comment . '&key=' . $pending_comment_login_key . '&action=approve><img src=images/widget.cat.png width=11 height=11 border=0 align=right alt="post comment"></a>';
- echo '</div>';
echo '</div><div id=panel_body><table border=0 cellspacing=0 cellpadding=0><tr>';
if (file_exists("data/bb.txt") and file_exists("data/avatar.txt") and file_exists("$dir/$d/comments/pending/$pending_comment/author.txt")) {
@@ -2803,6 +3389,11 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
echo '</font><font style="font-size: 5px;"><br><br></font>';
readfile("$dir/$d/comments/pending/$pending_comment/comment.txt");
echo '</p></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>';
+ }
+
unset($show_pending_comments);
echo '</td></tr></table></p>';
}
@@ -2882,7 +3473,6 @@ if ($end < sizeof($items)) {
</td>
-<td width=15> </td>
<td width=175 valign=top>
<?php
@@ -2920,7 +3510,14 @@ $count_latest_items = count($show_latest_items);
if ($count_latest_items > 0) {
- echo '<div id=panel_title>Recent Entries</div><div id=panel_body>';
+ 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 'Recent Entries</div><div id=panel_body>';
$increment_recent_entries = 0;
@@ -2942,11 +3539,23 @@ if ($count_latest_items > 0) {
if ($count_latest_items > 0) {
echo '</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>';
+ }
?>
<?php
if (file_exists("data/bb.txt") and file_exists("data/bb-stats.txt")) {
- echo "<div id=panel_title>Bulletin Board</div><div id=panel_body>";
+
+ 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 "Bulletin Board</div><div id=panel_body>";
if (file_exists("data/members/active") and file_exists("data/bb.txt")) {
if ($dh_active_list = opendir("data/members/active")) {
while (($entry_active_list = readdir($dh_active_list)) !== false) {
@@ -2974,9 +3583,10 @@ if (file_exists("data/bb.txt") and file_exists("data/bb-stats.txt")) {
continue;
}
- if (file_exists("data/items/$entry_mempost_list/member.txt") and (!isset($_SESSION['logged_in']))) {
- continue;
- }
+ // hide_member (20070606)
+ //if (file_exists("data/items/$entry_mempost_list/member.txt") and (!isset($_SESSION['logged_in']))) {
+ // continue;
+ //}
$get_cat_dir = file_get_contents("data/items/$entry_mempost_list/category.txt");
@@ -3006,19 +3616,50 @@ if (file_exists("data/bb.txt") and file_exists("data/bb-stats.txt")) {
echo "<br>Latest Login: <a href=member.php?id=$bb_last>$bb_last</a>";
}
echo "</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>';
+ }
}
?>
<form enctype="multipart/form-data" action="dig.php" method="post">
-<div id=panel_title>Search</div>
+
+<?php
+
+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>';
+}
+
+?>
+
+Search</div>
<div id=panel_body>
<input type=text class=search name=search autocomplete=off maxlength=55>
</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>';
+ }
+?>
+
</form>
<?php
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo "<div id=panel_title>Find Entries</div><div id=panel_body>";
+
+ 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 "Find Entries</div><div id=panel_body>";
echo "<a href=index.php?find=private>Private</a>";
if (file_exists("data/bb.txt")) {
echo "<br><a href=index.php?find=member>Members-Only</a>";
@@ -3027,6 +3668,10 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
echo "<br><a href=index.php?find=filedrop>With Attached Files</a>";
echo "<br><a href=index.php?find=album>With Photo Album</a>";
echo "</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>';
+ }
}
?>
@@ -3056,7 +3701,15 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
$count_categories = count($show_categories);
if ($count_categories > 0) {
- echo '<div id=panel_title>Categories</div><div id=panel_body>';
+
+ 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 'Categories</div><div id=panel_body>';
foreach ($show_categories as $category) {
echo "<a href=\"" . $_SERVER['PHP_SELF'] . "?category=" . $category . "\">";
if (file_exists("data/categories/$category/title.txt")) {
@@ -3069,11 +3722,23 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
echo "</a><br />";
}
echo '</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>';
+ }
}
}
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo '<div id=panel_title>Statistics</div><div id=panel_body>';
+
+ 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 'Statistics</div><div id=panel_body>';
echo "Total Entries: $count_latest_items";
if (file_exists("data/hits.txt")) {
echo '<br>Site Hits: ';
@@ -3101,6 +3766,10 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
}
echo '</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>';
+ }
}
}
@@ -3124,7 +3793,15 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
$count_pending_comment_flags = count($show_pending_comment_flags);
if (($count_latest_items > 0) and ($count_pending_comment_flags > 0)) {
- echo '<div id=panel_title>Pending Comments</div>';
+
+ 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 'Pending Comments</div>';
echo '<div id=panel_body>';
if ($dh_list_pending_comment_flags = opendir("data/comments/pending")) {
while (($entry_list_pending_comment_flags = readdir($dh_list_pending_comment_flags)) !== false) {
@@ -3150,6 +3827,10 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
closedir($dh_list_pending_comment_flags);
}
echo '</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>';
+ }
}
}
?>
@@ -3171,7 +3852,15 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
$count_pending_list = count($show_pending_list);
if ($count_pending_list > 0) {
- echo "<div id=panel_title>Pending Member";
+
+ 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 "Pending Member";
if ($count_pending_list > 1) {
echo "s";
}
@@ -3180,8 +3869,21 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
echo "s";
}
echo " below.</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>';
+ }
+
foreach ($show_pending_list as $pending_list_entry) {
- echo "<div id=panel_title>$pending_list_entry";
+
+ 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 "$pending_list_entry";
echo '<a href=reg.php?username=';
echo $pending_list_entry;
echo '&key=';
@@ -3204,7 +3906,9 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
echo "</a>";
}
echo "<br>";
- readfile("data/members/confirmed/$pending_list_entry/email.txt");
+ $pending_email = file_get_contents("data/members/confirmed/$pending_list_entry/email.txt");
+ $pending_email = wordwrap($pending_email,30);
+ echo $pending_email;
if (file_exists("data/members/confirmed/$pending_list_entry/timestamp.txt")) {
$confirmed = file_get_contents("data/members/confirmed/$pending_list_entry/timestamp.txt");
$confirmed_year = substr($confirmed,0,4);
@@ -3216,6 +3920,10 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
echo "<br>$email_confirmed";
}
echo "</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>';
+ }
}
}
}
@@ -3252,7 +3960,15 @@ if (file_exists("data/albums")) {
$count_album_list = count($show_album_list);
if ($count_album_list > 0) {
- echo '<div id=panel_title>Albums</div>';
+
+ 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 'Albums</div>';
echo '<div id=panel_body>';
foreach ($show_album_list as $album_list_entry) {
echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=';
@@ -3262,6 +3978,10 @@ if (file_exists("data/albums")) {
echo '</a><br>';
}
echo '</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>';
+ }
}
}
?>
@@ -3307,7 +4027,15 @@ if (file_exists("data/items")) {
$archive_entries = implode(" ",$show_archive_list);
$unique_archive_list = array_unique($show_archive_list);
- echo "<div id=panel_title>Archives ($count_archive_list)</div>";
+
+ 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 "Archives ($count_archive_list)</div>";
echo "<div id=panel_body>";
foreach ($unique_archive_list as $archive_list_entry) {
$archive_list_value = substr($archive_list_entry,0,6);
@@ -3318,7 +4046,11 @@ if (file_exists("data/items")) {
echo substr_count($archive_entries,$archive_list_entry);
echo ")<br>";
}
- echo "</select></div></form>";
+ echo "</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>';
+ }
}
}
@@ -3329,20 +4061,44 @@ if (file_exists("data/items")) {
<?php
if (file_exists("data/clustrmaps.php")) {
- echo '<div id=panel_title>ClustrMaps</div>';
+
+ 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 'ClustrMaps</div>';
echo '<div id=panel_body><center>';
include("data/clustrmaps.php");
echo '</center></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>';
+ }
}
?>
<?php
if (file_exists("data/adsense.php")) {
- echo '<div id=panel_title>AdSense</div>';
+
+ 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 'AdSense</div>';
echo '<div id=panel_body><center>';
include("data/adsense.php");
echo '</center></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>';
+ }
}
?>
@@ -3373,7 +4129,14 @@ if (file_exists("data/panels")) {
if ($count_right_panel_list > 0) {
foreach ($show_right_panel_list as $right_panel_list_entry) {
if (!file_exists("data/panels/$right_panel_list_entry/free.txt")) {
- echo '<div id=panel_title>';
+
+ 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>';
+ }
+
readfile("data/panels/$right_panel_list_entry/title.txt");
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
echo "<a href=panels.php#{$right_panel_list_entry}>";
@@ -3386,6 +4149,10 @@ if (file_exists("data/panels")) {
}
include("data/panels/$right_panel_list_entry/panel.php");
echo '</div>';
+
+ if (file_exists("data/round.txt") and !file_exists("data/panels/$right_panel_list_entry/free.txt")) {
+ echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+ }
}
}
}
@@ -3395,7 +4162,7 @@ if (file_exists("data/panels")) {
if ($count_latest_items > 0) {
echo '<p><table border=0 cellspacing=2 cellpadding=0 width=100%>';
- echo '<tr><td align=center><a target="_button" href="http://engels.mortega.net/index.php?entry=20050521000019"><img src=images/button.maj.png border=0 width=80 height=15></a></td></tr>';
+ 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>';
echo '<tr><td align=center><a target="_button" href="http://php.net/"><img src=images/button.php.png border=0 width=80 height=15></a></td></tr>';
$validate_uri = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
$validate_uri = str_replace('//', '/', $validate_uri);
diff --git a/member.php b/member.php
index 24ffb93..7c0f75c 100644
--- a/member.php
+++ b/member.php
@@ -718,9 +718,10 @@ if ($dh_posts = opendir("data/items")) {
continue;
}
- if (file_exists("data/items/$member_posts/member.txt") and (!isset($_SESSION['logged_in']))) {
- continue;
- }
+ // hide_member (20070606)
+ //if (file_exists("data/items/$member_posts/member.txt") and (!isset($_SESSION['logged_in']))) {
+ // continue;
+ //}
$post_cat_dir = file_get_contents("data/items/$member_posts/category.txt");
diff --git a/panels.php b/panels.php
index b6bc790..0a061ce 100644
--- a/panels.php
+++ b/panels.php
@@ -116,6 +116,57 @@ if (isset($_REQUEST['panel_right']) and !empty($_REQUEST['panel_right']) and ($_
}
}
+if ((!isset($_REQUEST['panel_center']) or !empty($_REQUEST['panel_center'])) and ($_REQUEST['panel_edit'] == "on")) {
+ if (file_exists("data/panels/{$_REQUEST['panel_id']}/center.txt")) {
+ unlink("data/panels/{$_REQUEST['panel_id']}/center.txt");
+ }
+}
+
+if (isset($_REQUEST['panel_center']) and !empty($_REQUEST['panel_center']) and ($_REQUEST['panel_center'] == "on")) {
+ if (!file_exists("data/panels/{$_REQUEST['panel_id']}/center.txt")) {
+ touch("data/panels/{$_REQUEST['panel_id']}/center.txt");
+ }
+ if (file_exists("data/panels/{$_REQUEST['panel_id']}/right.txt")) {
+ unlink("data/panels/{$_REQUEST['panel_id']}/right.txt");
+ }
+}
+
+if ((!isset($_REQUEST['panel_top']) or !empty($_REQUEST['panel_top'])) and ($_REQUEST['panel_edit'] == "on")) {
+ if (file_exists("data/panels/{$_REQUEST['panel_id']}/top.txt")) {
+ unlink("data/panels/{$_REQUEST['panel_id']}/top.txt");
+ }
+}
+
+if (isset($_REQUEST['panel_top']) and !empty($_REQUEST['panel_top']) and ($_REQUEST['panel_top'] == "on")) {
+ if (!file_exists("data/panels/{$_REQUEST['panel_id']}/top.txt")) {
+ touch("data/panels/{$_REQUEST['panel_id']}/top.txt");
+ }
+ if (file_exists("data/panels/{$_REQUEST['panel_id']}/right.txt")) {
+ unlink("data/panels/{$_REQUEST['panel_id']}/right.txt");
+ }
+ if (file_exists("data/panels/{$_REQUEST['panel_id']}/center.txt")) {
+ unlink("data/panels/{$_REQUEST['panel_id']}/center.txt");
+ }
+}
+
+if ((!isset($_REQUEST['panel_entry']) or !empty($_REQUEST['panel_entry'])) and ($_REQUEST['panel_edit'] == "on")) {
+ if (file_exists("data/panels/{$_REQUEST['panel_id']}/entry.txt")) {
+ unlink("data/panels/{$_REQUEST['panel_id']}/entry.txt");
+ }
+}
+
+if (isset($_REQUEST['panel_entry']) and !empty($_REQUEST['panel_entry']) and ($_REQUEST['panel_entry'] == "on")) {
+ if (!file_exists("data/panels/{$_REQUEST['panel_id']}/entry.txt")) {
+ touch("data/panels/{$_REQUEST['panel_id']}/entry.txt");
+ }
+ if (file_exists("data/panels/{$_REQUEST['panel_id']}/right.txt")) {
+ unlink("data/panels/{$_REQUEST['panel_id']}/right.txt");
+ }
+ if (file_exists("data/panels/{$_REQUEST['panel_id']}/center.txt")) {
+ unlink("data/panels/{$_REQUEST['panel_id']}/center.txt");
+ }
+}
+
if (isset($_REQUEST['panel_title']) and !empty($_REQUEST['panel_title'])) {
$panel_title = ucfirst(strip_tags(trim($_REQUEST['panel_title'])));
@@ -238,7 +289,22 @@ a:active {
if (file_exists("data/panels/$panel/right.txt")) {
echo " checked";
}
- echo '> right<br><input type=checkbox name=panel_del> delete </p></td><td><textarea class=input name=panel_content rows=10>';
+ echo '> right<br><input type=checkbox name=panel_center';
+ if (file_exists("data/panels/$panel/center.txt")) {
+ echo " checked";
+ }
+
+ echo '> center<br><input type=checkbox name=panel_top';
+ if (file_exists("data/panels/$panel/top.txt")) {
+ echo " checked";
+ }
+
+ echo '> top<br><input type=checkbox name=panel_entry';
+ if (file_exists("data/panels/$panel/entry.txt")) {
+ echo " checked";
+ }
+
+ echo '> entry<br><input type=checkbox name=panel_del> delete </p></td><td><textarea class=input name=panel_content rows=10>';
readfile("data/panels/$panel/panel.php");
echo "</textarea></td></tr><tr><td></td><td><input type=hidden name=panel_id value=$panel><input type=hidden name=panel_edit value=on><input type=submit class=input value=submit></p></td>";
echo "</tr><tr><td></td><td><p> </p></td></tr></form>";
diff --git a/settings.php b/settings.php
index 670ece5..0105f35 100644
--- a/settings.php
+++ b/settings.php
@@ -189,6 +189,18 @@ if (!isset($_REQUEST['nocat']) or empty($_REQUEST['nocat'])) {
}
}
+if (isset($_REQUEST['round']) and !empty($_REQUEST['round']) and ($_REQUEST['round'] == "on") and !file_exists("data/round.txt")) {
+ touch("data/round.txt");
+}
+
+if (!isset($_REQUEST['round']) or empty($_REQUEST['round'])) {
+ if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+ if (file_exists("data/round.txt")) {
+ unlink("data/round.txt");
+ }
+ }
+}
+
if (isset($_REQUEST['center']) and !empty($_REQUEST['center']) and ($_REQUEST['center'] == "on") and !file_exists("data/center.txt")) {
touch("data/center.txt");
}
@@ -912,10 +924,10 @@ a:active {
<tr><td><p>ping on content change</p></td><td><input autocomplete=off class=input type=text name=ping value="<?php readfile("data/ping.txt"); ?>"></td></tr>
<tr><td rowspan=<?php
if (file_exists("data/email.txt")) {
- echo "8";
+ echo "9";
}
else {
- echo "7";
+ echo "8";
}
?>
><p>toggles</p></td><td><p><input type=checkbox name=nocomment <?php if (file_exists("data/nocomment.txt")) { echo checked; } ?>> Do not allow visitors to post comments.</p></td></tr>
@@ -926,6 +938,7 @@ a:active {
<tr><td><p><input type=checkbox name=xarc <?php if (file_exists("data/xarc.txt")) { echo checked; } ?>> Do not show archives panel.</p></td></tr>
<tr><td><p><input type=checkbox name=xcat <?php if (file_exists("data/xcat.txt")) { echo checked; } ?>> Do not show categories panel.</p></td></tr>
<tr><td><p><input type=checkbox name=nocat <?php if (file_exists("data/nocat.txt")) { echo checked; } ?>> Do not show categorized items with unfiled entries.</p></td></tr>
+<tr><td><p><input type=checkbox name=round <?php if (file_exists("data/round.txt")) { echo checked; } ?>> Use round corners.</p></td></tr>
<tr><td><p><input type=checkbox name=center <?php if (file_exists("data/center.txt")) { echo checked; } ?>> Display <?php
if (file_exists("data/bb.txt")) {
tree 0885d7bcea025c9c5df75f7c7e54ec15500edb4e
parent b5cce784c77372dd99122fd029004764abe15d23
author Engels Antonio <engels@majcms.org> 1277314188 +0800
committer Engels Antonio <engels@majcms.org> 1277314188 +0800
maj-0.14-20070707-bb.zip
diff --git a/add.php b/add.php
index 819c4b0..de835ce 100644
--- a/add.php
+++ b/add.php
@@ -676,12 +676,17 @@ if (file_exists("data/members/active") and file_exists("data/ml.txt") and file_e
}
if ($_SESSION['logged_in'] == file_get_contents("data/username.txt")) {
+ $ml_author = file_get_contents("data/author.txt");
$ml_from = file_get_contents("data/email.txt");
+ $ml_from = '"' . $ml_author . '" <' . $ml_from . '>';
}
if ($_SESSION['logged_in'] != file_get_contents("data/username.txt")) {
if (file_exists("data/members/active/{$_SESSION['logged_in']}/rw.txt") and file_exists("data/bb.txt")) {
+ $ml_from_firstname = file_get_contents("data/members/active/{$_SESSION['logged_in']}/firstname.txt");
+ $ml_from_lastname = file_get_contents("data/members/active/{$_SESSION['logged_in']}/lastname.txt");
$ml_from = file_get_contents("data/members/active/{$_SESSION['logged_in']}/email.txt");
+ $ml_from = '"' . "$ml_from_firstname $ml_from_lastname" . '" <' . $ml_from . '>';
}
}
@@ -704,6 +709,8 @@ if (file_exists("data/members/active") and file_exists("data/ml.txt") and file_e
$ml_body = str_replace('<img src=images/smileys/surprised.png border=0>', '=)', $ml_body);
$ml_body = str_replace('<img src=images/smileys/undecided.png border=0>', ':\\', $ml_body);
$ml_body = str_replace('<img src=images/smileys/wink.png border=0>', ';)', $ml_body);
+ $ml_body = str_replace('&','&',$ml_body);
+ $ml_body = str_replace('®','(R)',$ml_body);
$ml_body = strip_tags($ml_body);
if (file_exists("data/ml-header.txt")) {
@@ -738,17 +745,22 @@ if (file_exists("data/members/active") and file_exists("data/ml.txt") and file_e
continue;
}
+ $ml_to_firstname = file_get_contents("data/members/active/$ml_member/firstname.txt");
+ $ml_to_lastname = file_get_contents("data/members/active/$ml_member/lastname.txt");
$ml_to = file_get_contents("data/members/active/$ml_member/email.txt");
+ $ml_to = '"' . "$ml_to_firstname $ml_to_lastname" . '" <' . $ml_to . '>';
if (file_exists("data/ml-reply2.txt")) {
mail($ml_to, $ml_subject, $ml_body,
"From: $ml_from\r\n" .
"Reply-To: $ml_reply2\r\n" .
+ "References: $entry\r\n" .
"X-Mailer: $ml_mailer");
}
else {
mail($ml_to, $ml_subject, $ml_body,
"From: $ml_from\r\n" .
+ "References: $entry\r\n" .
"X-Mailer: $ml_mailer");
}
}
diff --git a/edit.php b/edit.php
index b835f0c..0ba13af 100644
--- a/edit.php
+++ b/edit.php
@@ -174,7 +174,7 @@ a:active {
if (isset($_REQUEST['comment']) and !empty($_REQUEST['comment']) and isset($_REQUEST['comment_txt']) and !empty($_REQUEST['comment_txt'])) {
$comment_txt = ucfirst($_REQUEST['comment_txt']);
- $comment_txt = htmlentities($comment_txt, ENT_NOQUOTES);
+ //$comment_txt = htmlentities($comment_txt, ENT_NOQUOTES);
// $comment_txt = str_replace('href=', 'target=_maj href=', $comment_txt);
$comment_txt = str_replace("\n", '<br />', $comment_txt);
$comment_txt = str_replace(':((', '<img src=images/smileys/crying.png border=0>', $comment_txt);
diff --git a/index.php b/index.php
index 6b65d83..170c02a 100644
--- a/index.php
+++ b/index.php
@@ -232,13 +232,22 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
$ml_from = file_get_contents("$live_dir/email.txt");
$ml_from = str_replace(" at ","@",$ml_from);
+ $ml_from_firstname = file_get_contents("$live_dir/firstname.txt");
+ $ml_from_lastname = file_get_contents("$live_dir/lastname.txt");
+
+ $ml_from = '"' . "$ml_from_firstname $ml_from_lastname" . '" <' . $ml_from . '>';
+
$ml_subject = file_get_contents("data/items/{$_REQUEST['entry']}/title.txt");
if (file_exists("data/ml-prepend.txt")) {
- $ml_subject = file_get_contents("data/ml-prepend.txt") . " " . $ml_subject;
+ $ml_prepend = file_get_contents("data/ml-prepend.txt");
+ $ml_subject = str_replace($ml_prepend,"",$ml_subject);
+ $ml_subject = $ml_prepend . " " . $ml_subject;
}
+ $ml_subject = str_replace("Re:","",$ml_subject);
$ml_subject = "Re: " . $ml_subject;
$ml_mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
+
$ml_body = file_get_contents("$live_dir/comment.txt");
$ml_body = str_replace('<br />', "\n", $ml_body);
$ml_body = str_replace('<img src=images/smileys/crying.png border=0>', ':((', $ml_body);
@@ -251,6 +260,10 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
$ml_body = str_replace('<img src=images/smileys/surprised.png border=0>', '=)', $ml_body);
$ml_body = str_replace('<img src=images/smileys/undecided.png border=0>', ':\\', $ml_body);
$ml_body = str_replace('<img src=images/smileys/wink.png border=0>', ';)', $ml_body);
+ $ml_body = str_replace('&','&',$ml_body);
+ $ml_body = str_replace('<','<',$ml_body);
+ $ml_body = str_replace('>','>',$ml_body);
+ $ml_body = str_replace('®','(R)',$ml_body);
if (file_exists("data/pf.txt") and file_exists("data/pf-badwords.txt")) {
$badwords = file_get_contents("data/pf-badwords.txt");
@@ -274,6 +287,10 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
$ml_body = $ml_body . "\n\nPlease visit the following URL for the full thread:\n\n" . $ml_url;
+ if (file_exists("data/items/{$_REQUEST['entry']}/member.txt")) {
+ $ml_body = $ml_body . "\n\nYou need to login first to view the entry or to add a comment.";
+ }
+
if (file_exists("data/ml-footer.txt")) {
$ml_footer = file_get_contents("data/ml-footer.txt");
$ml_body = $ml_body . "\n\n" . $ml_footer;
@@ -292,17 +309,22 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST
continue;
}
+ $ml_to_firstname = file_get_contents("data/members/active/$ml_member/firstname.txt");
+ $ml_to_lastname = file_get_contents("data/members/active/$ml_member/lastname.txt");
$ml_to = file_get_contents("data/members/active/$ml_member/email.txt");
+ $ml_to = '"' . "$ml_to_firstname $ml_to_lastname" . '" <'. $ml_to . '>';
if (file_exists("data/ml-reply2.txt")) {
mail($ml_to, $ml_subject, $ml_body,
"From: $ml_from\r\n" .
"Reply-To: $ml_reply2\r\n" .
+ "References: {$_REQUEST['entry']}\r\n" .
"X-Mailer: $ml_mailer");
}
else {
mail($ml_to, $ml_subject, $ml_body,
"From: $ml_from\r\n" .
+ "References: {$_REQUEST['entry']}\r\n" .
"X-Mailer: $ml_mailer");
}
}
@@ -460,7 +482,7 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry'])) {
fclose($fp_key_txt);
$comment_quote = ucfirst($_REQUEST['new_comment']);
- $comment_quote = htmlentities($comment_quote, ENT_NOQUOTES);
+ //$comment_quote = htmlentities($comment_quote, ENT_NOQUOTES);
$sig_author_file = "data/author.txt";
$fp_sig_author = fopen($sig_author_file, "r");
@@ -472,13 +494,12 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry'])) {
$sig_url = "http://" . $sig_url;
$email_to = strtolower($_REQUEST['email']);
- $email_to = $firstname . " " . $lastname . ' <' . $email_to . '>';
+ $email_to = '"' . "$firstname $lastname" . '" <' . $email_to . '>';
if (file_exists("data/email.txt")) {
- $from_email_file = "data/email.txt";
- $fp_from_email = fopen($from_email_file, "r");
- $from_email = fread($fp_from_email, filesize($from_email_file));
- fclose($fp_from_email);
+ $from_email_author = file_get_contents("data/author.txt");
+ $from_email = file_get_contents("data/email.txt");
+ $from_email = '"' . $from_email_author . '" <' . $from_email . '>';
}
$mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
@@ -606,30 +627,32 @@ if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and file_exists("da
<style>
-body
-{
+body {
color: <?php
-if (file_exists("data/colors/font.txt")) {
- $font_color = file_get_contents("data/colors/font.txt");
- echo $font_color;
-}
-else {
- echo "#666666";
-}
-?>;
+ if (file_exists("data/colors/font.txt")) {
+ $font_color = file_get_contents("data/colors/font.txt");
+ echo $font_color;
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+
margin: 0px 0px 10px 10px;
padding: 0px;
text-align: left;
font-family: verdana, helvetica, sans-serif;
+
background-color: <?php
-if (file_exists("data/colors/bg.txt")) {
- $background_color = file_get_contents("data/colors/bg.txt");
- echo $background_color;
-}
-else {
- echo "#FFFFFF";
-}
-?>;
+ if (file_exists("data/colors/bg.txt")) {
+ $background_color = file_get_contents("data/colors/bg.txt");
+ echo $background_color;
+ }
+ else {
+ echo "#ffffff";
+ }
+ ?>;
+
<?php
if (file_exists("images/background.gif") and !file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>
background-image: url('images/background.gif');
@@ -655,212 +678,422 @@ else {
?>
}
-p, td
-{
+p, td {
font-size: 11px;
}
-a
-{
+a {
font-weight: bold;
text-decoration: none;
}
-a:link
-{
+a:link {
color: <?php
-if (file_exists("data/colors/link.txt")) {
- $a_link_color = file_get_contents("data/colors/link.txt");
- echo $a_link_color;
-}
-else {
- echo "#666666";
-}
-?>;
+ if (file_exists("data/colors/link.txt")) {
+ $a_link_color = file_get_contents("data/colors/link.txt");
+ echo $a_link_color;
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
}
-a:visited
-{
+a:visited {
color: <?php
-if (file_exists("data/colors/vlink.txt")) {
- $a_visited_color = file_get_contents("data/colors/vlink.txt");
- echo $a_visited_color;
-}
-else {
- echo "#666666";
-}
-?>;
+ if (file_exists("data/colors/vlink.txt")) {
+ $a_visited_color = file_get_contents("data/colors/vlink.txt");
+ echo $a_visited_color;
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
}
-a:hover
-{
+a:hover {
color: <?php
-if (file_exists("data/colors/hover.txt")) {
- $a_hover_color = file_get_contents("data/colors/hover.txt");
- echo $a_hover_color;
-}
-else {
- echo "#336699";
-}
-?>;
+ if (file_exists("data/colors/hover.txt")) {
+ $a_hover_color = file_get_contents("data/colors/hover.txt");
+ echo $a_hover_color;
+ }
+ else {
+ echo "#336699";
+ }
+ ?>;
}
a:active {
color: <?php
-if (file_exists("data/colors/hover.txt")) {
- $a_active_color = file_get_contents("data/colors/hover.txt");
- echo $a_active_color;
-}
-else {
- echo "#336699";
-}
-?>;
+ if (file_exists("data/colors/hover.txt")) {
+ $a_active_color = file_get_contents("data/colors/hover.txt");
+ echo $a_active_color;
+ }
+ else {
+ echo "#336699";
+ }
+ ?>;
}
-#panel_title
-{
+
+#panel_title {
font-family: verdana, helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
+
color: <?php
-if (file_exists("data/colors/pt-font.txt")) {
- $panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
- echo $panel_title_font_color;
-}
-else {
- echo "#666666";
-}
-?>;
+ if (file_exists("data/colors/pt-font.txt")) {
+ $panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
+ echo $panel_title_font_color;
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+
padding: 5px 5px 5px 5px;
+
background-color: <?php
-if (file_exists("data/colors/pt-bg.txt")) {
- $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
- echo $panel_title_background_color;
-}
-else {
- echo "transparent";
-}
-?>;
+ if (file_exists("data/colors/pt-bg.txt")) {
+ $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
+ echo $panel_title_background_color;
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+
margin: 10px 0px 0px 0px;
+
border-color: <?php
-if (file_exists("data/colors/border.txt")) {
- $panel_title_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_title_border_color;
-}
-else {
- echo "#CCCCCC";
-}
-?>;
+ if (file_exists("data/colors/border.txt")) {
+ $panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $panel_title_border_color;
+ }
+ else {
+ echo "#cccccc";
+ }
+ ?>;
+
border-width: 1px 1px 0px 1px;
border-style: solid solid none solid;
}
-#panel_body
-{
+
+#panel_body {
font-family: verdana, helvetica, sans-serif;
font-size: 11px;
+
color: <?php
-if (file_exists("data/colors/pb-font.txt")) {
- $panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
- echo $panel_body_font_color;
-}
-else {
- echo "#666666";
-}
-?>;
- padding: 5px 5px 5px 5px;
+ if (file_exists("data/colors/pb-font.txt")) {
+ $panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
+ echo $panel_body_font_color;
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+
+ <?php
+ if (file_exists("data/round.txt")) {
+ echo 'padding: 5px 5px 2px 5px;';
+ }
+ else {
+ echo 'padding: 5px 5px 5px 5px;';
+ }
+ ?>
+
background-color: <?php
-if (file_exists("data/colors/pb-bg.txt")) {
- $panel_body_background_color = file_get_contents("data/colors/pb-bg.txt");
- echo $panel_body_background_color;
-}
-else {
- echo "transparent";
-}
-?>;
+ if (file_exists("data/colors/pb-bg.txt")) {
+ $panel_body_background_color = file_get_contents("data/colors/pb-bg.txt");
+ echo $panel_body_background_color;
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+
margin: 0px;
+
border-color: <?php
-if (file_exists("data/colors/border.txt")) {
- $panel_body_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_body_border_color;
-}
-else {
- echo "#CCCCCC";
-}
-?>;
- border-width: 1px 1px 1px 1px;
- border-style: solid solid solid solid;
+ if (file_exists("data/colors/border.txt")) {
+ $panel_body_border_color = file_get_contents("data/colors/border.txt");
+ echo $panel_body_border_color;
+ }
+ else {
+ echo "#cccccc";
+ }
+ ?>;
+
+ <?php
+ if (file_exists("data/round.txt")) {
+ echo 'border-width: 1px 1px 0px 1px;';
+ echo 'border-style: solid solid none solid;';
+ }
+ else {
+ echo 'border-width: 1px 1px 1px 1px;';
+ echo 'border-style: solid solid solid solid;';
+ }
+ ?>
}
-#panel_footer
-{
+
+#panel_footer {
font-family: verdana, helvetica, sans-serif;
font-size: 11px;
+
color: <?php
-if (file_exists("data/colors/pf-font.txt")) {
- $panel_footer_font_color = file_get_contents("data/colors/pf-font.txt");
- echo $panel_footer_font_color;
-}
-else {
- echo "#666666";
-}
-?>;
- padding: 5px 5px 5px 5px;
+ if (file_exists("data/colors/pf-font.txt")) {
+ $panel_footer_font_color = file_get_contents("data/colors/pf-font.txt");
+ echo $panel_footer_font_color;
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+
+ <?php
+ if (file_exists("data/round.txt")) {
+ echo 'padding: 5px 5px 2px 5px;';
+ }
+ else {
+ echo 'padding: 5px 5px 5px 5px;';
+ }
+ ?>
+
background-color: <?php
-if (file_exists("data/colors/pf-bg.txt")) {
- $panel_footer_background_color = file_get_contents("data/colors/pf-bg.txt");
- echo $panel_footer_background_color;
-}
-else {
- echo "transparent";
-}
-?>;
+ if (file_exists("data/colors/pf-bg.txt")) {
+ $panel_footer_background_color = file_get_contents("data/colors/pf-bg.txt");
+ echo $panel_footer_background_color;
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+
margin: 0px;
+
border-color: <?php
-if (file_exists("data/colors/border.txt")) {
- $panel_footer_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_footer_border_color;
-}
-else {
- echo "#CCCCCC";
-}
-?>;
- border-width: 0px 1px 1px 1px;
- border-style: none solid solid solid;
+ if (file_exists("data/colors/border.txt")) {
+ $panel_footer_border_color = file_get_contents("data/colors/border.txt");
+ echo $panel_footer_border_color;
+ }
+ else {
+ echo "#cccccc";
+ }
+ ?>;
+
+ <?php
+ if (file_exists("data/round.txt")) {
+ echo 'border-width: 1px 1px 0px 1px;';
+ echo 'border-style: solid solid none solid;';
+ }
+ else {
+ echo 'border-width: 0px 1px 1px 1px;';
+ echo 'border-style: none solid solid solid;';
+ }
+ ?>
+
text-align: right;
}
+
.input {
color: <?php
-if (file_exists("data/colors/border.txt")) {
- $input_color = file_get_contents("data/colors/border.txt");
- echo $input_color;
-}
-else {
- echo "#666666";
-}
-?>;
- background: #FFFFFF;
+ if (file_exists("data/colors/border.txt")) {
+ $input_color = file_get_contents("data/colors/border.txt");
+ echo $input_color;
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+
+ background: #ffffff;
+
border: <?php
-if (file_exists("data/colors/border.txt")) {
- $panel_footer_border_color = file_get_contents("data/colors/border.txt");
- echo $panel_footer_border_color;
-}
-else {
- echo "#999999";
-}
-?> solid 1px;
+ if (file_exists("data/colors/border.txt")) {
+ $panel_footer_border_color = file_get_contents("data/colors/border.txt");
+ echo $panel_footer_border_color;
+ }
+ else {
+ echo "#999999";
+ }
+ ?> solid 1px;
+
width: 300px;
font-family: verdana,helvetica,sans-serif;
font-size: 11px;
}
+
.search {
color: #666666;
- background: #FFFFFF;
+ background: #ffffff;
width: 100%;
font-family: verdana,helvetica,sans-serif;
font-size: 11px;
}
+
#panel_free {
padding: 0px 5px 0px 5px;
margin: 10px 0px 0px 0px;
}
+
+
+.rbtop {
+ display: block;
+ background: transparent;
+ font-size: 1px;
+ margin: 10px 0px 0px 0px;
+}
+
+.rbbottom {
+ display: block;
+ background: transparent;
+ font-size: 1px;
+ margin: 0px 0px 0px 0px;
+}
+
+.rb1t, .rb2t, .rb3t, .rb4t, .rb1b, .rb2b, .rb3b, .rb4b, .rb1e, .rb2e, .rb3e, .rb4e {
+ display: block;
+ overflow: hidden;
+}
+
+.rb1t, .rb2t, .rb3t, .rb1b, .rb2b, .rb3b, .rb1e, .rb2e, .rb3e {
+ height: 1px;
+}
+
+.rb2t, .rb3t, .rb4t {
+ background-color: <?php
+ if (file_exists("data/colors/pt-bg.txt")) {
+ $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
+ echo $panel_title_background_color;
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+ border-left: 1px solid;
+ border-right: 1px solid;
+ border-color: <?php
+ if (file_exists("data/colors/border.txt")) {
+ $panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $panel_title_border_color;
+ }
+ else {
+ echo "#cccccc";
+ };
+ ?>;
+}
+
+.rb2b, .rb3b, .rb4b {
+ background-color: <?php
+ if (file_exists("data/colors/pb-bg.txt")) {
+ $panel_title_background_color = file_get_contents("data/colors/pb-bg.txt");
+ echo $panel_title_background_color;
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+ border-left: 1px solid;
+ border-right: 1px solid;
+ border-color: <?php
+ if (file_exists("data/colors/border.txt")) {
+ $panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $panel_title_border_color;
+ }
+ else {
+ echo "#cccccc";
+ };
+ ?>;
+}
+
+.rb2e, .rb3e, .rb4e {
+ background-color: <?php
+ if (file_exists("data/colors/pf-bg.txt")) {
+ $panel_title_background_color = file_get_contents("data/colors/pf-bg.txt");
+ echo $panel_title_background_color;
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+ border-left: 1px solid;
+ border-right: 1px solid;
+ border-color: <?php
+ if (file_exists("data/colors/border.txt")) {
+ $panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $panel_title_border_color;
+ }
+ else {
+ echo "#cccccc";
+ };
+ ?>;
+}
+
+.rb1t, .rb1b, .rb1e {
+ margin: 0 5px;
+ background: <?php
+ if (file_exists("data/colors/border.txt")) {
+ $panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $panel_title_border_color;
+ }
+ else {
+ echo "#cccccc";
+ };
+ ?>;
+}
+
+.rb2t, .rb2b, .rb2e {
+ margin: 0 3px;
+ border-width: 0 2px;
+}
+
+.rb3t, .rb3b, .rb3e {
+ margin: 0 2px;
+}
+
+.rb4t, .rb4b, .rb4e {
+ height: 2px;
+ margin: 0 1px;
+}
+
+.xtitle {
+ display: block;
+ border:0 solid;
+ border-width:0 1px;
+ padding: 1px 5px 5px 5px;
+ font-weight: bold;
+ color: <?php
+ if (file_exists("data/colors/pt-font.txt")) {
+ $panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
+ echo $panel_title_font_color;
+ }
+ else {
+ echo "#666666";
+ }
+ ?>;
+ background-color: <?php
+ if (file_exists("data/colors/pt-bg.txt")) {
+ $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
+ echo $panel_title_background_color;
+ }
+ else {
+ echo "transparent";
+ }
+ ?>;
+ border-color: <?php
+ if (file_exists("data/colors/border.txt")) {
+ $panel_title_border_color = file_get_contents("data/colors/border.txt");
+ echo $panel_title_border_color;
+ }
+ else {
+ echo "#cccccc";
+ };
+ ?>;
+}
+
+.rbspace {
+ height: 3px;
+}
+
</style>
<link rel="alternate" type="application/rss+xml" title="RSS 0.91" href="rss.php?ver=0.91">
@@ -879,10 +1112,21 @@ if (file_exists("header.php")) {
}
?>
-<table border=0 cellspacing=0 cellpadding=0 width=<?php if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) { echo "990"; } else { echo "905"; } ?>>
+<table border=0 cellspacing=10 cellpadding=0>
<tr><td width=175 valign=top>
-<div id=panel_title>Profile</div>
+<?php
+
+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>';
+}
+
+?>
+
+Profile</div>
<div id=panel_body>
<?php
if (file_exists("images/profile.gif")) {
@@ -946,7 +1190,24 @@ include("data/profile.php");
?>
</div>
-<div id=panel_title>Navigation</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="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>';
+}
+
+?>
+
+Navigation</div>
<div id=panel_body>
<a href="<?php echo $_SERVER['PHP_SELF']; ?>">Home</a><br>
@@ -988,6 +1249,12 @@ 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/sticky")) {
if ($dh_sticky_list = opendir("data/sticky")) {
@@ -1019,7 +1286,15 @@ if (file_exists("data/sticky")) {
$count_sticky_list = count($show_sticky_list);
if ($count_sticky_list > 0) {
- echo '<div id=panel_title>Quick Links</div>';
+
+ 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 'Quick Links</div>';
echo '<div id=panel_body>';
foreach ($show_sticky_list as $sticky_list_entry) {
echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=';
@@ -1029,6 +1304,10 @@ if (file_exists("data/sticky")) {
echo '</a><br>';
}
echo '</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>';
+ }
}
}
?>
@@ -1048,6 +1327,18 @@ if (file_exists("data/panels")) {
continue;
}
+ if (file_exists("data/panels/$entry_panel_list/center.txt")) {
+ continue;
+ }
+
+ if (file_exists("data/panels/$entry_panel_list/top.txt")) {
+ continue;
+ }
+
+ if (file_exists("data/panels/$entry_panel_list/entry.txt")) {
+ continue;
+ }
+
if ($entry_panel_list != "." && $entry_panel_list != ".." && fnmatch("*", $entry_panel_list)) {
$show_panel_list[] = $entry_panel_list;
}
@@ -1062,25 +1353,103 @@ if (file_exists("data/panels")) {
if ($count_panel_list > 0) {
foreach ($show_panel_list as $panel_list_entry) {
if (!file_exists("data/panels/$panel_list_entry/free.txt")) {
- echo '<div id=panel_title>';
+
+ 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>';
+ }
+
readfile("data/panels/$panel_list_entry/title.txt");
+
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
echo "<a href=panels.php#{$panel_list_entry}>";
echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
}
+
echo '</div><div id=panel_body>';
}
+
if (file_exists("data/panels/$panel_list_entry/free.txt")) {
echo '<div id=panel_free>';
}
+
include("data/panels/$panel_list_entry/panel.php");
+
echo '</div>';
+
+ if (file_exists("data/round.txt") and !file_exists("data/panels/$panel_list_entry/free.txt")) {
+ echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+ }
}
}
}
?>
-</td><td width=15> </td><td valign=top width=<?php if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) { echo "610"; } else { echo "525"; } ?>>
+</td>
+
+<td valign=top width=<?php if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) { echo "610"; } else { echo "525"; } ?>>
+
+<?php
+if (file_exists("data/panels")) {
+ if ($dh_top_panel_list = opendir("data/panels")) {
+ while (($entry_top_panel_list = readdir($dh_top_panel_list)) !== false) {
+
+ if (file_exists("data/panels/$entry_top_panel_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
+ continue;
+ }
+
+ if (!file_exists("data/panels/$entry_top_panel_list/top.txt")) {
+ continue;
+ }
+
+ if ($entry_top_panel_list != "." && $entry_top_panel_list != ".." && fnmatch("*", $entry_top_panel_list)) {
+ $show_top_panel_list[] = $entry_top_panel_list;
+ }
+ }
+ closedir($dh_top_panel_list);
+ }
+
+ sort($show_top_panel_list);
+ reset($show_top_panel_list);
+ $count_top_panel_list = count($show_top_panel_list);
+
+ if ($count_top_panel_list > 0) {
+ foreach ($show_top_panel_list as $top_panel_list_entry) {
+ if (!file_exists("data/panels/$top_panel_list_entry/free.txt")) {
+
+ 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>';
+ }
+
+ readfile("data/panels/$top_panel_list_entry/title.txt");
+
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
+ echo "<a href=panels.php#{$top_panel_list_entry}>";
+ echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
+ }
+
+ echo '</div><div id=panel_body>';
+ }
+
+ if (file_exists("data/panels/$top_panel_list_entry/free.txt")) {
+ echo '<div id=panel_free>';
+ }
+
+ include("data/panels/$top_panel_list_entry/panel.php");
+ echo '</div>';
+
+ if (file_exists("data/round.txt") and !file_exists("data/panels/$top_panel_list_entry/free.txt")) {
+ echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+ }
+ }
+ }
+}
+?>
<?php
@@ -1093,9 +1462,10 @@ if ($dh_latest_post_items = opendir($dir)) {
continue;
}
- if (file_exists("data/items/$entry_latest_post_items/member.txt") and (!isset($_SESSION['logged_in']))) {
- continue;
- }
+ // hide_member (20070606)
+ //if (file_exists("data/items/$entry_latest_post_items/member.txt") and (!isset($_SESSION['logged_in']))) {
+ // continue;
+ //}
$cat_dir = file_get_contents("data/items/$entry_latest_post_items/category.txt");
@@ -1116,7 +1486,14 @@ $count_latest_post_items = count($show_latest_post_items);
if ($count_latest_post_items > 0) {
- echo "<div id=panel_title>Latest Entries</div><div id=panel_body>";
+ 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 "Latest Entries</div><div id=panel_body>";
echo "<table border=0 cellspacing=1 cellpadding=2 bgcolor=#cccccc width=100%>";
echo "<tr><td bgcolor=#eeeeee align=center><p>topic</p></td><td bgcolor=#eeeeee align=center><p>author</p></td><td bgcolor=#eeeeee align=center><p>views</p></td><td bgcolor=#eeeeee align=center><p>comments</p></td><td bgcolor=#eeeeee align=center><p>last post</p></td></tr>";
@@ -1173,16 +1550,80 @@ if ($count_latest_post_items > 0) {
}
unset($items_summary_comments);
- $increment_latest_post_entries = $increment_latest_post_entries + 1;
+ $increment_latest_post_entries = $increment_latest_post_entries + 1;
+ }
+}
+
+if ($count_latest_post_items > 0) {
+ echo "</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>';
+ }
+}
+
+}
+
+?>
+
+<?php
+if (file_exists("data/panels")) {
+ if ($dh_center_panel_list = opendir("data/panels")) {
+ while (($entry_center_panel_list = readdir($dh_center_panel_list)) !== false) {
+
+ if (file_exists("data/panels/$entry_center_panel_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
+ continue;
+ }
+
+ if (!file_exists("data/panels/$entry_center_panel_list/center.txt")) {
+ continue;
+ }
+
+ if ($entry_center_panel_list != "." && $entry_center_panel_list != ".." && fnmatch("*", $entry_center_panel_list)) {
+ $show_center_panel_list[] = $entry_center_panel_list;
+ }
+ }
+ closedir($dh_center_panel_list);
}
-}
-if ($count_latest_post_items > 0) {
- echo "</table></div>";
-}
+ sort($show_center_panel_list);
+ reset($show_center_panel_list);
+ $count_center_panel_list = count($show_center_panel_list);
+
+ if ($count_center_panel_list > 0) {
+ foreach ($show_center_panel_list as $center_panel_list_entry) {
+ if (!file_exists("data/panels/$center_panel_list_entry/free.txt")) {
-}
+ 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>';
+ }
+
+ readfile("data/panels/$center_panel_list_entry/title.txt");
+
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
+ echo "<a href=panels.php#{$center_panel_list_entry}>";
+ echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
+ }
+
+ echo '</div><div id=panel_body>';
+ }
+
+ if (file_exists("data/panels/$center_panel_list_entry/free.txt")) {
+ echo '<div id=panel_free>';
+ }
+ include("data/panels/$center_panel_list_entry/panel.php");
+ echo '</div>';
+
+ if (file_exists("data/round.txt") and !file_exists("data/panels/$center_panel_list_entry/free.txt")) {
+ echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+ }
+ }
+ }
+}
?>
<?php
@@ -1310,14 +1751,22 @@ foreach ($disp as $d) {
continue;
}
- echo '<table border=0 cellspacing=0 cellpadding=0 bgcolor=#CCCCCC style="background-color: transparent;"><tr><td width=';
+ echo '<table border=0 cellspacing=0 cellpadding=0 bgcolor=#cccccc style="background-color: transparent;"><tr><td width=';
if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
echo "610";
}
else {
echo "525";
}
- echo '><div id=panel_title>';
+ 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>';
+ }
+
readfile("$dir/$d/title.txt");
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
@@ -1502,9 +1951,10 @@ foreach ($disp as $d) {
continue;
}
- if (file_exists("data/items/$entry_posts/member.txt") and (!isset($_SESSION['logged_in']))) {
- continue;
- }
+ // hide_member (20070606)
+ //if (file_exists("data/items/$entry_posts/member.txt") and (!isset($_SESSION['logged_in']))) {
+ // continue;
+ //}
$post_cat_dir = file_get_contents("data/items/$entry_posts/category.txt");
@@ -1613,7 +2063,13 @@ foreach ($disp as $d) {
echo "<br><br>--<br>$sig";
}
- echo '</td></tr></table></div><div id=panel_footer>';
+ echo '</td></tr></table>';
+
+ if (file_exists("data/round.txt")) {
+ echo "<div class=rbspace></div>";
+ }
+
+ echo '</div><div id=panel_footer>';
echo '<font style="font-size: 10px; color: ';
if (file_exists("data/colors/pf-font.txt")) {
readfile("data/colors/pf-font.txt");
@@ -1810,7 +2266,80 @@ else {
echo '| <a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '>permalink</a></font>';
}
- echo '</div></td></tr></table>';
+ 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 '</td></tr></table>';
+
+// entry panel
+
+unset($show_per_entry_panel_list);
+
+if (file_exists("data/panels")) {
+ if ($dh_per_entry_panel_list = opendir("data/panels")) {
+ while (($entry_per_entry_panel_list = readdir($dh_per_entry_panel_list)) !== false) {
+
+ if (file_exists("data/panels/$entry_per_entry_panel_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
+ continue;
+ }
+
+ if (!file_exists("data/panels/$entry_per_entry_panel_list/entry.txt")) {
+ continue;
+ }
+
+ if ($entry_per_entry_panel_list != "." && $entry_per_entry_panel_list != ".." && fnmatch("*", $entry_per_entry_panel_list)) {
+ $show_per_entry_panel_list[] = $entry_per_entry_panel_list;
+ }
+ }
+ closedir($dh_per_entry_panel_list);
+ }
+
+ sort($show_per_entry_panel_list);
+ reset($show_per_entry_panel_list);
+ $count_per_entry_panel_list = count($show_per_entry_panel_list);
+
+ if ($count_per_entry_panel_list > 0) {
+ foreach ($show_per_entry_panel_list as $per_entry_panel_list_entry) {
+ if (!file_exists("data/panels/$per_entry_panel_list_entry/free.txt")) {
+
+ if (file_exists("data/round.txt")) {
+ echo '<p></p><b class="rbper_entry"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
+ }
+ else {
+ echo '<p></p><div id=panel_title>';
+ }
+
+ readfile("data/panels/$per_entry_panel_list_entry/title.txt");
+
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
+ echo "<a href=panels.php#{$per_entry_panel_list_entry}>";
+ echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
+ }
+
+ echo '</div><div id=panel_body>';
+ }
+
+ if (file_exists("data/panels/$per_entry_panel_list_entry/free.txt")) {
+ echo '<div id=panel_free>';
+ }
+
+ include("data/panels/$per_entry_panel_list_entry/panel.php");
+ echo '</div>';
+
+ if (file_exists("data/round.txt") and !file_exists("data/panels/$per_entry_panel_list_entry/free.txt")) {
+ echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+ }
+ }
+ }
+}
+
+
+// entry panel
+
+
if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == album) and file_exists("images/$d/album")) {
echo '<table border=0 cellspacing=0 cellpadding=0 width=';
@@ -1823,7 +2352,15 @@ else {
}
echo '><tr><td>';
- echo '<div id=panel_title>Album';
+
+ 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 'Album';
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
echo '<a href=del.php?entry=';
echo $d;
@@ -1963,7 +2500,13 @@ else {
}
}
}
- echo '</div></td></tr></table>';
+ echo '</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>';
}
@@ -1978,7 +2521,15 @@ else {
}
echo '><tr><td>';
- echo '<div id=panel_title>Filedrop';
+
+ 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 'Filedrop';
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
echo '<a href=del.php?entry=';
echo $d;
@@ -2031,7 +2582,13 @@ else {
closedir($dh_filedrop);
}
}
- echo '</div></td></tr></table>';
+ echo '</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>';
}
if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == pdf) and file_exists("data/items/$d/pdf/file")) {
@@ -2045,7 +2602,15 @@ else {
}
echo '><tr><td>';
- echo '<div id=panel_title>PDF';
+
+ 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 'PDF';
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
echo '<a href=del.php?entry=';
echo $d;
@@ -2090,7 +2655,13 @@ else {
closedir($dh_pdf);
}
}
- echo '</div></td></tr></table>';
+ echo '</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>';
}
if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == comments) and !file_exists("data/nocomment.txt")) {
@@ -2119,7 +2690,13 @@ else {
asort($show_comments);
reset($show_comments);
foreach ($show_comments as $comment) {
- echo '<div id=panel_title>';
+
+ 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>';
+ }
if (file_exists("$dir/$d/comments/live/$comment/url.txt")) {
echo '<a target=_maj href=';
@@ -2351,6 +2928,10 @@ else {
}
echo $entry_comment;
echo '</p></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>';
+ }
}
unset($show_comments);
echo '</td></tr></table>';
@@ -2587,7 +3168,13 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
}
echo '><tr><td>';
- echo '<div id=panel_title>';
+
+ 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>';
+ }
if (file_exists("$dir/$d/comments/pending/$pending_comment/url.txt")) {
echo '<a target=_maj href=';
@@ -2614,7 +3201,6 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
fclose($open_pending_comment_key_file);
echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&comment=' . $pending_comment . '&key=' . $pending_comment_login_key . '&action=approve><img src=images/widget.cat.png width=11 height=11 border=0 align=right alt="post comment"></a>';
- echo '</div>';
echo '</div><div id=panel_body><table border=0 cellspacing=0 cellpadding=0><tr>';
if (file_exists("data/bb.txt") and file_exists("data/avatar.txt") and file_exists("$dir/$d/comments/pending/$pending_comment/author.txt")) {
@@ -2803,6 +3389,11 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
echo '</font><font style="font-size: 5px;"><br><br></font>';
readfile("$dir/$d/comments/pending/$pending_comment/comment.txt");
echo '</p></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>';
+ }
+
unset($show_pending_comments);
echo '</td></tr></table></p>';
}
@@ -2882,7 +3473,6 @@ if ($end < sizeof($items)) {
</td>
-<td width=15> </td>
<td width=175 valign=top>
<?php
@@ -2920,7 +3510,14 @@ $count_latest_items = count($show_latest_items);
if ($count_latest_items > 0) {
- echo '<div id=panel_title>Recent Entries</div><div id=panel_body>';
+ 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 'Recent Entries</div><div id=panel_body>';
$increment_recent_entries = 0;
@@ -2942,11 +3539,23 @@ if ($count_latest_items > 0) {
if ($count_latest_items > 0) {
echo '</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>';
+ }
?>
<?php
if (file_exists("data/bb.txt") and file_exists("data/bb-stats.txt")) {
- echo "<div id=panel_title>Bulletin Board</div><div id=panel_body>";
+
+ 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 "Bulletin Board</div><div id=panel_body>";
if (file_exists("data/members/active") and file_exists("data/bb.txt")) {
if ($dh_active_list = opendir("data/members/active")) {
while (($entry_active_list = readdir($dh_active_list)) !== false) {
@@ -2974,9 +3583,10 @@ if (file_exists("data/bb.txt") and file_exists("data/bb-stats.txt")) {
continue;
}
- if (file_exists("data/items/$entry_mempost_list/member.txt") and (!isset($_SESSION['logged_in']))) {
- continue;
- }
+ // hide_member (20070606)
+ //if (file_exists("data/items/$entry_mempost_list/member.txt") and (!isset($_SESSION['logged_in']))) {
+ // continue;
+ //}
$get_cat_dir = file_get_contents("data/items/$entry_mempost_list/category.txt");
@@ -3006,19 +3616,50 @@ if (file_exists("data/bb.txt") and file_exists("data/bb-stats.txt")) {
echo "<br>Latest Login: <a href=member.php?id=$bb_last>$bb_last</a>";
}
echo "</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>';
+ }
}
?>
<form enctype="multipart/form-data" action="dig.php" method="post">
-<div id=panel_title>Search</div>
+
+<?php
+
+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>';
+}
+
+?>
+
+Search</div>
<div id=panel_body>
<input type=text class=search name=search autocomplete=off maxlength=55>
</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>';
+ }
+?>
+
</form>
<?php
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo "<div id=panel_title>Find Entries</div><div id=panel_body>";
+
+ 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 "Find Entries</div><div id=panel_body>";
echo "<a href=index.php?find=private>Private</a>";
if (file_exists("data/bb.txt")) {
echo "<br><a href=index.php?find=member>Members-Only</a>";
@@ -3027,6 +3668,10 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
echo "<br><a href=index.php?find=filedrop>With Attached Files</a>";
echo "<br><a href=index.php?find=album>With Photo Album</a>";
echo "</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>';
+ }
}
?>
@@ -3056,7 +3701,15 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
$count_categories = count($show_categories);
if ($count_categories > 0) {
- echo '<div id=panel_title>Categories</div><div id=panel_body>';
+
+ 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 'Categories</div><div id=panel_body>';
foreach ($show_categories as $category) {
echo "<a href=\"" . $_SERVER['PHP_SELF'] . "?category=" . $category . "\">";
if (file_exists("data/categories/$category/title.txt")) {
@@ -3069,11 +3722,23 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
echo "</a><br />";
}
echo '</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>';
+ }
}
}
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo '<div id=panel_title>Statistics</div><div id=panel_body>';
+
+ 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 'Statistics</div><div id=panel_body>';
echo "Total Entries: $count_latest_items";
if (file_exists("data/hits.txt")) {
echo '<br>Site Hits: ';
@@ -3101,6 +3766,10 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
}
echo '</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>';
+ }
}
}
@@ -3124,7 +3793,15 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
$count_pending_comment_flags = count($show_pending_comment_flags);
if (($count_latest_items > 0) and ($count_pending_comment_flags > 0)) {
- echo '<div id=panel_title>Pending Comments</div>';
+
+ 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 'Pending Comments</div>';
echo '<div id=panel_body>';
if ($dh_list_pending_comment_flags = opendir("data/comments/pending")) {
while (($entry_list_pending_comment_flags = readdir($dh_list_pending_comment_flags)) !== false) {
@@ -3150,6 +3827,10 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
closedir($dh_list_pending_comment_flags);
}
echo '</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>';
+ }
}
}
?>
@@ -3171,7 +3852,15 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
$count_pending_list = count($show_pending_list);
if ($count_pending_list > 0) {
- echo "<div id=panel_title>Pending Member";
+
+ 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 "Pending Member";
if ($count_pending_list > 1) {
echo "s";
}
@@ -3180,8 +3869,21 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
echo "s";
}
echo " below.</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>';
+ }
+
foreach ($show_pending_list as $pending_list_entry) {
- echo "<div id=panel_title>$pending_list_entry";
+
+ 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 "$pending_list_entry";
echo '<a href=reg.php?username=';
echo $pending_list_entry;
echo '&key=';
@@ -3204,7 +3906,9 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
echo "</a>";
}
echo "<br>";
- readfile("data/members/confirmed/$pending_list_entry/email.txt");
+ $pending_email = file_get_contents("data/members/confirmed/$pending_list_entry/email.txt");
+ $pending_email = wordwrap($pending_email,30);
+ echo $pending_email;
if (file_exists("data/members/confirmed/$pending_list_entry/timestamp.txt")) {
$confirmed = file_get_contents("data/members/confirmed/$pending_list_entry/timestamp.txt");
$confirmed_year = substr($confirmed,0,4);
@@ -3216,6 +3920,10 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
echo "<br>$email_confirmed";
}
echo "</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>';
+ }
}
}
}
@@ -3252,7 +3960,15 @@ if (file_exists("data/albums")) {
$count_album_list = count($show_album_list);
if ($count_album_list > 0) {
- echo '<div id=panel_title>Albums</div>';
+
+ 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 'Albums</div>';
echo '<div id=panel_body>';
foreach ($show_album_list as $album_list_entry) {
echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=';
@@ -3262,6 +3978,10 @@ if (file_exists("data/albums")) {
echo '</a><br>';
}
echo '</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>';
+ }
}
}
?>
@@ -3307,7 +4027,15 @@ if (file_exists("data/items")) {
$archive_entries = implode(" ",$show_archive_list);
$unique_archive_list = array_unique($show_archive_list);
- echo "<div id=panel_title>Archives ($count_archive_list)</div>";
+
+ 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 "Archives ($count_archive_list)</div>";
echo "<div id=panel_body>";
foreach ($unique_archive_list as $archive_list_entry) {
$archive_list_value = substr($archive_list_entry,0,6);
@@ -3318,7 +4046,11 @@ if (file_exists("data/items")) {
echo substr_count($archive_entries,$archive_list_entry);
echo ")<br>";
}
- echo "</select></div></form>";
+ echo "</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>';
+ }
}
}
@@ -3329,20 +4061,44 @@ if (file_exists("data/items")) {
<?php
if (file_exists("data/clustrmaps.php")) {
- echo '<div id=panel_title>ClustrMaps</div>';
+
+ 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 'ClustrMaps</div>';
echo '<div id=panel_body><center>';
include("data/clustrmaps.php");
echo '</center></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>';
+ }
}
?>
<?php
if (file_exists("data/adsense.php")) {
- echo '<div id=panel_title>AdSense</div>';
+
+ 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 'AdSense</div>';
echo '<div id=panel_body><center>';
include("data/adsense.php");
echo '</center></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>';
+ }
}
?>
@@ -3373,7 +4129,14 @@ if (file_exists("data/panels")) {
if ($count_right_panel_list > 0) {
foreach ($show_right_panel_list as $right_panel_list_entry) {
if (!file_exists("data/panels/$right_panel_list_entry/free.txt")) {
- echo '<div id=panel_title>';
+
+ 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>';
+ }
+
readfile("data/panels/$right_panel_list_entry/title.txt");
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
echo "<a href=panels.php#{$right_panel_list_entry}>";
@@ -3386,6 +4149,10 @@ if (file_exists("data/panels")) {
}
include("data/panels/$right_panel_list_entry/panel.php");
echo '</div>';
+
+ if (file_exists("data/round.txt") and !file_exists("data/panels/$right_panel_list_entry/free.txt")) {
+ echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
+ }
}
}
}
@@ -3395,7 +4162,7 @@ if (file_exists("data/panels")) {
if ($count_latest_items > 0) {
echo '<p><table border=0 cellspacing=2 cellpadding=0 width=100%>';
- echo '<tr><td align=center><a target="_button" href="http://engels.mortega.net/index.php?entry=20050521000019"><img src=images/button.maj.png border=0 width=80 height=15></a></td></tr>';
+ 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>';
echo '<tr><td align=center><a target="_button" href="http://php.net/"><img src=images/button.php.png border=0 width=80 height=15></a></td></tr>';
$validate_uri = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
$validate_uri = str_replace('//', '/', $validate_uri);
diff --git a/member.php b/member.php
index 24ffb93..7c0f75c 100644
--- a/member.php
+++ b/member.php
@@ -718,9 +718,10 @@ if ($dh_posts = opendir("data/items")) {
continue;
}
- if (file_exists("data/items/$member_posts/member.txt") and (!isset($_SESSION['logged_in']))) {
- continue;
- }
+ // hide_member (20070606)
+ //if (file_exists("data/items/$member_posts/member.txt") and (!isset($_SESSION['logged_in']))) {
+ // continue;
+ //}
$post_cat_dir = file_get_contents("data/items/$member_posts/category.txt");
diff --git a/panels.php b/panels.php
index b6bc790..0a061ce 100644
--- a/panels.php
+++ b/panels.php
@@ -116,6 +116,57 @@ if (isset($_REQUEST['panel_right']) and !empty($_REQUEST['panel_right']) and ($_
}
}
+if ((!isset($_REQUEST['panel_center']) or !empty($_REQUEST['panel_center'])) and ($_REQUEST['panel_edit'] == "on")) {
+ if (file_exists("data/panels/{$_REQUEST['panel_id']}/center.txt")) {
+ unlink("data/panels/{$_REQUEST['panel_id']}/center.txt");
+ }
+}
+
+if (isset($_REQUEST['panel_center']) and !empty($_REQUEST['panel_center']) and ($_REQUEST['panel_center'] == "on")) {
+ if (!file_exists("data/panels/{$_REQUEST['panel_id']}/center.txt")) {
+ touch("data/panels/{$_REQUEST['panel_id']}/center.txt");
+ }
+ if (file_exists("data/panels/{$_REQUEST['panel_id']}/right.txt")) {
+ unlink("data/panels/{$_REQUEST['panel_id']}/right.txt");
+ }
+}
+
+if ((!isset($_REQUEST['panel_top']) or !empty($_REQUEST['panel_top'])) and ($_REQUEST['panel_edit'] == "on")) {
+ if (file_exists("data/panels/{$_REQUEST['panel_id']}/top.txt")) {
+ unlink("data/panels/{$_REQUEST['panel_id']}/top.txt");
+ }
+}
+
+if (isset($_REQUEST['panel_top']) and !empty($_REQUEST['panel_top']) and ($_REQUEST['panel_top'] == "on")) {
+ if (!file_exists("data/panels/{$_REQUEST['panel_id']}/top.txt")) {
+ touch("data/panels/{$_REQUEST['panel_id']}/top.txt");
+ }
+ if (file_exists("data/panels/{$_REQUEST['panel_id']}/right.txt")) {
+ unlink("data/panels/{$_REQUEST['panel_id']}/right.txt");
+ }
+ if (file_exists("data/panels/{$_REQUEST['panel_id']}/center.txt")) {
+ unlink("data/panels/{$_REQUEST['panel_id']}/center.txt");
+ }
+}
+
+if ((!isset($_REQUEST['panel_entry']) or !empty($_REQUEST['panel_entry'])) and ($_REQUEST['panel_edit'] == "on")) {
+ if (file_exists("data/panels/{$_REQUEST['panel_id']}/entry.txt")) {
+ unlink("data/panels/{$_REQUEST['panel_id']}/entry.txt");
+ }
+}
+
+if (isset($_REQUEST['panel_entry']) and !empty($_REQUEST['panel_entry']) and ($_REQUEST['panel_entry'] == "on")) {
+ if (!file_exists("data/panels/{$_REQUEST['panel_id']}/entry.txt")) {
+ touch("data/panels/{$_REQUEST['panel_id']}/entry.txt");
+ }
+ if (file_exists("data/panels/{$_REQUEST['panel_id']}/right.txt")) {
+ unlink("data/panels/{$_REQUEST['panel_id']}/right.txt");
+ }
+ if (file_exists("data/panels/{$_REQUEST['panel_id']}/center.txt")) {
+ unlink("data/panels/{$_REQUEST['panel_id']}/center.txt");
+ }
+}
+
if (isset($_REQUEST['panel_title']) and !empty($_REQUEST['panel_title'])) {
$panel_title = ucfirst(strip_tags(trim($_REQUEST['panel_title'])));
@@ -238,7 +289,22 @@ a:active {
if (file_exists("data/panels/$panel/right.txt")) {
echo " checked";
}
- echo '> right<br><input type=checkbox name=panel_del> delete </p></td><td><textarea class=input name=panel_content rows=10>';
+ echo '> right<br><input type=checkbox name=panel_center';
+ if (file_exists("data/panels/$panel/center.txt")) {
+ echo " checked";
+ }
+
+ echo '> center<br><input type=checkbox name=panel_top';
+ if (file_exists("data/panels/$panel/top.txt")) {
+ echo " checked";
+ }
+
+ echo '> top<br><input type=checkbox name=panel_entry';
+ if (file_exists("data/panels/$panel/entry.txt")) {
+ echo " checked";
+ }
+
+ echo '> entry<br><input type=checkbox name=panel_del> delete </p></td><td><textarea class=input name=panel_content rows=10>';
readfile("data/panels/$panel/panel.php");
echo "</textarea></td></tr><tr><td></td><td><input type=hidden name=panel_id value=$panel><input type=hidden name=panel_edit value=on><input type=submit class=input value=submit></p></td>";
echo "</tr><tr><td></td><td><p> </p></td></tr></form>";
diff --git a/settings.php b/settings.php
index 670ece5..0105f35 100644
--- a/settings.php
+++ b/settings.php
@@ -189,6 +189,18 @@ if (!isset($_REQUEST['nocat']) or empty($_REQUEST['nocat'])) {
}
}
+if (isset($_REQUEST['round']) and !empty($_REQUEST['round']) and ($_REQUEST['round'] == "on") and !file_exists("data/round.txt")) {
+ touch("data/round.txt");
+}
+
+if (!isset($_REQUEST['round']) or empty($_REQUEST['round'])) {
+ if (isset($_REQUEST['edit']) and ($_REQUEST['edit'] == "on")) {
+ if (file_exists("data/round.txt")) {
+ unlink("data/round.txt");
+ }
+ }
+}
+
if (isset($_REQUEST['center']) and !empty($_REQUEST['center']) and ($_REQUEST['center'] == "on") and !file_exists("data/center.txt")) {
touch("data/center.txt");
}
@@ -912,10 +924,10 @@ a:active {
<tr><td><p>ping on content change</p></td><td><input autocomplete=off class=input type=text name=ping value="<?php readfile("data/ping.txt"); ?>"></td></tr>
<tr><td rowspan=<?php
if (file_exists("data/email.txt")) {
- echo "8";
+ echo "9";
}
else {
- echo "7";
+ echo "8";
}
?>
><p>toggles</p></td><td><p><input type=checkbox name=nocomment <?php if (file_exists("data/nocomment.txt")) { echo checked; } ?>> Do not allow visitors to post comments.</p></td></tr>
@@ -926,6 +938,7 @@ a:active {
<tr><td><p><input type=checkbox name=xarc <?php if (file_exists("data/xarc.txt")) { echo checked; } ?>> Do not show archives panel.</p></td></tr>
<tr><td><p><input type=checkbox name=xcat <?php if (file_exists("data/xcat.txt")) { echo checked; } ?>> Do not show categories panel.</p></td></tr>
<tr><td><p><input type=checkbox name=nocat <?php if (file_exists("data/nocat.txt")) { echo checked; } ?>> Do not show categorized items with unfiled entries.</p></td></tr>
+<tr><td><p><input type=checkbox name=round <?php if (file_exists("data/round.txt")) { echo checked; } ?>> Use round corners.</p></td></tr>
<tr><td><p><input type=checkbox name=center <?php if (file_exists("data/center.txt")) { echo checked; } ?>> Display <?php
if (file_exists("data/bb.txt")) {