This commit has been accessed 581 times via Git panel.
commit 9256d60951f9080e60c929e10506c155714b2032
tree 5f8ca353adf608e372d298a8a5406b2b9ccf7f91
parent 925be945ddb35224eb7c1d1637408cdd842dbdd8
author Engels Antonio <engels@majcms.org> 1277314199 +0800
committer Engels Antonio <engels@majcms.org> 1277314199 +0800
maj-0.14-20080703-bb.zip
diff --git a/index.php b/index.php
index 453c23b..f024a95 100644
--- a/index.php
+++ b/index.php
@@ -1940,7 +1940,7 @@ reset($items);
sort($grand);
reset($grand);
-if (count($items) == "0") {
+if (count($items) == 0) {
echo '<table border=0 cellspacing=0 cellpadding=0 bgcolor=#cccccc style="background-color: transparent;"><tr><td width=';
if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
@@ -1960,11 +1960,16 @@ if (count($items) == "0") {
echo 'Oops!</div><div id=panel_body>';
- if (count($grand) == "0") {
- echo "No entry yet.";
+ if ((count($grand) == 0) and (count($_GET) == 0)) {
+ echo "No entries found. Perhaps this is a fresh install.";
}
else {
- echo "Entry does not exist.";
+ if (count($_GET) > 0) {
+ echo "The entry you are looking for does not exist or is off limits to you.";
+ }
+ else {
+ echo "Login required. Entries are off limits until you do.";
+ }
}
echo '</div>';
@@ -4311,7 +4316,7 @@ if (($count_latest_comments > 0) and ($count_latest_items > $increase) and (!fil
$latest_comment_entry_count = count(glob("data/comments/latest/$cmonth/$latest_comment_entry/*"));
- echo "<tr><td valign=top><a class=navlink href=index.php?entry=$latest_comment_entry&show=comments>$latest_comment_entry_title</a></td><td align=right valign=top>$latest_comment_entry_count</td></tr>";
+ echo "<tr><td valign=bottom><a class=navlink href=index.php?entry=$latest_comment_entry&show=comments>$latest_comment_entry_title</a></td><td align=right valign=bottom>$latest_comment_entry_count</td></tr>";
}
echo '</table></div>';
tree 5f8ca353adf608e372d298a8a5406b2b9ccf7f91
parent 925be945ddb35224eb7c1d1637408cdd842dbdd8
author Engels Antonio <engels@majcms.org> 1277314199 +0800
committer Engels Antonio <engels@majcms.org> 1277314199 +0800
maj-0.14-20080703-bb.zip
diff --git a/index.php b/index.php
index 453c23b..f024a95 100644
--- a/index.php
+++ b/index.php
@@ -1940,7 +1940,7 @@ reset($items);
sort($grand);
reset($grand);
-if (count($items) == "0") {
+if (count($items) == 0) {
echo '<table border=0 cellspacing=0 cellpadding=0 bgcolor=#cccccc style="background-color: transparent;"><tr><td width=';
if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
@@ -1960,11 +1960,16 @@ if (count($items) == "0") {
echo 'Oops!</div><div id=panel_body>';
- if (count($grand) == "0") {
- echo "No entry yet.";
+ if ((count($grand) == 0) and (count($_GET) == 0)) {
+ echo "No entries found. Perhaps this is a fresh install.";
}
else {
- echo "Entry does not exist.";
+ if (count($_GET) > 0) {
+ echo "The entry you are looking for does not exist or is off limits to you.";
+ }
+ else {
+ echo "Login required. Entries are off limits until you do.";
+ }
}
echo '</div>';
@@ -4311,7 +4316,7 @@ if (($count_latest_comments > 0) and ($count_latest_items > $increase) and (!fil
$latest_comment_entry_count = count(glob("data/comments/latest/$cmonth/$latest_comment_entry/*"));
- echo "<tr><td valign=top><a class=navlink href=index.php?entry=$latest_comment_entry&show=comments>$latest_comment_entry_title</a></td><td align=right valign=top>$latest_comment_entry_count</td></tr>";
+ echo "<tr><td valign=bottom><a class=navlink href=index.php?entry=$latest_comment_entry&show=comments>$latest_comment_entry_title</a></td><td align=right valign=bottom>$latest_comment_entry_count</td></tr>";
}
echo '</table></div>';