From be12abaf66f96316f1173cd83d8db1bfd831001c Mon Sep 17 00:00:00 2001 From: shizuki Date: Wed, 29 Nov 2006 05:53:45 +0000 Subject: [PATCH] fix short open tag git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@501 1ca29b6e-896d-4ea0-84a5-967f57386b96 --- trunk/NP_CommentEdit/NP_CommentEdit.php | 100 +++++++++----------------------- trunk/NP_DateLink/NP_DateLink.php | 2 +- 2 files changed, 29 insertions(+), 73 deletions(-) diff --git a/trunk/NP_CommentEdit/NP_CommentEdit.php b/trunk/NP_CommentEdit/NP_CommentEdit.php index 2ff076b..4dc4f80 100644 --- a/trunk/NP_CommentEdit/NP_CommentEdit.php +++ b/trunk/NP_CommentEdit/NP_CommentEdit.php @@ -1,109 +1,65 @@ -isLoggedIn()) { - if ($member->canAlterComment($comment['commentid'])) { - echo ''; - echo '[edit]'; - echo ' [del]'; - echo ''; + $commentid = intval($comment['commentid']); + if ($member->canAlterComment($commentid)) { + $editLink = $CONF['AdminURL'] + . 'index.php?action=commentedit&commentid=' + . $commentid; + $delLink = $CONF['AdminURL'] + . 'index.php?action=commentdelete&commentid=' + . $commentid; + $printData = "\n" + . '[ ' + . _LISTS_EDIT . " ]\n" + . '[ ' + . _LISTS_DELETE . " ]\n" + . "\n"; + echo $printData; } } - - } - //__________________________________________ - -/* - function doAction($type) { - echo 'QQQQQ'; } -*/ - //__________________________________________ } -?> \ No newline at end of file diff --git a/trunk/NP_DateLink/NP_DateLink.php b/trunk/NP_DateLink/NP_DateLink.php index dea1607..2de3bfb 100644 --- a/trunk/NP_DateLink/NP_DateLink.php +++ b/trunk/NP_DateLink/NP_DateLink.php @@ -1,4 +1,4 @@ -