This commit has been accessed 301 times via Git panel.
commit f693cacbbdbbc40d01e023f0a0f07260f05f5ab9
tree 37e852d9e809878bf3fa387d62e9363011a5c8ff
parent 238981c4cf0923dee796dd97222cb6d520335955
author Engels Antonio <engels@majcms.org> 1277314213 +0800
committer Engels Antonio <engels@majcms.org> 1277314213 +0800
maj-2.0-201006030958.zip
diff --git a/index.php b/index.php
index b25291d..fe78c94 100644
--- a/index.php
+++ b/index.php
@@ -4155,6 +4155,8 @@ foreach ($maj_disp as $maj_d) {
reset($maj_show_comments);
foreach ($maj_show_comments as $maj_comment) {
+ echo "<a name=\"$maj_comment\"></a>";
+
if (file_exists("data/round.txt")) {
echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
}
@@ -4186,6 +4188,7 @@ 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>';
@@ -4577,6 +4580,8 @@ foreach ($maj_disp as $maj_d) {
}
}
+ echo "<a name=\"end\"></a>";
+
if (!file_exists("data/nocomment.txt") or (file_exists("data/memcomment.txt") and isset($_SESSION['logged_in'])) or file_exists("data/items/$maj_d/ucomment.txt")) {
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wmain\"><tr><td>";
@@ -4748,6 +4753,8 @@ foreach ($maj_disp as $maj_d) {
$maj_count_pending_comments = count($maj_show_pending_comments);
if ($maj_count_pending_comments > 0) {
+
+ echo '<a name="pending"></a>';
if ($maj_count_pending_comments == 1) {
echo '<p><b>Pending Comment</b></p>';
@@ -4757,7 +4764,7 @@ foreach ($maj_disp as $maj_d) {
}
foreach ($maj_show_pending_comments as $maj_pending_comment) {
-
+
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wmain\"><tr><td>";
if (file_exists("data/round.txt")) {
@@ -5168,7 +5175,7 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_user
if ($maj_entry_list_pending_comment_flags != "." && $maj_entry_list_pending_comment_flags != "..") {
- echo "<a href=\"index.php?entry=$maj_entry_list_pending_comment_flags&show=comments\">";
+ echo "<a href=\"index.php?entry=$maj_entry_list_pending_comment_flags&show=comments#pending\">";
readfile("data/items/$maj_entry_list_pending_comment_flags/title.txt");
echo "</a><br><font style=\"font-size: $maj_font_10px; color: #999999;\">";
$maj_fp_comment_count_txt = fopen("data/comments/pending/$maj_entry_list_pending_comment_flags/count.txt","r");
diff --git a/rel.txt b/rel.txt
index 01bd233..4c30fed 100644
--- a/rel.txt
+++ b/rel.txt
@@ -1 +1 @@
-201006030907
+201006030958
tree 37e852d9e809878bf3fa387d62e9363011a5c8ff
parent 238981c4cf0923dee796dd97222cb6d520335955
author Engels Antonio <engels@majcms.org> 1277314213 +0800
committer Engels Antonio <engels@majcms.org> 1277314213 +0800
maj-2.0-201006030958.zip
diff --git a/index.php b/index.php
index b25291d..fe78c94 100644
--- a/index.php
+++ b/index.php
@@ -4155,6 +4155,8 @@ foreach ($maj_disp as $maj_d) {
reset($maj_show_comments);
foreach ($maj_show_comments as $maj_comment) {
+ echo "<a name=\"$maj_comment\"></a>";
+
if (file_exists("data/round.txt")) {
echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
}
@@ -4186,6 +4188,7 @@ 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>';
@@ -4577,6 +4580,8 @@ foreach ($maj_disp as $maj_d) {
}
}
+ echo "<a name=\"end\"></a>";
+
if (!file_exists("data/nocomment.txt") or (file_exists("data/memcomment.txt") and isset($_SESSION['logged_in'])) or file_exists("data/items/$maj_d/ucomment.txt")) {
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wmain\"><tr><td>";
@@ -4748,6 +4753,8 @@ foreach ($maj_disp as $maj_d) {
$maj_count_pending_comments = count($maj_show_pending_comments);
if ($maj_count_pending_comments > 0) {
+
+ echo '<a name="pending"></a>';
if ($maj_count_pending_comments == 1) {
echo '<p><b>Pending Comment</b></p>';
@@ -4757,7 +4764,7 @@ foreach ($maj_disp as $maj_d) {
}
foreach ($maj_show_pending_comments as $maj_pending_comment) {
-
+
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wmain\"><tr><td>";
if (file_exists("data/round.txt")) {
@@ -5168,7 +5175,7 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $maj_login_user
if ($maj_entry_list_pending_comment_flags != "." && $maj_entry_list_pending_comment_flags != "..") {
- echo "<a href=\"index.php?entry=$maj_entry_list_pending_comment_flags&show=comments\">";
+ echo "<a href=\"index.php?entry=$maj_entry_list_pending_comment_flags&show=comments#pending\">";
readfile("data/items/$maj_entry_list_pending_comment_flags/title.txt");
echo "</a><br><font style=\"font-size: $maj_font_10px; color: #999999;\">";
$maj_fp_comment_count_txt = fopen("data/comments/pending/$maj_entry_list_pending_comment_flags/count.txt","r");
diff --git a/rel.txt b/rel.txt
index 01bd233..4c30fed 100644
--- a/rel.txt
+++ b/rel.txt
@@ -1 +1 @@
-201006030907
+201006030958