This commit has been accessed 517 times via Git panel.
commit 561693358ecb3bc0c21b5e8d67cf628ae0097c0d
tree adef726dde84649ab092fda2478fa5ee4de733bd
parent 5875303f2b7639c9b6b7d1710f81402c582273bd
author Engels Antonio <engels@majcms.org> 1308338110 +0800
committer Engels Antonio <engels@majcms.org> 1308338110 +0800
Rationalize dimensions based on a width of 960 pixels
diff --git a/add.php b/add.php
index 907220d..844b423 100644
--- a/add.php
+++ b/add.php
@@ -610,7 +610,7 @@ a:active {
$entry_image_width = $entry_image_size[0];
$entry_image_height = $entry_image_size[1];
- $max_entry_image_width = 513;
+ $max_entry_image_width = 510;
if ($entry_image_width > $max_entry_image_width) {
$sizefactor = (double)($max_entry_image_width / $entry_image_width);
diff --git a/css.php b/css.php
index c287705..8f4c936 100644
--- a/css.php
+++ b/css.php
@@ -60,11 +60,11 @@ else {
body {
padding: 0px;
- margin: 0px 0px 10px 10px;
+ margin: 0px;
color: #666666;
background-color: #ffffff;
text-align: left;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
<?php
echo "font-size: $maj_font_Dpx;";
@@ -76,7 +76,7 @@ body {
if (file_exists("data/fonts/body.txt")) {
$maj_font_body = file_get_contents("data/fonts/body.txt");
- echo "\n\tfont-family: $maj_font_body,\"lucida grande\",arial,helvetica,sans-serif;";
+ echo "\n\tfont-family: \"$maj_font_body\",\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
}
if (file_exists("data/colors/bg.txt")) {
@@ -224,10 +224,12 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
?>
}
-.panel_wrapper {
-
<?php
+ if (file_exists("data/round.txt") or file_exists("data/shadow.txt")) {
+ echo ".panel_wrapper {";
+ }
+
if (file_exists("data/round.txt")) {
echo "\n\t-webkit-border-radius: $maj_border_radius;";
echo "\n\t-khtml-border-radius: $maj_border_radius;";
@@ -242,18 +244,21 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
echo "\n\tbox-shadow: 0 0 $maj_blur_distance #ddd;";
}
+ if (file_exists("data/round.txt") or file_exists("data/shadow.txt")) {
+ echo "}";
+ }
+
?>
-}
.panel_title {
- padding: 5px;
+ padding: 4px;
margin: 0px;
color: #666666;
background-color: transparent;
border-color: #dedede;
border-width: 1px 1px 0px 1px;
border-style: solid solid none solid;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
font-weight: bold;
<?php
@@ -287,7 +292,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
if (file_exists("data/fonts/panel-title.txt")) {
$maj_font_panel_title = file_get_contents("data/fonts/panel-title.txt");
- echo "\n\tfont-family: $maj_font_panel_title,\"lucida grande\",arial,helvetica,sans-serif;";
+ echo "\n\tfont-family: \"$maj_font_panel_title\",\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
}
echo "\n";
@@ -296,23 +301,25 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
}
.panel_body, div.panel_body table, div.panel_entry_body table {
- color: #666666;
- <?php
+ color: #666666;<?php
if (file_exists("data/colors/pb-font.txt")) {
$maj_panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
echo "\n\tcolor: $maj_panel_body_font_color;";
}
+
+ echo "\n";
+
?>
}
.panel_body {
- padding: 5px;
+ padding: 4px;
margin: 0px 0px 10px 0px;
background-color: transparent;
border-color: #dedede;
border-width: 1px;
border-style: solid;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
<?php
echo "font-size: $maj_font_Mpx;";
@@ -340,7 +347,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
if (file_exists("data/fonts/panel-body.txt")) {
$maj_font_panel_body = file_get_contents("data/fonts/panel-body.txt");
- echo "\n\tfont-family: $maj_font_panel_body,\"lucida grande\",arial,helvetica,sans-serif;";
+ echo "\n\tfont-family: $maj_font_panel_body,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
}
echo "\n";
@@ -349,7 +356,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
}
.panel_footer {
- padding: 5px;
+ padding: 4px;
margin: 0px 0px 10px 0px;
color: #999999;
background-color: transparent;
@@ -357,7 +364,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
border-width: 0px 1px 1px 1px;
border-style: none solid solid solid;
text-align: right;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
<?php
echo "font-size: $maj_font_Spx;";
@@ -390,7 +397,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
if (file_exists("data/fonts/panel-footer.txt")) {
$maj_font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
- echo "\n\tfont-family: $maj_font_panel_footer,\"lucida grande\",arial,helvetica,sans-serif;";
+ echo "\n\tfont-family: $maj_font_panel_footer,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
}
echo "\n";
@@ -404,13 +411,13 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
}
.panel_entry_body {
- padding: 5px;
+ padding: 4px;
margin: 0px;
background-color: transparent;
border-color: #dedede;
border-width: 1px;
border-style: solid;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
<?php
echo "font-size: $maj_font_Mpx;";
@@ -427,7 +434,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
if (file_exists("data/fonts/panel-body.txt")) {
$maj_font_panel_body = file_get_contents("data/fonts/panel-body.txt");
- echo "\n\tfont-family: $maj_font_panel_body,\"lucida grande\",arial,helvetica,sans-serif;";
+ echo "\n\tfont-family: $maj_font_panel_body,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
}
echo "\n";
@@ -436,7 +443,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
}
.panel_category {
- padding: 5px;
+ padding: 4px;
margin: 0px;
color: #999999;
background-color: transparent;
@@ -444,7 +451,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
border-width: 0px 1px 1px 1px;
border-style: none solid solid solid;
text-align: left;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
<?php
echo "font-size: $maj_font_Spx;";
@@ -466,7 +473,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
if (file_exists("data/fonts/panel-footer.txt")) {
$maj_font_panel_category = file_get_contents("data/fonts/panel-footer.txt");
- echo "\n\tfont-family: $maj_font_panel_category,\"lucida grande\",arial,helvetica,sans-serif;";
+ echo "\n\tfont-family: $maj_font_panel_category,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
}
echo "\n";
@@ -480,7 +487,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
<?php
echo "font-size: $maj_font_Ipx;";
@@ -497,7 +504,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
if (file_exists("data/fonts/input.txt")) {
$maj_font_input = file_get_contents("data/fonts/input.txt");
- echo "\n\tfont-family: $maj_font_input,\"lucida grande\",arial,helvetica,sans-serif;";
+ echo "\n\tfont-family: $maj_font_input,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
}
echo "\n";
@@ -516,7 +523,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
background: #ffffff;
border: #999999 solid 1px;
font-weight: bold;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
<?php
echo "font-size: $maj_font_Mpx;";
@@ -533,7 +540,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
if (file_exists("data/fonts/input.txt")) {
$maj_font_input = file_get_contents("data/fonts/input.txt");
- echo "\n\tfont-family: $maj_font_input,\"lucida grande\",arial,helvetica,sans-serif;";
+ echo "\n\tfont-family: $maj_font_input,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
}
echo "\n";
@@ -558,14 +565,14 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
color: #666666;
background: #ffffff;
border: #dedede solid 1px;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
<?php
echo "font-size: $maj_font_Ipx;";
if (file_exists("data/fonts/input.txt")) {
$maj_font_input = file_get_contents("data/fonts/input.txt");
- echo "\n\tfont-family: $maj_font_input,\"lucida grande\",arial,helvetica,sans-serif;";
+ echo "\n\tfont-family: $maj_font_input,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
}
if (file_exists("data/colors/border.txt")) {
@@ -580,18 +587,15 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
width: 80px;
padding: 1px;
margin: 0px 0px 3px 0px;
- //margin: 0px 0px 2px 0px;
color: #ccc;
background-color: #fff;
border: 1px solid #dedede;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
font-size: 9px;
-
-webkit-box-shadow: 0 0 1px #ddd;
-khtml-box-shadow: 0 0 1px #ddd;
-moz-box-shadow: 0 0 1px #ddd;
box-shadow: 0 0 1px #ddd;
-
margin-left: auto;
margin-right: auto;
}
@@ -617,7 +621,6 @@ a.mblink:link,a.mblink:visited,a.mblink:active,a.mblink:hover {
color: #fff;
background-color: #ffa443;
border-color:#FC9 #888 #777 #F96;
-
-moz-box-shadow: inset 0px 2px 2px #f60, inset 0px 4px 4px #ff7400, inset 0px 6px 6px #ffaa33;
-webkit-box-shadow: inset 0px 2px 2px #f60, inset 0px 4px 4px #ff7400, inset 0px 6px 6px #ffaa33;
-khtml-box-shadow: inset 0px 2px 2px #f60, inset 0px 4px 4px #ff7400, inset 0px 6px 6px #ffaa33;
diff --git a/edit.php b/edit.php
index 3b8c413..ab7087c 100644
--- a/edit.php
+++ b/edit.php
@@ -111,7 +111,7 @@ a:active {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
- width: 525px;
+ width: 520px;
font-family: <?php
if (file_exists("data/fonts/panel-title.txt")) {
$font_panel_title = file_get_contents("data/fonts/panel-title.txt");
@@ -126,7 +126,7 @@ a:active {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
- width: 525px;
+ width: 520px;
font-family: <?php
if (file_exists("data/fonts/panel-body.txt")) {
$font_panel_body = file_get_contents("data/fonts/panel-body.txt");
@@ -146,7 +146,7 @@ a:active {
font-size: 12px;
font-weight: bold;
color: #666666;
- padding: 5px 5px 5px 5px;
+ padding: 4px 4px 4px 4px;
background-color: #ffffff;
margin: 0px;
border-color: #cccccc;
@@ -163,7 +163,7 @@ a:active {
?> arial, helvetica, sans-serif;
font-size: 11px;
color: #666666;
- padding: 5px 5px 5px 5px;
+ padding: 4px 4px 4px 4px;
background-color: #ffffff;
margin: 0px;
border-color: #cccccc;
@@ -180,7 +180,7 @@ a:active {
?> arial, helvetica, sans-serif;
font-size: 11px;
color: #666666;
- padding: 5px 5px 5px 5px;
+ padding: 4px 4px 4px 4px;
background-color: #ffffff;
margin: 0px;
border-color: #cccccc;
@@ -339,7 +339,7 @@ a:active {
exit();
}
?>
- <table border="0" cellspacing="0" cellpadding="0" bgcolor="#cccccc"><tr><td width="525">
+ <table border="0" cellspacing="0" cellpadding="0" bgcolor="#cccccc"><tr><td width="520">
<div id="panel_title"><?php
readfile("data/items/{$_REQUEST['entry']}/comments/{$_REQUEST['type']}/{$_REQUEST['comment']}/firstname.txt");
?> <?php
@@ -415,7 +415,7 @@ a:active {
<table border="0" cellspacing="0" cellpadding="0"><tr><td valign="top">
-<table border="0" cellspacing="0" cellpadding="0" bgcolor="#cccccc"><tr><td width="525">
+<table border="0" cellspacing="0" cellpadding="0" bgcolor="#cccccc"><tr><td width="520">
<div id="panel_title"><?php
readfile($title_file);
@@ -585,6 +585,31 @@ a:active {
}
?>>Do not display the entry date.</td></tr>
+<?php
+
+if (!file_exists("data/avatar.txt")) {
+
+ echo "<tr><td><input type=\"checkbox\" name=\"xauthor\"";
+
+ if (file_exists("data/items/{$_REQUEST['entry']}/xauthor.txt")) {
+ echo checked;
+ }
+
+ echo ">Do not display the entry author.</td></tr>";
+}
+else {
+ echo "<tr><td><input type=\"checkbox\" name=\"xavatar\"";
+
+ if (file_exists("data/items/{$_REQUEST['entry']}/xavatar.txt")) {
+ echo checked;
+ }
+
+ echo ">Do not display the entry avatar.</td></tr>";
+}
+
+?>
+
+
<tr><td><input type="checkbox" name="lastmod" <?php
$lastmod_sem = "data/items/{$_REQUEST['entry']}/lastmod.txt";
if (file_exists($lastmod_sem)) {
@@ -1005,7 +1030,7 @@ if (file_exists("images/{$_REQUEST['entry']}/album")) {
$entry_image_width = $entry_image_size[0];
$entry_image_height = $entry_image_size[1];
- $max_entry_image_width = 513;
+ $max_entry_image_width = 510;
if ($entry_image_width > $max_entry_image_width) {
$sizefactor = (double)($max_entry_image_width / $entry_image_width);
@@ -1234,6 +1259,34 @@ if (file_exists("images/{$_REQUEST['entry']}/album")) {
}
}
+ $xauthor_sem = "data/items/{$_REQUEST['entry']}/xauthor.txt";
+
+ if (isset($_POST['xauthor']) and !empty($_POST['xauthor']) and ($_POST['xauthor'] == "on")) {
+ if (!file_exists($xauthor_sem)) {
+ touch($xauthor_sem);
+ }
+ }
+
+ if (!isset($_POST['xauthor']) or empty($_POST['xauthor'])) {
+ if (file_exists($xauthor_sem)) {
+ unlink($xauthor_sem);
+ }
+ }
+
+ $xavatar_sem = "data/items/{$_REQUEST['entry']}/xavatar.txt";
+
+ if (isset($_POST['xavatar']) and !empty($_POST['xavatar']) and ($_POST['xavatar'] == "on")) {
+ if (!file_exists($xavatar_sem)) {
+ touch($xavatar_sem);
+ }
+ }
+
+ if (!isset($_POST['xavatar']) or empty($_POST['xavatar'])) {
+ if (file_exists($xavatar_sem)) {
+ unlink($xavatar_sem);
+ }
+ }
+
$fb_sem = "data/items/{$_REQUEST['entry']}/fb.txt";
if (isset($_POST['fb']) and !empty($_POST['fb']) and ($_POST['fb'] == "on")) {
diff --git a/index.php b/index.php
index 65aff82..022245e 100644
--- a/index.php
+++ b/index.php
@@ -62,16 +62,17 @@ else {
}
if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
- $maj_wmain = "610";
+ $maj_wside = "160";
+ $maj_wmain = "600";
}
else {
- $maj_wmain = "525";
+ $maj_wside = "200";
+ $maj_wmain = "520";
}
-$maj_wside = "175";
$maj_wspace = "10";
-$maj_wtable = $maj_wside + $maj_wspace + $maj_wmain + $maj_wspace + $maj_wside;
+$maj_wtable = $maj_wspace + $maj_wside + $maj_wspace + $maj_wmain + $maj_wspace + $maj_wside + $maj_wspace;
$maj_default_blog_title = "My Activity Journal";
$maj_default_username = "maj";
@@ -482,7 +483,7 @@ if (isset($maj_req_entry) and !empty($maj_req_entry)) {
$maj_title = file_get_contents("data/items/$maj_req_entry/title.txt");
- echo "<title>$maj_title</title>";
+ echo "<title>$maj_title</title>\r\n";
if ((!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username))) {
@@ -684,7 +685,7 @@ if (isset($maj_req_entry) and !empty($maj_req_entry)) {
}
}
else {
- echo "<title>$maj_default_title</title>";
+ echo "<title>$maj_default_title</title>\r\n";
}
if (file_exists("data/comments/pending") and (file_exists("data/xscreen.txt") or (isset($_SESSION['logged_in']) and file_exists("data/members/active/{$_SESSION['logged_in']}/xscreen.txt")))) {
@@ -823,130 +824,135 @@ if (file_exists("data/header.txt")) {
}
-echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wtable\">";
-echo "<tr><td width=\"$maj_wside\" height=\"$maj_wspace\"></td><td width=\"$maj_wspace\" height=\"$maj_wspace\"><div style=\"width: {$maj_wspace}px;\"></div></td><td width=\"$maj_wmain\" height=\"$maj_wspace\"></td><td width=\"$maj_wspace\" height=\"$maj_wspace\"><div style=\"width: {$maj_wspace}px;\"></div></td><td width=\"$maj_wside\" height=\"$maj_wspace\"></td></tr>";
+echo "\r\n\r\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wtable\">\r\n\r\n";
-echo "<tr><td width=\"$maj_wside\" valign=\"top\">";
+echo "<tr>\r\n<td width=\"$maj_wspace\" rowspan=\"2\"><div style=\"width: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wside\" height=\"$maj_wspace\"><div style=\"width: {$maj_wside}px; height: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wspace\" rowspan=\"2\"><div style=\"width: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wmain\" height=\"$maj_wspace\"><div style=\"width: {$maj_wmain}px; height: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wspace\" rowspan=\"2\"><div style=\"width: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wside\" height=\"$maj_wspace\"><div style=\"width: {$maj_wside}px; height: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wspace\" rowspan=\"2\"><div style=\"width: {$maj_wspace}px;\"></div></td>\r\n</tr>\r\n\r\n";
-if (!file_exists("data/xprofile.txt") or ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
-
-?>
-
-<div class="panel_wrapper"><div class="panel_title">Profile</div><div class="panel_body">
+echo "<tr><td width=\"$maj_wside\" valign=\"top\">\r\n";
-<?php
-
-if (file_exists("images/profile.gif")) {
- $maj_profile_gif_image_size = getimagesize("images/profile.gif");
- $maj_profile_gif_image_width = $maj_profile_gif_image_size[0];
- $maj_profile_gif_image_height = $maj_profile_gif_image_size[1];
+if (!file_exists("data/xprofile.txt") or ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
- $maj_max_profile_gif_image_width = 163;
+ echo "\r\n<div class=\"panel_wrapper\">\r\n\r\n\t<div class=\"panel_title\">Profile</div>\r\n\r\n\t<div class=\"panel_body\">\r\n\t\t";
+
+ if (file_exists("images/profile.gif")) {
+ $maj_profile_gif_image_size = getimagesize("images/profile.gif");
+ $maj_profile_gif_image_width = $maj_profile_gif_image_size[0];
+ $maj_profile_gif_image_height = $maj_profile_gif_image_size[1];
+
+ if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
+ $maj_max_profile_gif_image_width = 150;
+ }
+ else {
+ $maj_max_profile_gif_image_width = 190;
+ }
+
+ if ($maj_profile_gif_image_width > $maj_max_profile_gif_image_width) {
+ $maj_sizefactor = (double) ($maj_max_profile_gif_image_width / $maj_profile_gif_image_width) ;
+ $maj_profile_gif_image_width = (int) ($maj_profile_gif_image_width * $maj_sizefactor);
+ $maj_profile_gif_image_height = (int) ($maj_profile_gif_image_height * $maj_sizefactor);
- if ($maj_profile_gif_image_width > $maj_max_profile_gif_image_width) {
- $maj_sizefactor = (double) ($maj_max_profile_gif_image_width / $maj_profile_gif_image_width) ;
- $maj_profile_gif_image_width = (int) ($maj_profile_gif_image_width * $maj_sizefactor);
- $maj_profile_gif_image_height = (int) ($maj_profile_gif_image_height * $maj_sizefactor);
+ echo "<a href=\".\"><img src=\"images/profile.gif\" border=\"0\" width=\"$maj_profile_gif_image_width\" height=\"$maj_profile_gif_image_height\"></a><br>";
+ }
+ else {
+ echo "<a href=\".\"><img src=\"images/profile.gif\" border=\"0\" width=\"$maj_profile_gif_image_width\" height=\"$maj_profile_gif_image_height\" align=\"left\"></a>";
+ }
}
- echo "<img src=\"images/profile.gif\" border=\"0\" width=\"$maj_profile_gif_image_width\" height=\"$maj_profile_gif_image_height\" align=\"left\">";
-}
+ if (file_exists("images/profile.jpg")) {
+ $maj_profile_jpg_image_size = getimagesize("images/profile.jpg");
+ $maj_profile_jpg_image_width = $maj_profile_jpg_image_size[0];
+ $maj_profile_jpg_image_height = $maj_profile_jpg_image_size[1];
-if (file_exists("images/profile.jpg")) {
- $maj_profile_jpg_image_size = getimagesize("images/profile.jpg");
- $maj_profile_jpg_image_width = $maj_profile_jpg_image_size[0];
- $maj_profile_jpg_image_height = $maj_profile_jpg_image_size[1];
-
- $maj_max_profile_jpg_image_width = 163;
-
- if ($maj_profile_jpg_image_width > $maj_max_profile_jpg_image_width) {
- $maj_sizefactor = (double) ($maj_max_profile_jpg_image_width / $maj_profile_jpg_image_width) ;
- $maj_profile_jpg_image_width = (int) ($maj_profile_jpg_image_width * $maj_sizefactor);
- $maj_profile_jpg_image_height = (int) ($maj_profile_jpg_image_height * $maj_sizefactor);
+ if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
+ $maj_max_profile_jpg_image_width = 150;
+ }
+ else {
+ $maj_max_profile_jpg_image_width = 190;
+ }
+
+ if ($maj_profile_jpg_image_width > $maj_max_profile_jpg_image_width) {
+ $maj_sizefactor = (double) ($maj_max_profile_jpg_image_width / $maj_profile_jpg_image_width) ;
+ $maj_profile_jpg_image_width = (int) ($maj_profile_jpg_image_width * $maj_sizefactor);
+ $maj_profile_jpg_image_height = (int) ($maj_profile_jpg_image_height * $maj_sizefactor);
+
+ echo "<a href=\".\"><img src=\"images/profile.jpg\" border=\"0\" width=\"$maj_profile_jpg_image_width\" height=\"$maj_profile_jpg_image_height\"></a><br>";
+ }
+ else {
+ echo "<a href=\".\"><img src=\"images/profile.jpg\" border=\"0\" width=\"$maj_profile_jpg_image_width\" height=\"$maj_profile_jpg_image_height\" align=\"left\"></a>";
+ }
}
- echo "<img src=\"images/profile.jpg\" border=\"0\" width=\"$maj_profile_jpg_image_width\" height=\"$maj_profile_jpg_image_height\" align=\"left\">";
-}
-
-if (file_exists("images/profile.png")) {
- $maj_profile_png_image_size = getimagesize("images/profile.png");
- $maj_profile_png_image_width = $maj_profile_png_image_size[0];
- $maj_profile_png_image_height = $maj_profile_png_image_size[1];
-
- $maj_max_profile_png_image_width = 163;
-
- if ($maj_profile_png_image_width > $maj_max_profile_png_image_width) {
- $maj_sizefactor = (double) ($maj_max_profile_png_image_width / $maj_profile_png_image_width) ;
- $maj_profile_png_image_width = (int) ($maj_profile_png_image_width * $maj_sizefactor);
- $maj_profile_png_image_height = (int) ($maj_profile_png_image_height * $maj_sizefactor);
+ if (file_exists("images/profile.png")) {
+ $maj_profile_png_image_size = getimagesize("images/profile.png");
+ $maj_profile_png_image_width = $maj_profile_png_image_size[0];
+ $maj_profile_png_image_height = $maj_profile_png_image_size[1];
+
+ if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
+ $maj_max_profile_png_image_width = 150;
+ }
+ else {
+ $maj_max_profile_png_image_width = 190;
+ }
+
+ if ($maj_profile_png_image_width > $maj_max_profile_png_image_width) {
+ $maj_sizefactor = (double) ($maj_max_profile_png_image_width / $maj_profile_png_image_width) ;
+ $maj_profile_png_image_width = (int) ($maj_profile_png_image_width * $maj_sizefactor);
+ $maj_profile_png_image_height = (int) ($maj_profile_png_image_height * $maj_sizefactor);
+
+ echo "<a href=\".\"><img src=\"images/profile.png\" border=\"0\" width=\"$maj_profile_png_image_width\" height=\"$maj_profile_png_image_height\"></a><br>";
+ }
+ else {
+ echo "<a href=\".\"><img src=\"images/profile.png\" border=\"0\" width=\"$maj_profile_png_image_width\" height=\"$maj_profile_png_image_height\" align=\"left\"></a>";
+ }
}
- echo "<img src=\"images/profile.png\" border=\"0\" width=\"$maj_profile_png_image_width\" height=\"$maj_profile_png_image_height\" align=\"left\">";
-}
-
-include("data/profile.php");
-
-?>
-
-</div></div>
-
-<?php
+ include("data/profile.php");
+ echo "\r\n\t</div>\r\n</div>\r\n\r\n";
}
if (!file_exists("data/xnavigation.txt") or ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
-?>
-
-<div class="panel_wrapper"><div class="panel_title">Navigation</div><div class="panel_body">
-
-<a class="navlink" href=".">Home</a><br>
-
-<?php
+ echo "<div class=\"panel_wrapper\">\r\n\r\n\t<div class=\"panel_title\">Navigation</div>\r\n\r\n\t<div class=\"panel_body\">\r\n\t\t<a class=\"navlink\" href=\".\">Home</a><br>\r\n";
-if (file_exists("data/bb.txt") and file_exists("data/members/active")) {
- echo '<a class="navlink" href="member.php?id=all">Members</a><br>';
-}
+ if (file_exists("data/bb.txt") and file_exists("data/members/active")) {
+ echo "\t\t<a class=\"navlink\" href=\"member.php?id=all\">Members</a><br>\r\n";
+ }
-if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) {
- echo '<a class="navlink" href="add.php">Add Entry</a><br>';
- echo '<a class="navlink" href="settings.php">Settings</a><br>';
- echo '<a class="navlink" href="panels.php">Panels</a><br>';
- echo '<a class="navlink" href="cat.php">Categories</a><br>';
- echo '<a class="navlink" href="colors.php">Colors</a><br>';
- echo '<a class="navlink" href="fonts.php">Fonts</a><br>';
- echo '<a class="navlink" href="login.php">Logout</a>';
-}
-elseif (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $maj_login_username) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/bb.txt")) {
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) {
+ echo "\t\t<a class=\"navlink\" href=\"add.php\">Add Entry</a><br>\r\n";
+ echo "\t\t<a class=\"navlink\" href=\"settings.php\">Settings</a><br>\r\n";
+ echo "\t\t<a class=\"navlink\" href=\"panels.php\">Panels</a><br>\r\n";
+ echo "\t\t<a class=\"navlink\" href=\"cat.php\">Categories</a><br>\r\n";
+ echo "\t\t<a class=\"navlink\" href=\"colors.php\">Colors</a><br>\r\n";
+ echo "\t\t<a class=\"navlink\" href=\"fonts.php\">Fonts</a><br>\r\n";
+ echo "\t\t<a class=\"navlink\" href=\"login.php\">Logout</a>\r\n";
+ }
+ elseif (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $maj_login_username) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/bb.txt")) {
- if (file_exists("data/members/active/{$_SESSION['logged_in']}/categories/$maj_req_category")) {
+ if (file_exists("data/members/active/{$_SESSION['logged_in']}/categories/$maj_req_category")) {
+
+ if (!file_exists("data/categories/$maj_req_category")) {
+ rmdirr("data/members/active/{$_SESSION['logged_in']}/categories/$maj_req_category");
+ }
+ }
- if (!file_exists("data/categories/$maj_req_category")) {
- rmdirr("data/members/active/{$_SESSION['logged_in']}/categories/$maj_req_category");
+ if (!file_exists("data/noadd.txt") and (file_exists("data/members/active/{$_SESSION['logged_in']}/bb-rw.txt") or file_exists("data/members/active/{$_SESSION['logged_in']}/categories/$maj_req_category"))) {
+ echo '<a class="navlink" href="add.php">Add Entry</a><br>';
}
- }
- if (!file_exists("data/noadd.txt") and (file_exists("data/members/active/{$_SESSION['logged_in']}/bb-rw.txt") or file_exists("data/members/active/{$_SESSION['logged_in']}/categories/$maj_req_category"))) {
- echo '<a class="navlink" href="add.php">Add Entry</a><br>';
+ echo '<a class="navlink" href="options.php">Options</a><br>';
+ echo '<a class="navlink" href="login.php">Logout</a>';
}
+ else {
+ if (file_exists("data/bb.txt") and file_exists("data/reg.txt")) {
+ echo '<a class="navlink" href="reg.php">Register</a><br>';
+ }
- echo '<a class="navlink" href="options.php">Options</a><br>';
- echo '<a class="navlink" href="login.php">Logout</a>';
-}
-else {
- if (file_exists("data/bb.txt") and file_exists("data/reg.txt")) {
- echo '<a class="navlink" href="reg.php">Register</a><br>';
+ echo '<a class="navlink" href="login.php">Login</a>';
}
- echo '<a class="navlink" href="login.php">Login</a>';
-}
-
-?>
-
-</div></div>
-
-<?php
-
+ echo "\t</div>\r\n</div>\r\n";
}
if (file_exists("data/sticky")) {
@@ -1149,7 +1155,7 @@ if (file_exists("data/panels")) {
}
}
- echo '<div class="panel_wrapper"><div class="panel_title"';
+ echo "\r\n<div class=\"panel_wrapper\">\r\n\r\n\t<div class=\"panel_title\"";
if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t) or isset($maj_left_panel_text_t)) {
echo ' style="';
@@ -1171,7 +1177,7 @@ if (file_exists("data/panels")) {
echo '"';
}
- echo '>';
+ echo ">";
readfile("data/panels/$maj_left_panel/title.txt");
@@ -1184,9 +1190,9 @@ if (file_exists("data/panels")) {
echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
}
- echo '</div>';
+ echo "</div>";
- echo '<div class="panel_body"';
+ echo "\r\n\r\n\t<div class=\"panel_body\"";
if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_c) or isset($maj_left_panel_text_c)) {
echo ' style="';
@@ -1208,7 +1214,7 @@ if (file_exists("data/panels")) {
echo '"';
}
- echo '>';
+ echo ">\r\n\t\t";
}
if (file_exists("data/panels/$maj_left_panel/free.txt")) {
@@ -1217,20 +1223,18 @@ if (file_exists("data/panels")) {
include("data/panels/$maj_left_panel/panel.php");
- echo '</div></div>';
+ echo "\r\n\t</div>\r\n</div>\r\n";
if (file_exists("data/panels/$maj_left_panel/free.txt") and !file_exists("data/panels/$maj_left_panel/nomargin.txt")) {
- echo "<div style=\"height:10px;\"></div>";
+ echo "<div style=\"height: {$maj_wspace}px;\"></div>";
}
}
}
}
-echo "</td><td width=\"$maj_wspace\"><div style=\"width: {$maj_wspace}px;\"></div></td>";
-
// main
-echo "<td valign=\"top\" width=\"$maj_wmain\">";
+echo "\r\n\r\n<td valign=\"top\" width=\"$maj_wmain\">\r\n\r\n";
if ($maj_count_top_panels > 0) {
@@ -1283,7 +1287,7 @@ if ($maj_count_top_panels > 0) {
}
}
- echo '<div class="panel_wrapper"><div class="panel_title"';
+ echo "\t<div class=\"panel_wrapper\">\r\n\r\n\t\t<div class=\"panel_title\"";
if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t) or isset($maj_top_panel_text_t)) {
echo ' style="';
@@ -1318,7 +1322,7 @@ if ($maj_count_top_panels > 0) {
echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
}
- echo '</div>';
+ echo "</div>\r\n\r\n\t\t";
echo '<div class="panel_body"';
@@ -1342,7 +1346,7 @@ if ($maj_count_top_panels > 0) {
echo '"';
}
- echo '>';
+ echo ">\r\n\t\t\t";
}
if (file_exists("data/panels/$maj_top_panel/free.txt")) {
@@ -1351,10 +1355,10 @@ if ($maj_count_top_panels > 0) {
include("data/panels/$maj_top_panel/panel.php");
- echo '</div></div>';
+ echo "\r\n\t\t</div>\r\n\t</div>\r\n\r\n";
if (file_exists("data/panels/$maj_top_panel/free.txt") and !file_exists("data/panels/$maj_top_panel/nomargin.txt")) {
- echo "<div style=\"height:10px;\"></div>";
+ echo "<div style=\"height: {$maj_wspace}px;\"></div>";
}
}
}
@@ -1374,7 +1378,7 @@ if ($maj_dh_items = opendir("data/items")) {
while (($maj_item = readdir($maj_dh_items)) !== false) {
if ($maj_item != "." && $maj_item != "..") {
-
+
if (file_exists("data/items/$maj_item/categories")) {
if ($maj_dh_egroups = opendir("data/items/$maj_item/categories")) {
@@ -1890,7 +1894,7 @@ if ($maj_count_center_panels > 0) {
echo '</div></div>';
if (file_exists("data/panels/$maj_center_panel/free.txt") and !file_exists("data/panels/$maj_center_panel/nomargin.txt")) {
- echo "<div style=\"height:10px;\"></div>";
+ echo "<div style=\"height: {$maj_wspace}px;\"></div>";
}
}
}
@@ -1968,7 +1972,7 @@ $maj_disp = array_slice($maj_items,$maj_start,$maj_increase);
foreach ($maj_disp as $maj_d) {
- echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\"><tr><td width=\"$maj_wmain\">";
+ echo "\t<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\"><tr><td width=\"$maj_wmain\">\r\n\r\n\t";
if (file_exists("data/items/$maj_d/border.txt")) {
$maj_d_border = file_get_contents("data/items/$maj_d/border.txt");
@@ -2051,7 +2055,7 @@ foreach ($maj_disp as $maj_d) {
}
}
- echo '<div class="panel_wrapper">';
+ echo "\t<div class=\"panel_wrapper\">\r\n\r\n\t\t\t";
if (!file_exists("data/items/$maj_d/xtitle.txt") or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == file_get_contents("data/username.txt")))) {
@@ -2167,10 +2171,10 @@ foreach ($maj_disp as $maj_d) {
}
- echo "</div>";
+ echo "</div>\r\n\r\n";
}
- echo "<div class=\"panel_entry_body\"";
+ echo "\t\t\t<div class=\"panel_entry_body\"";
if (isset($maj_d_border) or isset($maj_d_bgcolor_b) or isset($maj_d_text_b)) {
echo ' style="';
@@ -2194,11 +2198,11 @@ foreach ($maj_disp as $maj_d) {
echo '>';
- echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
+ echo "\r\n\t\t\t\t<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
- if (file_exists("data/bb.txt") and file_exists("data/avatar.txt") and file_exists("data/items/$maj_d/author.txt")) {
+ if (file_exists("data/bb.txt") and file_exists("data/avatar.txt") and file_exists("data/items/$maj_d/author.txt") and !file_exists("data/items/$maj_d/xavatar.txt")) {
- echo "<td width=\"85\" valign=\"top\">";
+ echo "<td width=\"75\" valign=\"top\">";
$maj_author = file_get_contents("data/items/$maj_d/author.txt");
@@ -2212,7 +2216,7 @@ foreach ($maj_disp as $maj_d) {
$maj_avatar_gif_image_width = $maj_avatar_gif_image_size[0];
$maj_avatar_gif_image_height = $maj_avatar_gif_image_size[1];
- $maj_max_avatar_gif_image_width = 80;
+ $maj_max_avatar_gif_image_width = 75;
if ($maj_avatar_gif_image_width > $maj_max_avatar_gif_image_width) {
@@ -2258,7 +2262,7 @@ foreach ($maj_disp as $maj_d) {
$maj_avatar_jpg_image_width = $maj_avatar_jpg_image_size[0];
$maj_avatar_jpg_image_height = $maj_avatar_jpg_image_size[1];
- $maj_max_avatar_jpg_image_width = 80;
+ $maj_max_avatar_jpg_image_width = 75;
if ($maj_avatar_jpg_image_width > $maj_max_avatar_jpg_image_width) {
@@ -2290,7 +2294,7 @@ foreach ($maj_disp as $maj_d) {
$maj_avatar_png_image_width = $maj_avatar_png_image_size[0];
$maj_avatar_png_image_height = $maj_avatar_png_image_size[1];
- $maj_max_avatar_png_image_width = 80;
+ $maj_max_avatar_png_image_width = 75;
if ($maj_avatar_png_image_width > $maj_max_avatar_png_image_width) {
@@ -2330,7 +2334,7 @@ foreach ($maj_disp as $maj_d) {
$maj_avatar_gif_image_width = $maj_avatar_gif_image_size[0];
$maj_avatar_gif_image_height = $maj_avatar_gif_image_size[1];
- $maj_max_avatar_gif_image_width = 80;
+ $maj_max_avatar_gif_image_width = 75;
if ($maj_avatar_gif_image_width > $maj_max_avatar_gif_image_width) {
@@ -2376,7 +2380,7 @@ foreach ($maj_disp as $maj_d) {
$maj_avatar_jpg_image_width = $maj_avatar_jpg_image_size[0];
$maj_avatar_jpg_image_height = $maj_avatar_jpg_image_size[1];
- $maj_max_avatar_jpg_image_width = 80;
+ $maj_max_avatar_jpg_image_width = 75;
if ($maj_avatar_jpg_image_width > $maj_max_avatar_jpg_image_width) {
@@ -2408,7 +2412,7 @@ foreach ($maj_disp as $maj_d) {
$maj_avatar_png_image_width = $maj_avatar_png_image_size[0];
$maj_avatar_png_image_height = $maj_avatar_png_image_size[1];
- $maj_max_avatar_png_image_width = 80;
+ $maj_max_avatar_png_image_width = 75;
if ($maj_avatar_png_image_width > $maj_max_avatar_png_image_width) {
$maj_sizefactor = (double) ($maj_max_avatar_png_image_width / $maj_avatar_png_image_width) ;
@@ -2515,10 +2519,14 @@ foreach ($maj_disp as $maj_d) {
unset($maj_items_posts);
- echo "</td><td width=513 valign=top>";
+ echo "</td><td width=\"5\" valign=\"top\"><div style=\"width: 5px;\"></div></td>";
}
- else {
- echo "<td width=598 valign=top>";
+
+ if (file_exists("data/avatar.txt") and file_exists("data/items/$maj_d/xavatar.txt")) {
+ echo "<td width=\"590\" valign=\"top\">";
+ }
+ else {
+ echo "<td width=\"510\" valign=\"top\">";
}
if (file_exists("data/items/$maj_d/passwd.txt")) {
@@ -2537,8 +2545,12 @@ foreach ($maj_disp as $maj_d) {
echo "<font style=\"font-size: $maj_font_Spx; color: #999999;\">";
if ((file_exists("data/items/$maj_d/author.txt") and (file_exists("data/bb.txt") and !file_exists("data/avatar.txt")) or (file_exists("data/items/$maj_d/author.txt") and (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username) and !file_exists("data/avatar.txt"))))) {
+
$maj_xavatar_author = file_get_contents("data/items/$maj_d/author.txt");
- echo "$maj_xavatar_author - ";
+
+ if (!file_exists("data/items/$maj_d/xauthor.txt") or (file_exists("data/items/$maj_d/xauthor.txt") and ($_SESSION['logged_in'] == file_get_contents("data/username.txt")))) {
+ echo "$maj_xavatar_author - ";
+ }
}
entry2date($maj_d);
@@ -2581,7 +2593,6 @@ foreach ($maj_disp as $maj_d) {
$maj_entry_body = preg_replace("/\b($maj_badwords)\b/i",$maj_censor,$maj_entry_body);
}
- // if (file_exists("data/items/$maj_d/maxlines.txt") and (!isset($_REQUEST['view']) or ($_REQUEST['view'] != "full"))) {
if (file_exists("data/items/$maj_d/maxlines.txt") and (!isset($maj_req_entry) or empty($maj_req_entry))) {
$maj_entry_shorten = file_get_contents("data/items/$maj_d/maxlines.txt");
@@ -2617,7 +2628,7 @@ foreach ($maj_disp as $maj_d) {
$entry_url = rawurlencode($entry_url);
- echo "<br><br><iframe src=\"http://www.facebook.com/plugins/like.php?href=$entry_url&layout=standard&show_faces=false&width=513&action=like&colorscheme=light&height=25\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:513px; height:25px;\" allowTransparency=\"true\"></iframe>";
+ echo "<br><br><iframe src=\"http://www.facebook.com/plugins/like.php?href=$entry_url&layout=standard&show_faces=false&width=510&action=like&colorscheme=light&height=25\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:510px; height:25px;\" allowTransparency=\"true\"></iframe>";
}
if (isset($maj_d_text_b)) {
@@ -2626,7 +2637,7 @@ foreach ($maj_disp as $maj_d) {
echo "</td></tr></table>";
- echo "</div>";
+ echo "\r\n\t\t\t</div>";
if (file_exists("data/items/$maj_d/categories") and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
@@ -2657,7 +2668,7 @@ foreach ($maj_disp as $maj_d) {
$maj_category_list = $maj_category_list . " | <a href=\"index.php?category=$maj_filed_under\" class=\"status\">$maj_filed_under</a>";
}
- echo "<div class=\"panel_category\"";
+ echo "\r\n\r\n\t\t\t<div class=\"panel_category\"";
if (isset($maj_d_border) or isset($maj_d_bgcolor_c) or isset($maj_d_text_c)) {
echo ' style="';
@@ -2684,7 +2695,7 @@ foreach ($maj_disp as $maj_d) {
unset($maj_entry_categories);
}
- echo "<div class=\"panel_footer\"";
+ echo "\r\n\r\n\t\t\t<div class=\"panel_footer\"";
if (isset($maj_d_border) or isset($maj_d_bgcolor_f) or isset($maj_d_text_f)) {
echo ' style="';
@@ -2706,7 +2717,7 @@ foreach ($maj_disp as $maj_d) {
echo '"';
}
- echo '>';
+ echo ">\r\n\t\t\t\t";
if (!file_exists("data/nocomment.txt") or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) or (file_exists("data/memcomment.txt") and isset($_SESSION['logged_in'])) or file_exists("data/items/$maj_d/ucomment.txt")) {
@@ -3010,9 +3021,9 @@ foreach ($maj_disp as $maj_d) {
echo "| <a href=\"index.php?entry=$maj_d\" class=\"status\">permalink</a>";
}
- echo "</div></div>";
+ echo "\r\n\t\t\t</div>\r\n\t\t</div>\r\n\r\n";
- echo "</td></tr></table>";
+ echo "\t</td></tr></table>\r\n\r\n";
if ($maj_count_entry_panels > 0) {
@@ -3136,7 +3147,7 @@ foreach ($maj_disp as $maj_d) {
echo '</div></div>';
if (file_exists("data/panels/$maj_entry_panel/free.txt") and !file_exists("data/panels/$maj_entry_panel/nomargin.txt")) {
- echo "<div style=\"height:10px;\"></div>";
+ echo "<div style=\"height: {$maj_wspace}px;\"></div>";
}
}
}
@@ -3521,12 +3532,11 @@ foreach ($maj_disp as $maj_d) {
echo '<a href=del.php?entry=' . $maj_d . '&comment=' . $maj_comment . '&type=live><img src=images/widget.del.png width=11 height=11 border=0 align=right alt="delete comment"></a>';
echo '<a href=move.php?entry=' . $maj_d . '&comment=' . $maj_comment . '&type=live><img src=images/widget.move.png width=11 height=11 border=0 align=right alt="move comment"></a>';
echo '<a href=edit.php?entry=' . $maj_d . '&comment=' . $maj_comment . '&type=live><img src=images/widget.edit.png width=11 height=11 border=0 align=right alt="edit comment"></a>';
- //echo "<a href=\"?entry={$maj_d}&show=comments#{$maj_comment}\"><img src=\"images/widget.link.png\" width=\"11\" height=\"11\" border=\"0\" align=\"right\" alt=\"permalink\"></a>";
}
echo '</div><div class=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("data/items/$maj_d/comments/live/$maj_comment/author.txt")) {
- echo "<td width=85 valign=top>";
+ echo "<td width=75 valign=top>";
$maj_c_author = file_get_contents("data/items/$maj_d/comments/live/$maj_comment/author.txt");
echo "<a href=member.php?id=$maj_c_author>";
if ((file_get_contents("data/username.txt") == $maj_c_author) and (file_exists("images/avatar.jpg") or file_exists("images/avatar.gif") or file_exists("images/avatar.png"))) {
@@ -3535,7 +3545,7 @@ foreach ($maj_disp as $maj_d) {
$maj_c_avatar_gif_image_width = $maj_c_avatar_gif_image_size[0];
$maj_c_avatar_gif_image_height = $maj_c_avatar_gif_image_size[1];
- $maj_c_max_avatar_gif_image_width = 80;
+ $maj_c_max_avatar_gif_image_width = 75;
if ($maj_c_avatar_gif_image_width > $maj_c_max_avatar_gif_image_width) {
@@ -3582,7 +3592,7 @@ foreach ($maj_disp as $maj_d) {
$maj_c_avatar_jpg_image_width = $maj_c_avatar_jpg_image_size[0];
$maj_c_avatar_jpg_image_height = $maj_c_avatar_jpg_image_size[1];
- $maj_c_max_avatar_jpg_image_width = 80;
+ $maj_c_max_avatar_jpg_image_width = 75;
if ($maj_c_avatar_jpg_image_width > $maj_c_max_avatar_jpg_image_width) {
@@ -3616,7 +3626,7 @@ foreach ($maj_disp as $maj_d) {
$maj_c_avatar_png_image_width = $maj_c_avatar_png_image_size[0];
$maj_c_avatar_png_image_height = $maj_c_avatar_png_image_size[1];
- $maj_c_max_avatar_png_image_width = 80;
+ $maj_c_max_avatar_png_image_width = 75;
if ($maj_c_avatar_png_image_width > $maj_c_max_avatar_png_image_width) {
@@ -3657,7 +3667,7 @@ foreach ($maj_disp as $maj_d) {
$maj_c_avatar_gif_image_width = $maj_c_avatar_gif_image_size[0];
$maj_c_avatar_gif_image_height = $maj_c_avatar_gif_image_size[1];
- $maj_c_max_avatar_gif_image_width = 80;
+ $maj_c_max_avatar_gif_image_width = 75;
if ($maj_c_avatar_gif_image_width > $maj_c_max_avatar_gif_image_width) {
@@ -3705,7 +3715,7 @@ foreach ($maj_disp as $maj_d) {
$maj_c_avatar_jpg_image_width = $maj_c_avatar_jpg_image_size[0];
$maj_c_avatar_jpg_image_height = $maj_c_avatar_jpg_image_size[1];
- $maj_c_max_avatar_jpg_image_width = 80;
+ $maj_c_max_avatar_jpg_image_width = 75;
if ($maj_c_avatar_jpg_image_width > $maj_c_max_avatar_jpg_image_width) {
@@ -3739,7 +3749,7 @@ foreach ($maj_disp as $maj_d) {
$maj_c_avatar_png_image_width = $maj_c_avatar_png_image_size[0];
$maj_c_avatar_png_image_height = $maj_c_avatar_png_image_size[1];
- $maj_c_max_avatar_png_image_width = 80;
+ $maj_c_max_avatar_png_image_width = 75;
if ($maj_c_avatar_png_image_width > $maj_c_max_avatar_png_image_width) {
@@ -3844,12 +3854,11 @@ foreach ($maj_disp as $maj_d) {
}
unset($maj_c_items_posts);
- echo "</td><td width=513 valign=top>";
- }
- else {
- echo "<td width=598 valign=top>";
+ echo "</td><td width=5 valign=top><div style=\"width: 5px;\"></div></td>";
}
+ echo "<td width=510 valign=top>";
+
echo "<font style=\"font-size: $maj_font_Spx; color: #999999;\">";
if ((file_exists("data/items/$maj_d/comments/live/$maj_comment/author.txt") and (file_exists("data/bb.txt") and !file_exists("data/avatar.txt")) or (file_exists("data/items/$maj_d/comments/live/$maj_comment/author.txt") and (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username) and !file_exists("data/avatar.txt"))))) {
@@ -4164,7 +4173,7 @@ foreach ($maj_disp as $maj_d) {
if (file_exists("data/bb.txt") and file_exists("data/avatar.txt") and file_exists("data/items/$maj_d/comments/pending/$maj_pending_comment/author.txt")) {
- echo "<td width=85 valign=top>";
+ echo "<td width=75 valign=top>";
$maj_pc_author = file_get_contents("data/items/$maj_d/comments/pending/$maj_pending_comment/author.txt");
@@ -4177,7 +4186,7 @@ foreach ($maj_disp as $maj_d) {
$maj_pc_avatar_gif_image_width = $maj_pc_avatar_gif_image_size[0];
$maj_pc_avatar_gif_image_height = $maj_pc_avatar_gif_image_size[1];
- $maj_pc_max_avatar_gif_image_width = 80;
+ $maj_pc_max_avatar_gif_image_width = 75;
if ($maj_pc_avatar_gif_image_width > $maj_pc_max_avatar_gif_image_width) {
$maj_sizefactor = (double) ($maj_pc_max_avatar_gif_image_width / $maj_pc_avatar_gif_image_width) ;
@@ -4196,7 +4205,7 @@ foreach ($maj_disp as $maj_d) {
$maj_pc_avatar_jpg_image_width = $maj_pc_avatar_jpg_image_size[0];
$maj_pc_avatar_jpg_image_height = $maj_pc_avatar_jpg_image_size[1];
- $maj_pc_max_avatar_jpg_image_width = 80;
+ $maj_pc_max_avatar_jpg_image_width = 75;
if ($maj_pc_avatar_jpg_image_width > $maj_pc_max_avatar_jpg_image_width) {
$maj_sizefactor = (double) ($maj_pc_max_avatar_jpg_image_width / $maj_pc_avatar_jpg_image_width) ;
@@ -4215,7 +4224,7 @@ foreach ($maj_disp as $maj_d) {
$maj_pc_avatar_png_image_width = $maj_pc_avatar_png_image_size[0];
$maj_pc_avatar_png_image_height = $maj_pc_avatar_png_image_size[1];
- $maj_pc_max_avatar_png_image_width = 80;
+ $maj_pc_max_avatar_png_image_width = 75;
if ($maj_pc_avatar_png_image_width > $maj_pc_max_avatar_png_image_width) {
$maj_sizefactor = (double) ($maj_pc_max_avatar_png_image_width / $maj_pc_avatar_png_image_width) ;
@@ -4237,7 +4246,7 @@ foreach ($maj_disp as $maj_d) {
$maj_pc_avatar_gif_image_width = $maj_pc_avatar_gif_image_size[0];
$maj_pc_avatar_gif_image_height = $maj_pc_avatar_gif_image_size[1];
- $maj_pc_max_avatar_gif_image_width = 80;
+ $maj_pc_max_avatar_gif_image_width = 75;
if ($maj_pc_avatar_gif_image_width > $maj_pc_max_avatar_gif_image_width) {
$maj_sizefactor = (double) ($maj_pc_max_avatar_gif_image_width / $maj_pc_avatar_gif_image_width) ;
@@ -4256,7 +4265,7 @@ foreach ($maj_disp as $maj_d) {
$maj_pc_avatar_jpg_image_width = $maj_pc_avatar_jpg_image_size[0];
$maj_pc_avatar_jpg_image_height = $maj_pc_avatar_jpg_image_size[1];
- $maj_pc_max_avatar_jpg_image_width = 80;
+ $maj_pc_max_avatar_jpg_image_width = 75;
if ($maj_pc_avatar_jpg_image_width > $maj_pc_max_avatar_jpg_image_width) {
$maj_sizefactor = (double) ($maj_pc_max_avatar_jpg_image_width / $maj_pc_avatar_jpg_image_width) ;
@@ -4275,7 +4284,7 @@ foreach ($maj_disp as $maj_d) {
$maj_pc_avatar_png_image_width = $maj_pc_avatar_png_image_size[0];
$maj_pc_avatar_png_image_height = $maj_pc_avatar_png_image_size[1];
- $maj_pc_max_avatar_png_image_width = 80;
+ $maj_pc_max_avatar_png_image_width = 75;
if ($maj_pc_avatar_png_image_width > $maj_pc_max_avatar_png_image_width) {
$maj_sizefactor = (double) ($maj_pc_max_avatar_png_image_width / $maj_pc_avatar_png_image_width) ;
@@ -4362,11 +4371,10 @@ foreach ($maj_disp as $maj_d) {
}
unset($maj_pc_items_posts);
- echo "</td><td width=513 valign=top>";
- }
- else {
- echo "<td width=598 valign=top>";
+ echo "</td><td width=5 valign=top><div style=\"width: 5px;\"></div></td>";
}
+
+ echo "<td width=510 valign=top>";
echo "<font style=\"font-size: $maj_font_Spx; color: #999999;\">";
@@ -4515,7 +4523,7 @@ if ($maj_count_bottom_panels > 0) {
echo '</div></div>';
if (file_exists("data/panels/$maj_bottom_panel/free.txt") and !file_exists("data/panels/$maj_bottom_panel/nomargin.txt")) {
- echo "<div style=\"height:10px;\"></div>";
+ echo "<div style=\"height: {$maj_wspace}px;\"></div>";
}
}
}
@@ -4617,9 +4625,11 @@ if ($maj_end < sizeof($maj_items)) {
echo "&start=" . ($maj_start+$maj_increase) . "\">next</a></td>";
}
+echo "</tr></table></td>";
+
// right side
-echo "</tr></table></td><td width=\"$maj_wspace\"><div style=\"width: {$maj_wspace}px;\"></div></td><td width=\"$maj_wside\" valign=\"top\">";
+echo "<td width=\"$maj_wside\" valign=\"top\">";
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) {
if ($maj_dh_pending_comment_flags = opendir("data/comments/pending")) {
@@ -5237,7 +5247,7 @@ if ($maj_count_right_panels > 0) {
echo '</div></div>';
if (file_exists("data/panels/$maj_right_panel/free.txt") and !file_exists("data/panels/$maj_right_panel/nomargin.txt")) {
- echo "<div style=\"height:10px;\"></div>";
+ echo "<div style=\"height: {$maj_wspace}px;\"></div>";
}
}
}
@@ -5255,7 +5265,9 @@ if ($maj_count_latest > 0) {
}
echo "</td></tr>";
-echo "<tr><td width=\"$maj_wside\" height=\"$maj_wspace\"></td><td width=\"$maj_wspace\" height=\"$maj_wspace\"><div style=\"width: {$maj_wspace}px;\"></div></td><td width=\"$maj_wmain\" height=\"$maj_wspace\"></td><td width=\"$maj_wspace\" height=\"$maj_wspace\"><div style=\"width: {$maj_wspace}px;\"></div></td><td width=\"$maj_wside\" height=\"$maj_wspace\"></td></tr>";
+
+echo "<tr><td colspan=\"7\" height=\"$maj_wspace\"><div style=\"height: {$maj_wspace}px;\"></div></td></tr>";
+
echo "</table>";
if (file_exists("data/footer.txt")) {
tree adef726dde84649ab092fda2478fa5ee4de733bd
parent 5875303f2b7639c9b6b7d1710f81402c582273bd
author Engels Antonio <engels@majcms.org> 1308338110 +0800
committer Engels Antonio <engels@majcms.org> 1308338110 +0800
Rationalize dimensions based on a width of 960 pixels
diff --git a/add.php b/add.php
index 907220d..844b423 100644
--- a/add.php
+++ b/add.php
@@ -610,7 +610,7 @@ a:active {
$entry_image_width = $entry_image_size[0];
$entry_image_height = $entry_image_size[1];
- $max_entry_image_width = 513;
+ $max_entry_image_width = 510;
if ($entry_image_width > $max_entry_image_width) {
$sizefactor = (double)($max_entry_image_width / $entry_image_width);
diff --git a/css.php b/css.php
index c287705..8f4c936 100644
--- a/css.php
+++ b/css.php
@@ -60,11 +60,11 @@ else {
body {
padding: 0px;
- margin: 0px 0px 10px 10px;
+ margin: 0px;
color: #666666;
background-color: #ffffff;
text-align: left;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
<?php
echo "font-size: $maj_font_Dpx;";
@@ -76,7 +76,7 @@ body {
if (file_exists("data/fonts/body.txt")) {
$maj_font_body = file_get_contents("data/fonts/body.txt");
- echo "\n\tfont-family: $maj_font_body,\"lucida grande\",arial,helvetica,sans-serif;";
+ echo "\n\tfont-family: \"$maj_font_body\",\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
}
if (file_exists("data/colors/bg.txt")) {
@@ -224,10 +224,12 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
?>
}
-.panel_wrapper {
-
<?php
+ if (file_exists("data/round.txt") or file_exists("data/shadow.txt")) {
+ echo ".panel_wrapper {";
+ }
+
if (file_exists("data/round.txt")) {
echo "\n\t-webkit-border-radius: $maj_border_radius;";
echo "\n\t-khtml-border-radius: $maj_border_radius;";
@@ -242,18 +244,21 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
echo "\n\tbox-shadow: 0 0 $maj_blur_distance #ddd;";
}
+ if (file_exists("data/round.txt") or file_exists("data/shadow.txt")) {
+ echo "}";
+ }
+
?>
-}
.panel_title {
- padding: 5px;
+ padding: 4px;
margin: 0px;
color: #666666;
background-color: transparent;
border-color: #dedede;
border-width: 1px 1px 0px 1px;
border-style: solid solid none solid;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
font-weight: bold;
<?php
@@ -287,7 +292,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
if (file_exists("data/fonts/panel-title.txt")) {
$maj_font_panel_title = file_get_contents("data/fonts/panel-title.txt");
- echo "\n\tfont-family: $maj_font_panel_title,\"lucida grande\",arial,helvetica,sans-serif;";
+ echo "\n\tfont-family: \"$maj_font_panel_title\",\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
}
echo "\n";
@@ -296,23 +301,25 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
}
.panel_body, div.panel_body table, div.panel_entry_body table {
- color: #666666;
- <?php
+ color: #666666;<?php
if (file_exists("data/colors/pb-font.txt")) {
$maj_panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
echo "\n\tcolor: $maj_panel_body_font_color;";
}
+
+ echo "\n";
+
?>
}
.panel_body {
- padding: 5px;
+ padding: 4px;
margin: 0px 0px 10px 0px;
background-color: transparent;
border-color: #dedede;
border-width: 1px;
border-style: solid;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
<?php
echo "font-size: $maj_font_Mpx;";
@@ -340,7 +347,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
if (file_exists("data/fonts/panel-body.txt")) {
$maj_font_panel_body = file_get_contents("data/fonts/panel-body.txt");
- echo "\n\tfont-family: $maj_font_panel_body,\"lucida grande\",arial,helvetica,sans-serif;";
+ echo "\n\tfont-family: $maj_font_panel_body,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
}
echo "\n";
@@ -349,7 +356,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
}
.panel_footer {
- padding: 5px;
+ padding: 4px;
margin: 0px 0px 10px 0px;
color: #999999;
background-color: transparent;
@@ -357,7 +364,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
border-width: 0px 1px 1px 1px;
border-style: none solid solid solid;
text-align: right;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
<?php
echo "font-size: $maj_font_Spx;";
@@ -390,7 +397,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
if (file_exists("data/fonts/panel-footer.txt")) {
$maj_font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
- echo "\n\tfont-family: $maj_font_panel_footer,\"lucida grande\",arial,helvetica,sans-serif;";
+ echo "\n\tfont-family: $maj_font_panel_footer,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
}
echo "\n";
@@ -404,13 +411,13 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
}
.panel_entry_body {
- padding: 5px;
+ padding: 4px;
margin: 0px;
background-color: transparent;
border-color: #dedede;
border-width: 1px;
border-style: solid;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
<?php
echo "font-size: $maj_font_Mpx;";
@@ -427,7 +434,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
if (file_exists("data/fonts/panel-body.txt")) {
$maj_font_panel_body = file_get_contents("data/fonts/panel-body.txt");
- echo "\n\tfont-family: $maj_font_panel_body,\"lucida grande\",arial,helvetica,sans-serif;";
+ echo "\n\tfont-family: $maj_font_panel_body,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
}
echo "\n";
@@ -436,7 +443,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
}
.panel_category {
- padding: 5px;
+ padding: 4px;
margin: 0px;
color: #999999;
background-color: transparent;
@@ -444,7 +451,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
border-width: 0px 1px 1px 1px;
border-style: none solid solid solid;
text-align: left;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
<?php
echo "font-size: $maj_font_Spx;";
@@ -466,7 +473,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
if (file_exists("data/fonts/panel-footer.txt")) {
$maj_font_panel_category = file_get_contents("data/fonts/panel-footer.txt");
- echo "\n\tfont-family: $maj_font_panel_category,\"lucida grande\",arial,helvetica,sans-serif;";
+ echo "\n\tfont-family: $maj_font_panel_category,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
}
echo "\n";
@@ -480,7 +487,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
<?php
echo "font-size: $maj_font_Ipx;";
@@ -497,7 +504,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
if (file_exists("data/fonts/input.txt")) {
$maj_font_input = file_get_contents("data/fonts/input.txt");
- echo "\n\tfont-family: $maj_font_input,\"lucida grande\",arial,helvetica,sans-serif;";
+ echo "\n\tfont-family: $maj_font_input,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
}
echo "\n";
@@ -516,7 +523,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
background: #ffffff;
border: #999999 solid 1px;
font-weight: bold;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
<?php
echo "font-size: $maj_font_Mpx;";
@@ -533,7 +540,7 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
if (file_exists("data/fonts/input.txt")) {
$maj_font_input = file_get_contents("data/fonts/input.txt");
- echo "\n\tfont-family: $maj_font_input,\"lucida grande\",arial,helvetica,sans-serif;";
+ echo "\n\tfont-family: $maj_font_input,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
}
echo "\n";
@@ -558,14 +565,14 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
color: #666666;
background: #ffffff;
border: #dedede solid 1px;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
<?php
echo "font-size: $maj_font_Ipx;";
if (file_exists("data/fonts/input.txt")) {
$maj_font_input = file_get_contents("data/fonts/input.txt");
- echo "\n\tfont-family: $maj_font_input,\"lucida grande\",arial,helvetica,sans-serif;";
+ echo "\n\tfont-family: $maj_font_input,\"lucida grande\",\"arial\",\"helvetica\",\"sans-serif\";";
}
if (file_exists("data/colors/border.txt")) {
@@ -580,18 +587,15 @@ a.status:link,a.status:visited,a.status:active,a.status:hover {
width: 80px;
padding: 1px;
margin: 0px 0px 3px 0px;
- //margin: 0px 0px 2px 0px;
color: #ccc;
background-color: #fff;
border: 1px solid #dedede;
- font-family: "lucida grande",arial,helvetica,sans-serif;
+ font-family: "lucida grande","arial","helvetica","sans-serif";
font-size: 9px;
-
-webkit-box-shadow: 0 0 1px #ddd;
-khtml-box-shadow: 0 0 1px #ddd;
-moz-box-shadow: 0 0 1px #ddd;
box-shadow: 0 0 1px #ddd;
-
margin-left: auto;
margin-right: auto;
}
@@ -617,7 +621,6 @@ a.mblink:link,a.mblink:visited,a.mblink:active,a.mblink:hover {
color: #fff;
background-color: #ffa443;
border-color:#FC9 #888 #777 #F96;
-
-moz-box-shadow: inset 0px 2px 2px #f60, inset 0px 4px 4px #ff7400, inset 0px 6px 6px #ffaa33;
-webkit-box-shadow: inset 0px 2px 2px #f60, inset 0px 4px 4px #ff7400, inset 0px 6px 6px #ffaa33;
-khtml-box-shadow: inset 0px 2px 2px #f60, inset 0px 4px 4px #ff7400, inset 0px 6px 6px #ffaa33;
diff --git a/edit.php b/edit.php
index 3b8c413..ab7087c 100644
--- a/edit.php
+++ b/edit.php
@@ -111,7 +111,7 @@ a:active {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
- width: 525px;
+ width: 520px;
font-family: <?php
if (file_exists("data/fonts/panel-title.txt")) {
$font_panel_title = file_get_contents("data/fonts/panel-title.txt");
@@ -126,7 +126,7 @@ a:active {
color: #666666;
background: #ffffff;
border: #999999 solid 1px;
- width: 525px;
+ width: 520px;
font-family: <?php
if (file_exists("data/fonts/panel-body.txt")) {
$font_panel_body = file_get_contents("data/fonts/panel-body.txt");
@@ -146,7 +146,7 @@ a:active {
font-size: 12px;
font-weight: bold;
color: #666666;
- padding: 5px 5px 5px 5px;
+ padding: 4px 4px 4px 4px;
background-color: #ffffff;
margin: 0px;
border-color: #cccccc;
@@ -163,7 +163,7 @@ a:active {
?> arial, helvetica, sans-serif;
font-size: 11px;
color: #666666;
- padding: 5px 5px 5px 5px;
+ padding: 4px 4px 4px 4px;
background-color: #ffffff;
margin: 0px;
border-color: #cccccc;
@@ -180,7 +180,7 @@ a:active {
?> arial, helvetica, sans-serif;
font-size: 11px;
color: #666666;
- padding: 5px 5px 5px 5px;
+ padding: 4px 4px 4px 4px;
background-color: #ffffff;
margin: 0px;
border-color: #cccccc;
@@ -339,7 +339,7 @@ a:active {
exit();
}
?>
- <table border="0" cellspacing="0" cellpadding="0" bgcolor="#cccccc"><tr><td width="525">
+ <table border="0" cellspacing="0" cellpadding="0" bgcolor="#cccccc"><tr><td width="520">
<div id="panel_title"><?php
readfile("data/items/{$_REQUEST['entry']}/comments/{$_REQUEST['type']}/{$_REQUEST['comment']}/firstname.txt");
?> <?php
@@ -415,7 +415,7 @@ a:active {
<table border="0" cellspacing="0" cellpadding="0"><tr><td valign="top">
-<table border="0" cellspacing="0" cellpadding="0" bgcolor="#cccccc"><tr><td width="525">
+<table border="0" cellspacing="0" cellpadding="0" bgcolor="#cccccc"><tr><td width="520">
<div id="panel_title"><?php
readfile($title_file);
@@ -585,6 +585,31 @@ a:active {
}
?>>Do not display the entry date.</td></tr>
+<?php
+
+if (!file_exists("data/avatar.txt")) {
+
+ echo "<tr><td><input type=\"checkbox\" name=\"xauthor\"";
+
+ if (file_exists("data/items/{$_REQUEST['entry']}/xauthor.txt")) {
+ echo checked;
+ }
+
+ echo ">Do not display the entry author.</td></tr>";
+}
+else {
+ echo "<tr><td><input type=\"checkbox\" name=\"xavatar\"";
+
+ if (file_exists("data/items/{$_REQUEST['entry']}/xavatar.txt")) {
+ echo checked;
+ }
+
+ echo ">Do not display the entry avatar.</td></tr>";
+}
+
+?>
+
+
<tr><td><input type="checkbox" name="lastmod" <?php
$lastmod_sem = "data/items/{$_REQUEST['entry']}/lastmod.txt";
if (file_exists($lastmod_sem)) {
@@ -1005,7 +1030,7 @@ if (file_exists("images/{$_REQUEST['entry']}/album")) {
$entry_image_width = $entry_image_size[0];
$entry_image_height = $entry_image_size[1];
- $max_entry_image_width = 513;
+ $max_entry_image_width = 510;
if ($entry_image_width > $max_entry_image_width) {
$sizefactor = (double)($max_entry_image_width / $entry_image_width);
@@ -1234,6 +1259,34 @@ if (file_exists("images/{$_REQUEST['entry']}/album")) {
}
}
+ $xauthor_sem = "data/items/{$_REQUEST['entry']}/xauthor.txt";
+
+ if (isset($_POST['xauthor']) and !empty($_POST['xauthor']) and ($_POST['xauthor'] == "on")) {
+ if (!file_exists($xauthor_sem)) {
+ touch($xauthor_sem);
+ }
+ }
+
+ if (!isset($_POST['xauthor']) or empty($_POST['xauthor'])) {
+ if (file_exists($xauthor_sem)) {
+ unlink($xauthor_sem);
+ }
+ }
+
+ $xavatar_sem = "data/items/{$_REQUEST['entry']}/xavatar.txt";
+
+ if (isset($_POST['xavatar']) and !empty($_POST['xavatar']) and ($_POST['xavatar'] == "on")) {
+ if (!file_exists($xavatar_sem)) {
+ touch($xavatar_sem);
+ }
+ }
+
+ if (!isset($_POST['xavatar']) or empty($_POST['xavatar'])) {
+ if (file_exists($xavatar_sem)) {
+ unlink($xavatar_sem);
+ }
+ }
+
$fb_sem = "data/items/{$_REQUEST['entry']}/fb.txt";
if (isset($_POST['fb']) and !empty($_POST['fb']) and ($_POST['fb'] == "on")) {
diff --git a/index.php b/index.php
index 65aff82..022245e 100644
--- a/index.php
+++ b/index.php
@@ -62,16 +62,17 @@ else {
}
if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
- $maj_wmain = "610";
+ $maj_wside = "160";
+ $maj_wmain = "600";
}
else {
- $maj_wmain = "525";
+ $maj_wside = "200";
+ $maj_wmain = "520";
}
-$maj_wside = "175";
$maj_wspace = "10";
-$maj_wtable = $maj_wside + $maj_wspace + $maj_wmain + $maj_wspace + $maj_wside;
+$maj_wtable = $maj_wspace + $maj_wside + $maj_wspace + $maj_wmain + $maj_wspace + $maj_wside + $maj_wspace;
$maj_default_blog_title = "My Activity Journal";
$maj_default_username = "maj";
@@ -482,7 +483,7 @@ if (isset($maj_req_entry) and !empty($maj_req_entry)) {
$maj_title = file_get_contents("data/items/$maj_req_entry/title.txt");
- echo "<title>$maj_title</title>";
+ echo "<title>$maj_title</title>\r\n";
if ((!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $maj_login_username))) {
@@ -684,7 +685,7 @@ if (isset($maj_req_entry) and !empty($maj_req_entry)) {
}
}
else {
- echo "<title>$maj_default_title</title>";
+ echo "<title>$maj_default_title</title>\r\n";
}
if (file_exists("data/comments/pending") and (file_exists("data/xscreen.txt") or (isset($_SESSION['logged_in']) and file_exists("data/members/active/{$_SESSION['logged_in']}/xscreen.txt")))) {
@@ -823,130 +824,135 @@ if (file_exists("data/header.txt")) {
}
-echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wtable\">";
-echo "<tr><td width=\"$maj_wside\" height=\"$maj_wspace\"></td><td width=\"$maj_wspace\" height=\"$maj_wspace\"><div style=\"width: {$maj_wspace}px;\"></div></td><td width=\"$maj_wmain\" height=\"$maj_wspace\"></td><td width=\"$maj_wspace\" height=\"$maj_wspace\"><div style=\"width: {$maj_wspace}px;\"></div></td><td width=\"$maj_wside\" height=\"$maj_wspace\"></td></tr>";
+echo "\r\n\r\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wtable\">\r\n\r\n";
-echo "<tr><td width=\"$maj_wside\" valign=\"top\">";
+echo "<tr>\r\n<td width=\"$maj_wspace\" rowspan=\"2\"><div style=\"width: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wside\" height=\"$maj_wspace\"><div style=\"width: {$maj_wside}px; height: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wspace\" rowspan=\"2\"><div style=\"width: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wmain\" height=\"$maj_wspace\"><div style=\"width: {$maj_wmain}px; height: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wspace\" rowspan=\"2\"><div style=\"width: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wside\" height=\"$maj_wspace\"><div style=\"width: {$maj_wside}px; height: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wspace\" rowspan=\"2\"><div style=\"width: {$maj_wspace}px;\"></div></td>\r\n</tr>\r\n\r\n";
-if (!file_exists("data/xprofile.txt") or ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
-
-?>
-
-<div class="panel_wrapper"><div class="panel_title">Profile</div><div class="panel_body">
+echo "<tr><td width=\"$maj_wside\" valign=\"top\">\r\n";
-<?php
-
-if (file_exists("images/profile.gif")) {
- $maj_profile_gif_image_size = getimagesize("images/profile.gif");
- $maj_profile_gif_image_width = $maj_profile_gif_image_size[0];
- $maj_profile_gif_image_height = $maj_profile_gif_image_size[1];
+if (!file_exists("data/xprofile.txt") or ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
- $maj_max_profile_gif_image_width = 163;
+ echo "\r\n<div class=\"panel_wrapper\">\r\n\r\n\t<div class=\"panel_title\">Profile</div>\r\n\r\n\t<div class=\"panel_body\">\r\n\t\t";
+
+ if (file_exists("images/profile.gif")) {
+ $maj_profile_gif_image_size = getimagesize("images/profile.gif");
+ $maj_profile_gif_image_width = $maj_profile_gif_image_size[0];
+ $maj_profile_gif_image_height = $maj_profile_gif_image_size[1];
+
+ if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
+ $maj_max_profile_gif_image_width = 150;
+ }
+ else {
+ $maj_max_profile_gif_image_width = 190;
+ }
+
+ if ($maj_profile_gif_image_width > $maj_max_profile_gif_image_width) {
+ $maj_sizefactor = (double) ($maj_max_profile_gif_image_width / $maj_profile_gif_image_width) ;
+ $maj_profile_gif_image_width = (int) ($maj_profile_gif_image_width * $maj_sizefactor);
+ $maj_profile_gif_image_height = (int) ($maj_profile_gif_image_height * $maj_sizefactor);
- if ($maj_profile_gif_image_width > $maj_max_profile_gif_image_width) {
- $maj_sizefactor = (double) ($maj_max_profile_gif_image_width / $maj_profile_gif_image_width) ;
- $maj_profile_gif_image_width = (int) ($maj_profile_gif_image_width * $maj_sizefactor);
- $maj_profile_gif_image_height = (int) ($maj_profile_gif_image_height * $maj_sizefactor);
+ echo "<a href=\".\"><img src=\"images/profile.gif\" border=\"0\" width=\"$maj_profile_gif_image_width\" height=\"$maj_profile_gif_image_height\"></a><br>";
+ }
+ else {
+ echo "<a href=\".\"><img src=\"images/profile.gif\" border=\"0\" width=\"$maj_profile_gif_image_width\" height=\"$maj_profile_gif_image_height\" align=\"left\"></a>";
+ }
}
- echo "<img src=\"images/profile.gif\" border=\"0\" width=\"$maj_profile_gif_image_width\" height=\"$maj_profile_gif_image_height\" align=\"left\">";
-}
+ if (file_exists("images/profile.jpg")) {
+ $maj_profile_jpg_image_size = getimagesize("images/profile.jpg");
+ $maj_profile_jpg_image_width = $maj_profile_jpg_image_size[0];
+ $maj_profile_jpg_image_height = $maj_profile_jpg_image_size[1];
-if (file_exists("images/profile.jpg")) {
- $maj_profile_jpg_image_size = getimagesize("images/profile.jpg");
- $maj_profile_jpg_image_width = $maj_profile_jpg_image_size[0];
- $maj_profile_jpg_image_height = $maj_profile_jpg_image_size[1];
-
- $maj_max_profile_jpg_image_width = 163;
-
- if ($maj_profile_jpg_image_width > $maj_max_profile_jpg_image_width) {
- $maj_sizefactor = (double) ($maj_max_profile_jpg_image_width / $maj_profile_jpg_image_width) ;
- $maj_profile_jpg_image_width = (int) ($maj_profile_jpg_image_width * $maj_sizefactor);
- $maj_profile_jpg_image_height = (int) ($maj_profile_jpg_image_height * $maj_sizefactor);
+ if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
+ $maj_max_profile_jpg_image_width = 150;
+ }
+ else {
+ $maj_max_profile_jpg_image_width = 190;
+ }
+
+ if ($maj_profile_jpg_image_width > $maj_max_profile_jpg_image_width) {
+ $maj_sizefactor = (double) ($maj_max_profile_jpg_image_width / $maj_profile_jpg_image_width) ;
+ $maj_profile_jpg_image_width = (int) ($maj_profile_jpg_image_width * $maj_sizefactor);
+ $maj_profile_jpg_image_height = (int) ($maj_profile_jpg_image_height * $maj_sizefactor);
+
+ echo "<a href=\".\"><img src=\"images/profile.jpg\" border=\"0\" width=\"$maj_profile_jpg_image_width\" height=\"$maj_profile_jpg_image_height\"></a><br>";
+ }
+ else {
+ echo "<a href=\".\"><img src=\"images/profile.jpg\" border=\"0\" width=\"$maj_profile_jpg_image_width\" height=\"$maj_profile_jpg_image_height\" align=\"left\"></a>";
+ }
}
- echo "<img src=\"images/profile.jpg\" border=\"0\" width=\"$maj_profile_jpg_image_width\" height=\"$maj_profile_jpg_image_height\" align=\"left\">";
-}
-
-if (file_exists("images/profile.png")) {
- $maj_profile_png_image_size = getimagesize("images/profile.png");
- $maj_profile_png_image_width = $maj_profile_png_image_size[0];
- $maj_profile_png_image_height = $maj_profile_png_image_size[1];
-
- $maj_max_profile_png_image_width = 163;
-
- if ($maj_profile_png_image_width > $maj_max_profile_png_image_width) {
- $maj_sizefactor = (double) ($maj_max_profile_png_image_width / $maj_profile_png_image_width) ;
- $maj_profile_png_image_width = (int) ($maj_profile_png_image_width * $maj_sizefactor);
- $maj_profile_png_image_height = (int) ($maj_profile_png_image_height * $maj_sizefactor);
+ if (file_exists("images/profile.png")) {
+ $maj_profile_png_image_size = getimagesize("images/profile.png");
+ $maj_profile_png_image_width = $maj_profile_png_image_size[0];
+ $maj_profile_png_image_height = $maj_profile_png_image_size[1];
+
+ if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
+ $maj_max_profile_png_image_width = 150;
+ }
+ else {
+ $maj_max_profile_png_image_width = 190;
+ }
+
+ if ($maj_profile_png_image_width > $maj_max_profile_png_image_width) {
+ $maj_sizefactor = (double) ($maj_max_profile_png_image_width / $maj_profile_png_image_width) ;
+ $maj_profile_png_image_width = (int) ($maj_profile_png_image_width * $maj_sizefactor);
+ $maj_profile_png_image_height = (int) ($maj_profile_png_image_height * $maj_sizefactor);
+
+ echo "<a href=\".\"><img src=\"images/profile.png\" border=\"0\" width=\"$maj_profile_png_image_width\" height=\"$maj_profile_png_image_height\"></a><br>";
+ }
+ else {
+ echo "<a href=\".\"><img src=\"images/profile.png\" border=\"0\" width=\"$maj_profile_png_image_width\" height=\"$maj_profile_png_image_height\" align=\"left\"></a>";
+ }
}
- echo "<img src=\"images/profile.png\" border=\"0\" width=\"$maj_profile_png_image_width\" height=\"$maj_profile_png_image_height\" align=\"left\">";
-}
-
-include("data/profile.php");
-
-?>
-
-</div></div>
-
-<?php
+ include("data/profile.php");
+ echo "\r\n\t</div>\r\n</div>\r\n\r\n";
}
if (!file_exists("data/xnavigation.txt") or ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
-?>
-
-<div class="panel_wrapper"><div class="panel_title">Navigation</div><div class="panel_body">
-
-<a class="navlink" href=".">Home</a><br>
-
-<?php
+ echo "<div class=\"panel_wrapper\">\r\n\r\n\t<div class=\"panel_title\">Navigation</div>\r\n\r\n\t<div class=\"panel_body\">\r\n\t\t<a class=\"navlink\" href=\".\">Home</a><br>\r\n";
-if (file_exists("data/bb.txt") and file_exists("data/members/active")) {
- echo '<a class="navlink" href="member.php?id=all">Members</a><br>';
-}
+ if (file_exists("data/bb.txt") and file_exists("data/members/active")) {
+ echo "\t\t<a class=\"navlink\" href=\"member.php?id=all\">Members</a><br>\r\n";
+ }
-if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) {
- echo '<a class="navlink" href="add.php">Add Entry</a><br>';
- echo '<a class="navlink" href="settings.php">Settings</a><br>';
- echo '<a class="navlink" href="panels.php">Panels</a><br>';
- echo '<a class="navlink" href="cat.php">Categories</a><br>';
- echo '<a class="navlink" href="colors.php">Colors</a><br>';
- echo '<a class="navlink" href="fonts.php">Fonts</a><br>';
- echo '<a class="navlink" href="login.php">Logout</a>';
-}
-elseif (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $maj_login_username) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/bb.txt")) {
+ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) {
+ echo "\t\t<a class=\"navlink\" href=\"add.php\">Add Entry</a><br>\r\n";
+ echo "\t\t<a class=\"navlink\" href=\"settings.php\">Settings</a><br>\r\n";
+ echo "\t\t<a class=\"navlink\" href=\"panels.php\">Panels</a><br>\r\n";
+ echo "\t\t<a class=\"navlink\" href=\"cat.php\">Categories</a><br>\r\n";
+ echo "\t\t<a class=\"navlink\" href=\"colors.php\">Colors</a><br>\r\n";
+ echo "\t\t<a class=\"navlink\" href=\"fonts.php\">Fonts</a><br>\r\n";
+ echo "\t\t<a class=\"navlink\" href=\"login.php\">Logout</a>\r\n";
+ }
+ elseif (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $maj_login_username) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/bb.txt")) {
- if (file_exists("data/members/active/{$_SESSION['logged_in']}/categories/$maj_req_category")) {
+ if (file_exists("data/members/active/{$_SESSION['logged_in']}/categories/$maj_req_category")) {
+
+ if (!file_exists("data/categories/$maj_req_category")) {
+ rmdirr("data/members/active/{$_SESSION['logged_in']}/categories/$maj_req_category");
+ }
+ }
- if (!file_exists("data/categories/$maj_req_category")) {
- rmdirr("data/members/active/{$_SESSION['logged_in']}/categories/$maj_req_category");
+ if (!file_exists("data/noadd.txt") and (file_exists("data/members/active/{$_SESSION['logged_in']}/bb-rw.txt") or file_exists("data/members/active/{$_SESSION['logged_in']}/categories/$maj_req_category"))) {
+ echo '<a class="navlink" href="add.php">Add Entry</a><br>';
}
- }
- if (!file_exists("data/noadd.txt") and (file_exists("data/members/active/{$_SESSION['logged_in']}/bb-rw.txt") or file_exists("data/members/active/{$_SESSION['logged_in']}/categories/$maj_req_category"))) {
- echo '<a class="navlink" href="add.php">Add Entry</a><br>';
+ echo '<a class="navlink" href="options.php">Options</a><br>';
+ echo '<a class="navlink" href="login.php">Logout</a>';
}
+ else {
+ if (file_exists("data/bb.txt") and file_exists("data/reg.txt")) {
+ echo '<a class="navlink" href="reg.php">Register</a><br>';
+ }
- echo '<a class="navlink" href="options.php">Options</a><br>';
- echo '<a class="navlink" href="login.php">Logout</a>';
-}
-else {
- if (file_exists("data/bb.txt") and file_exists("data/reg.txt")) {
- echo '<a class="navlink" href="reg.php">Register</a><br>';
+ echo '<a class="navlink" href="login.php">Login</a>';
}
- echo '<a class="navlink" href="login.php">Login</a>';
-}
-
-?>
-
-</div></div>
-
-<?php
-
+ echo "\t</div>\r\n</div>\r\n";
}
if (file_exists("data/sticky")) {
@@ -1149,7 +1155,7 @@ if (file_exists("data/panels")) {
}
}
- echo '<div class="panel_wrapper"><div class="panel_title"';
+ echo "\r\n<div class=\"panel_wrapper\">\r\n\r\n\t<div class=\"panel_title\"";
if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_t) or isset($maj_left_panel_text_t)) {
echo ' style="';
@@ -1171,7 +1177,7 @@ if (file_exists("data/panels")) {
echo '"';
}
- echo '>';
+ echo ">";
readfile("data/panels/$maj_left_panel/title.txt");
@@ -1184,9 +1190,9 @@ if (file_exists("data/panels")) {
echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
}
- echo '</div>';
+ echo "</div>";
- echo '<div class="panel_body"';
+ echo "\r\n\r\n\t<div class=\"panel_body\"";
if (isset($maj_left_panel_border) or isset($maj_left_panel_bgcolor_c) or isset($maj_left_panel_text_c)) {
echo ' style="';
@@ -1208,7 +1214,7 @@ if (file_exists("data/panels")) {
echo '"';
}
- echo '>';
+ echo ">\r\n\t\t";
}
if (file_exists("data/panels/$maj_left_panel/free.txt")) {
@@ -1217,20 +1223,18 @@ if (file_exists("data/panels")) {
include("data/panels/$maj_left_panel/panel.php");
- echo '</div></div>';
+ echo "\r\n\t</div>\r\n</div>\r\n";
if (file_exists("data/panels/$maj_left_panel/free.txt") and !file_exists("data/panels/$maj_left_panel/nomargin.txt")) {
- echo "<div style=\"height:10px;\"></div>";
+ echo "<div style=\"height: {$maj_wspace}px;\"></div>";
}
}
}
}
-echo "</td><td width=\"$maj_wspace\"><div style=\"width: {$maj_wspace}px;\"></div></td>";
-
// main
-echo "<td valign=\"top\" width=\"$maj_wmain\">";
+echo "\r\n\r\n<td valign=\"top\" width=\"$maj_wmain\">\r\n\r\n";
if ($maj_count_top_panels > 0) {
@@ -1283,7 +1287,7 @@ if ($maj_count_top_panels > 0) {
}
}
- echo '<div class="panel_wrapper"><div class="panel_title"';
+ echo "\t<div class=\"panel_wrapper\">\r\n\r\n\t\t<div class=\"panel_title\"";
if (isset($maj_top_panel_border) or isset($maj_top_panel_bgcolor_t) or isset($maj_top_panel_text_t)) {
echo ' style="';
@@ -1318,7 +1322,7 @@ if ($maj_count_top_panels > 0) {
echo '<img src="images/widget.private.png" border="0" width="11" height="11" align="right">';
}
- echo '</div>';
+ echo "</div>\r\n\r\n\t\t";
echo '<div class="panel_body"';
@@ -1342,7 +1346,7 @@ if ($maj_count_top_panels > 0) {
echo '"';
}
- echo '>';
+ echo ">\r\n\t\t\t";
}
if (file_exists("data/panels/$maj_top_panel/free.txt")) {
@@ -1351,10 +1355,10 @@ if ($maj_count_top_panels > 0) {
include("data/panels/$maj_top_panel/panel.php");
- echo '</div></div>';
+ echo "\r\n\t\t</div>\r\n\t</div>\r\n\r\n";
if (file_exists("data/panels/$maj_top_panel/free.txt") and !file_exists("data/panels/$maj_top_panel/nomargin.txt")) {
- echo "<div style=\"height:10px;\"></div>";
+ echo "<div style=\"height: {$maj_wspace}px;\"></div>";
}
}
}
@@ -1374,7 +1378,7 @@ if ($maj_dh_items = opendir("data/items")) {
while (($maj_item = readdir($maj_dh_items)) !== false) {
if ($maj_item != "." && $maj_item != "..") {
-
+
if (file_exists("data/items/$maj_item/categories")) {
if ($maj_dh_egroups = opendir("data/items/$maj_item/categories")) {
@@ -1890,7 +1894,7 @@ if ($maj_count_center_panels > 0) {
echo '</div></div>';
if (file_exists("data/panels/$maj_center_panel/free.txt") and !file_exists("data/panels/$maj_center_panel/nomargin.txt")) {
- echo "<div style=\"height:10px;\"></div>";
+ echo "<div style=\"height: {$maj_wspace}px;\"></div>";
}
}
}
@@ -1968,7 +1972,7 @@ $maj_disp = array_slice($maj_items,$maj_start,$maj_increase);
foreach ($maj_disp as $maj_d) {
- echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\"><tr><td width=\"$maj_wmain\">";
+ echo "\t<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\"><tr><td width=\"$maj_wmain\">\r\n\r\n\t";
if (file_exists("data/items/$maj_d/border.txt")) {
$maj_d_border = file_get_contents("data/items/$maj_d/border.txt");
@@ -2051,7 +2055,7 @@ foreach ($maj_disp as $maj_d) {
}
}
- echo '<div class="panel_wrapper">';
+ echo "\t<div class=\"panel_wrapper\">\r\n\r\n\t\t\t";
if (!file_exists("data/items/$maj_d/xtitle.txt") or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == file_get_contents("data/username.txt")))) {
@@ -2167,10 +2171,10 @@ foreach ($maj_disp as $maj_d) {
}
- echo "</div>";
+ echo "</div>\r\n\r\n";
}
- echo "<div class=\"panel_entry_body\"";
+ echo "\t\t\t<div class=\"panel_entry_body\"";
if (isset($maj_d_border) or isset($maj_d_bgcolor_b) or isset($maj_d_text_b)) {
echo ' style="';
@@ -2194,11 +2198,11 @@ foreach ($maj_disp as $maj_d) {
echo '>';
- echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
+ echo "\r\n\t\t\t\t<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
- if (file_exists("data/bb.txt") and file_exists("data/avatar.txt") and file_exists("data/items/$maj_d/author.txt")) {
+ if (file_exists("data/bb.txt") and file_exists("data/avatar.txt") and file_exists("data/items/$maj_d/author.txt") and !file_exists("data/items/$maj_d/xavatar.txt")) {
- echo "<td width=\"85\" valign=\"top\">";
+ echo "<td width=\"75\" valign=\"top\">";
$maj_author = file_get_contents("data/items/$maj_d/author.txt");
@@ -2212,7 +2216,7 @@ foreach ($maj_disp as $maj_d) {
$maj_avatar_gif_image_width = $maj_avatar_gif_image_size[0];
$maj_avatar_gif_image_height = $maj_avatar_gif_image_size[1];
- $maj_max_avatar_gif_image_width = 80;
+ $maj_max_avatar_gif_image_width = 75;
if ($maj_avatar_gif_image_width > $maj_max_avatar_gif_image_width) {
@@ -2258,7 +2262,7 @@ foreach ($maj_disp as $maj_d) {
$maj_avatar_jpg_image_width = $maj_avatar_jpg_image_size[0];
$maj_avatar_jpg_image_height = $maj_avatar_jpg_image_size[1];
- $maj_max_avatar_jpg_image_width = 80;
+ $maj_max_avatar_jpg_image_width = 75;
if ($maj_avatar_jpg_image_width > $maj_max_avatar_jpg_image_width) {
@@ -2290,7 +2294,7 @@ foreach ($maj_disp as $maj_d) {
$maj_avatar_png_image_width = $maj_avatar_png_image_size[0];
$maj_avatar_png_image_height = $maj_avatar_png_image_size[1];
- $maj_max_avatar_png_image_width = 80;
+ $maj_max_avatar_png_image_width = 75;
if ($maj_avatar_png_image_width > $maj_max_avatar_png_image_width) {
@@ -2330,7 +2334,7 @@ foreach ($maj_disp as $maj_d) {
$maj_avatar_gif_image_width = $maj_avatar_gif_image_size[0];
$maj_avatar_gif_image_height = $maj_avatar_gif_image_size[1];
- $maj_max_avatar_gif_image_width = 80;
+ $maj_max_avatar_gif_image_width = 75;
if ($maj_avatar_gif_image_width > $maj_max_avatar_gif_image_width) {
@@ -2376,7 +2380,7 @@ foreach ($maj_disp as $maj_d) {
$maj_avatar_jpg_image_width = $maj_avatar_jpg_image_size[0];
$maj_avatar_jpg_image_height = $maj_avatar_jpg_image_size[1];
- $maj_max_avatar_jpg_image_width = 80;
+ $maj_max_avatar_jpg_image_width = 75;
if ($maj_avatar_jpg_image_width > $maj_max_avatar_jpg_image_width) {
@@ -2408,7 +2412,7 @@ foreach ($maj_disp as $maj_d) {
$maj_avatar_png_image_width = $maj_avatar_png_image_size[0];
$maj_avatar_png_image_height = $maj_avatar_png_image_size[1];
- $maj_max_avatar_png_image_width = 80;
+ $maj_max_avatar_png_image_width = 75;
if ($maj_avatar_png_image_width > $maj_max_avatar_png_image_width) {
$maj_sizefactor = (double) ($maj_max_avatar_png_image_width / $maj_avatar_png_image_width) ;
@@ -2515,10 +2519,14 @@ foreach ($maj_disp as $maj_d) {
unset($maj_items_posts);
- echo "</td><td width=513 valign=top>";
+ echo "</td><td width=\"5\" valign=\"top\"><div style=\"width: 5px;\"></div></td>";
}
- else {
- echo "<td width=598 valign=top>";
+
+ if (file_exists("data/avatar.txt") and file_exists("data/items/$maj_d/xavatar.txt")) {
+ echo "<td width=\"590\" valign=\"top\">";
+ }
+ else {
+ echo "<td width=\"510\" valign=\"top\">";
}
if (file_exists("data/items/$maj_d/passwd.txt")) {
@@ -2537,8 +2545,12 @@ foreach ($maj_disp as $maj_d) {
echo "<font style=\"font-size: $maj_font_Spx; color: #999999;\">";
if ((file_exists("data/items/$maj_d/author.txt") and (file_exists("data/bb.txt") and !file_exists("data/avatar.txt")) or (file_exists("data/items/$maj_d/author.txt") and (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username) and !file_exists("data/avatar.txt"))))) {
+
$maj_xavatar_author = file_get_contents("data/items/$maj_d/author.txt");
- echo "$maj_xavatar_author - ";
+
+ if (!file_exists("data/items/$maj_d/xauthor.txt") or (file_exists("data/items/$maj_d/xauthor.txt") and ($_SESSION['logged_in'] == file_get_contents("data/username.txt")))) {
+ echo "$maj_xavatar_author - ";
+ }
}
entry2date($maj_d);
@@ -2581,7 +2593,6 @@ foreach ($maj_disp as $maj_d) {
$maj_entry_body = preg_replace("/\b($maj_badwords)\b/i",$maj_censor,$maj_entry_body);
}
- // if (file_exists("data/items/$maj_d/maxlines.txt") and (!isset($_REQUEST['view']) or ($_REQUEST['view'] != "full"))) {
if (file_exists("data/items/$maj_d/maxlines.txt") and (!isset($maj_req_entry) or empty($maj_req_entry))) {
$maj_entry_shorten = file_get_contents("data/items/$maj_d/maxlines.txt");
@@ -2617,7 +2628,7 @@ foreach ($maj_disp as $maj_d) {
$entry_url = rawurlencode($entry_url);
- echo "<br><br><iframe src=\"http://www.facebook.com/plugins/like.php?href=$entry_url&layout=standard&show_faces=false&width=513&action=like&colorscheme=light&height=25\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:513px; height:25px;\" allowTransparency=\"true\"></iframe>";
+ echo "<br><br><iframe src=\"http://www.facebook.com/plugins/like.php?href=$entry_url&layout=standard&show_faces=false&width=510&action=like&colorscheme=light&height=25\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:510px; height:25px;\" allowTransparency=\"true\"></iframe>";
}
if (isset($maj_d_text_b)) {
@@ -2626,7 +2637,7 @@ foreach ($maj_disp as $maj_d) {
echo "</td></tr></table>";
- echo "</div>";
+ echo "\r\n\t\t\t</div>";
if (file_exists("data/items/$maj_d/categories") and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
@@ -2657,7 +2668,7 @@ foreach ($maj_disp as $maj_d) {
$maj_category_list = $maj_category_list . " | <a href=\"index.php?category=$maj_filed_under\" class=\"status\">$maj_filed_under</a>";
}
- echo "<div class=\"panel_category\"";
+ echo "\r\n\r\n\t\t\t<div class=\"panel_category\"";
if (isset($maj_d_border) or isset($maj_d_bgcolor_c) or isset($maj_d_text_c)) {
echo ' style="';
@@ -2684,7 +2695,7 @@ foreach ($maj_disp as $maj_d) {
unset($maj_entry_categories);
}
- echo "<div class=\"panel_footer\"";
+ echo "\r\n\r\n\t\t\t<div class=\"panel_footer\"";
if (isset($maj_d_border) or isset($maj_d_bgcolor_f) or isset($maj_d_text_f)) {
echo ' style="';
@@ -2706,7 +2717,7 @@ foreach ($maj_disp as $maj_d) {
echo '"';
}
- echo '>';
+ echo ">\r\n\t\t\t\t";
if (!file_exists("data/nocomment.txt") or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) or (file_exists("data/memcomment.txt") and isset($_SESSION['logged_in'])) or file_exists("data/items/$maj_d/ucomment.txt")) {
@@ -3010,9 +3021,9 @@ foreach ($maj_disp as $maj_d) {
echo "| <a href=\"index.php?entry=$maj_d\" class=\"status\">permalink</a>";
}
- echo "</div></div>";
+ echo "\r\n\t\t\t</div>\r\n\t\t</div>\r\n\r\n";
- echo "</td></tr></table>";
+ echo "\t</td></tr></table>\r\n\r\n";
if ($maj_count_entry_panels > 0) {
@@ -3136,7 +3147,7 @@ foreach ($maj_disp as $maj_d) {
echo '</div></div>';
if (file_exists("data/panels/$maj_entry_panel/free.txt") and !file_exists("data/panels/$maj_entry_panel/nomargin.txt")) {
- echo "<div style=\"height:10px;\"></div>";
+ echo "<div style=\"height: {$maj_wspace}px;\"></div>";
}
}
}
@@ -3521,12 +3532,11 @@ foreach ($maj_disp as $maj_d) {
echo '<a href=del.php?entry=' . $maj_d . '&comment=' . $maj_comment . '&type=live><img src=images/widget.del.png width=11 height=11 border=0 align=right alt="delete comment"></a>';
echo '<a href=move.php?entry=' . $maj_d . '&comment=' . $maj_comment . '&type=live><img src=images/widget.move.png width=11 height=11 border=0 align=right alt="move comment"></a>';
echo '<a href=edit.php?entry=' . $maj_d . '&comment=' . $maj_comment . '&type=live><img src=images/widget.edit.png width=11 height=11 border=0 align=right alt="edit comment"></a>';
- //echo "<a href=\"?entry={$maj_d}&show=comments#{$maj_comment}\"><img src=\"images/widget.link.png\" width=\"11\" height=\"11\" border=\"0\" align=\"right\" alt=\"permalink\"></a>";
}
echo '</div><div class=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("data/items/$maj_d/comments/live/$maj_comment/author.txt")) {
- echo "<td width=85 valign=top>";
+ echo "<td width=75 valign=top>";
$maj_c_author = file_get_contents("data/items/$maj_d/comments/live/$maj_comment/author.txt");
echo "<a href=member.php?id=$maj_c_author>";
if ((file_get_contents("data/username.txt") == $maj_c_author) and (file_exists("images/avatar.jpg") or file_exists("images/avatar.gif") or file_exists("images/avatar.png"))) {
@@ -3535,7 +3545,7 @@ foreach ($maj_disp as $maj_d) {
$maj_c_avatar_gif_image_width = $maj_c_avatar_gif_image_size[0];
$maj_c_avatar_gif_image_height = $maj_c_avatar_gif_image_size[1];
- $maj_c_max_avatar_gif_image_width = 80;
+ $maj_c_max_avatar_gif_image_width = 75;
if ($maj_c_avatar_gif_image_width > $maj_c_max_avatar_gif_image_width) {
@@ -3582,7 +3592,7 @@ foreach ($maj_disp as $maj_d) {
$maj_c_avatar_jpg_image_width = $maj_c_avatar_jpg_image_size[0];
$maj_c_avatar_jpg_image_height = $maj_c_avatar_jpg_image_size[1];
- $maj_c_max_avatar_jpg_image_width = 80;
+ $maj_c_max_avatar_jpg_image_width = 75;
if ($maj_c_avatar_jpg_image_width > $maj_c_max_avatar_jpg_image_width) {
@@ -3616,7 +3626,7 @@ foreach ($maj_disp as $maj_d) {
$maj_c_avatar_png_image_width = $maj_c_avatar_png_image_size[0];
$maj_c_avatar_png_image_height = $maj_c_avatar_png_image_size[1];
- $maj_c_max_avatar_png_image_width = 80;
+ $maj_c_max_avatar_png_image_width = 75;
if ($maj_c_avatar_png_image_width > $maj_c_max_avatar_png_image_width) {
@@ -3657,7 +3667,7 @@ foreach ($maj_disp as $maj_d) {
$maj_c_avatar_gif_image_width = $maj_c_avatar_gif_image_size[0];
$maj_c_avatar_gif_image_height = $maj_c_avatar_gif_image_size[1];
- $maj_c_max_avatar_gif_image_width = 80;
+ $maj_c_max_avatar_gif_image_width = 75;
if ($maj_c_avatar_gif_image_width > $maj_c_max_avatar_gif_image_width) {
@@ -3705,7 +3715,7 @@ foreach ($maj_disp as $maj_d) {
$maj_c_avatar_jpg_image_width = $maj_c_avatar_jpg_image_size[0];
$maj_c_avatar_jpg_image_height = $maj_c_avatar_jpg_image_size[1];
- $maj_c_max_avatar_jpg_image_width = 80;
+ $maj_c_max_avatar_jpg_image_width = 75;
if ($maj_c_avatar_jpg_image_width > $maj_c_max_avatar_jpg_image_width) {
@@ -3739,7 +3749,7 @@ foreach ($maj_disp as $maj_d) {
$maj_c_avatar_png_image_width = $maj_c_avatar_png_image_size[0];
$maj_c_avatar_png_image_height = $maj_c_avatar_png_image_size[1];
- $maj_c_max_avatar_png_image_width = 80;
+ $maj_c_max_avatar_png_image_width = 75;
if ($maj_c_avatar_png_image_width > $maj_c_max_avatar_png_image_width) {
@@ -3844,12 +3854,11 @@ foreach ($maj_disp as $maj_d) {
}
unset($maj_c_items_posts);
- echo "</td><td width=513 valign=top>";
- }
- else {
- echo "<td width=598 valign=top>";
+ echo "</td><td width=5 valign=top><div style=\"width: 5px;\"></div></td>";
}
+ echo "<td width=510 valign=top>";
+
echo "<font style=\"font-size: $maj_font_Spx; color: #999999;\">";
if ((file_exists("data/items/$maj_d/comments/live/$maj_comment/author.txt") and (file_exists("data/bb.txt") and !file_exists("data/avatar.txt")) or (file_exists("data/items/$maj_d/comments/live/$maj_comment/author.txt") and (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username) and !file_exists("data/avatar.txt"))))) {
@@ -4164,7 +4173,7 @@ foreach ($maj_disp as $maj_d) {
if (file_exists("data/bb.txt") and file_exists("data/avatar.txt") and file_exists("data/items/$maj_d/comments/pending/$maj_pending_comment/author.txt")) {
- echo "<td width=85 valign=top>";
+ echo "<td width=75 valign=top>";
$maj_pc_author = file_get_contents("data/items/$maj_d/comments/pending/$maj_pending_comment/author.txt");
@@ -4177,7 +4186,7 @@ foreach ($maj_disp as $maj_d) {
$maj_pc_avatar_gif_image_width = $maj_pc_avatar_gif_image_size[0];
$maj_pc_avatar_gif_image_height = $maj_pc_avatar_gif_image_size[1];
- $maj_pc_max_avatar_gif_image_width = 80;
+ $maj_pc_max_avatar_gif_image_width = 75;
if ($maj_pc_avatar_gif_image_width > $maj_pc_max_avatar_gif_image_width) {
$maj_sizefactor = (double) ($maj_pc_max_avatar_gif_image_width / $maj_pc_avatar_gif_image_width) ;
@@ -4196,7 +4205,7 @@ foreach ($maj_disp as $maj_d) {
$maj_pc_avatar_jpg_image_width = $maj_pc_avatar_jpg_image_size[0];
$maj_pc_avatar_jpg_image_height = $maj_pc_avatar_jpg_image_size[1];
- $maj_pc_max_avatar_jpg_image_width = 80;
+ $maj_pc_max_avatar_jpg_image_width = 75;
if ($maj_pc_avatar_jpg_image_width > $maj_pc_max_avatar_jpg_image_width) {
$maj_sizefactor = (double) ($maj_pc_max_avatar_jpg_image_width / $maj_pc_avatar_jpg_image_width) ;
@@ -4215,7 +4224,7 @@ foreach ($maj_disp as $maj_d) {
$maj_pc_avatar_png_image_width = $maj_pc_avatar_png_image_size[0];
$maj_pc_avatar_png_image_height = $maj_pc_avatar_png_image_size[1];
- $maj_pc_max_avatar_png_image_width = 80;
+ $maj_pc_max_avatar_png_image_width = 75;
if ($maj_pc_avatar_png_image_width > $maj_pc_max_avatar_png_image_width) {
$maj_sizefactor = (double) ($maj_pc_max_avatar_png_image_width / $maj_pc_avatar_png_image_width) ;
@@ -4237,7 +4246,7 @@ foreach ($maj_disp as $maj_d) {
$maj_pc_avatar_gif_image_width = $maj_pc_avatar_gif_image_size[0];
$maj_pc_avatar_gif_image_height = $maj_pc_avatar_gif_image_size[1];
- $maj_pc_max_avatar_gif_image_width = 80;
+ $maj_pc_max_avatar_gif_image_width = 75;
if ($maj_pc_avatar_gif_image_width > $maj_pc_max_avatar_gif_image_width) {
$maj_sizefactor = (double) ($maj_pc_max_avatar_gif_image_width / $maj_pc_avatar_gif_image_width) ;
@@ -4256,7 +4265,7 @@ foreach ($maj_disp as $maj_d) {
$maj_pc_avatar_jpg_image_width = $maj_pc_avatar_jpg_image_size[0];
$maj_pc_avatar_jpg_image_height = $maj_pc_avatar_jpg_image_size[1];
- $maj_pc_max_avatar_jpg_image_width = 80;
+ $maj_pc_max_avatar_jpg_image_width = 75;
if ($maj_pc_avatar_jpg_image_width > $maj_pc_max_avatar_jpg_image_width) {
$maj_sizefactor = (double) ($maj_pc_max_avatar_jpg_image_width / $maj_pc_avatar_jpg_image_width) ;
@@ -4275,7 +4284,7 @@ foreach ($maj_disp as $maj_d) {
$maj_pc_avatar_png_image_width = $maj_pc_avatar_png_image_size[0];
$maj_pc_avatar_png_image_height = $maj_pc_avatar_png_image_size[1];
- $maj_pc_max_avatar_png_image_width = 80;
+ $maj_pc_max_avatar_png_image_width = 75;
if ($maj_pc_avatar_png_image_width > $maj_pc_max_avatar_png_image_width) {
$maj_sizefactor = (double) ($maj_pc_max_avatar_png_image_width / $maj_pc_avatar_png_image_width) ;
@@ -4362,11 +4371,10 @@ foreach ($maj_disp as $maj_d) {
}
unset($maj_pc_items_posts);
- echo "</td><td width=513 valign=top>";
- }
- else {
- echo "<td width=598 valign=top>";
+ echo "</td><td width=5 valign=top><div style=\"width: 5px;\"></div></td>";
}
+
+ echo "<td width=510 valign=top>";
echo "<font style=\"font-size: $maj_font_Spx; color: #999999;\">";
@@ -4515,7 +4523,7 @@ if ($maj_count_bottom_panels > 0) {
echo '</div></div>';
if (file_exists("data/panels/$maj_bottom_panel/free.txt") and !file_exists("data/panels/$maj_bottom_panel/nomargin.txt")) {
- echo "<div style=\"height:10px;\"></div>";
+ echo "<div style=\"height: {$maj_wspace}px;\"></div>";
}
}
}
@@ -4617,9 +4625,11 @@ if ($maj_end < sizeof($maj_items)) {
echo "&start=" . ($maj_start+$maj_increase) . "\">next</a></td>";
}
+echo "</tr></table></td>";
+
// right side
-echo "</tr></table></td><td width=\"$maj_wspace\"><div style=\"width: {$maj_wspace}px;\"></div></td><td width=\"$maj_wside\" valign=\"top\">";
+echo "<td width=\"$maj_wside\" valign=\"top\">";
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_username)) {
if ($maj_dh_pending_comment_flags = opendir("data/comments/pending")) {
@@ -5237,7 +5247,7 @@ if ($maj_count_right_panels > 0) {
echo '</div></div>';
if (file_exists("data/panels/$maj_right_panel/free.txt") and !file_exists("data/panels/$maj_right_panel/nomargin.txt")) {
- echo "<div style=\"height:10px;\"></div>";
+ echo "<div style=\"height: {$maj_wspace}px;\"></div>";
}
}
}
@@ -5255,7 +5265,9 @@ if ($maj_count_latest > 0) {
}
echo "</td></tr>";
-echo "<tr><td width=\"$maj_wside\" height=\"$maj_wspace\"></td><td width=\"$maj_wspace\" height=\"$maj_wspace\"><div style=\"width: {$maj_wspace}px;\"></div></td><td width=\"$maj_wmain\" height=\"$maj_wspace\"></td><td width=\"$maj_wspace\" height=\"$maj_wspace\"><div style=\"width: {$maj_wspace}px;\"></div></td><td width=\"$maj_wside\" height=\"$maj_wspace\"></td></tr>";
+
+echo "<tr><td colspan=\"7\" height=\"$maj_wspace\"><div style=\"height: {$maj_wspace}px;\"></div></td></tr>";
+
echo "</table>";
if (file_exists("data/footer.txt")) {