Dotclear

source: admin/post.php @ 916:d4fd1fc3fb7d

Revision 916:d4fd1fc3fb7d, 19.5 KB checked in by franck <carnet.franck.paul@…>, 13 years ago (diff)

Display warning messages if comments or trackbacks are not (more) allowed on currently edited entry, fixes #1136

Line 
1<?php
2# -- BEGIN LICENSE BLOCK ---------------------------------------
3#
4# This file is part of Dotclear 2.
5#
6# Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear
7# Licensed under the GPL version 2.0 license.
8# See LICENSE file or
9# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
10#
11# -- END LICENSE BLOCK -----------------------------------------
12
13require dirname(__FILE__).'/../inc/admin/prepend.php';
14
15dcPage::check('usage,contentadmin');
16
17$post_id = '';
18$cat_id = '';
19$post_dt = '';
20$post_format = $core->auth->getOption('post_format');
21$post_password = '';
22$post_url = '';
23$post_lang = $core->auth->getInfo('user_lang');
24$post_title = '';
25$post_excerpt = '';
26$post_excerpt_xhtml = '';
27$post_content = '';
28$post_content_xhtml = '';
29$post_notes = '';
30$post_status = $core->auth->getInfo('user_post_status');
31$post_selected = false;
32$post_open_comment = $core->blog->settings->system->allow_comments;
33$post_open_tb = $core->blog->settings->system->allow_trackbacks;
34
35$page_title = __('New entry');
36
37$can_view_page = true;
38$can_edit_post = $core->auth->check('usage,contentadmin',$core->blog->id);
39$can_publish = $core->auth->check('publish,contentadmin',$core->blog->id);
40$can_delete = false;
41
42$post_headlink = '<link rel="%s" title="%s" href="post.php?id=%s" />';
43$post_link = '<a href="post.php?id=%s" title="%s">%s</a>';
44
45$next_link = $prev_link = $next_headlink = $prev_headlink = null;
46
47# If user can't publish
48if (!$can_publish) {
49     $post_status = -2;
50}
51
52# Getting categories
53$categories_combo = array('&nbsp;' => '');
54try {
55     $categories = $core->blog->getCategories(array('post_type'=>'post'));
56     while ($categories->fetch()) {
57          $categories_combo[] = new formSelectOption(
58               str_repeat('&nbsp;&nbsp;',$categories->level-1).($categories->level-1 == 0 ? '' : '&bull; ').html::escapeHTML($categories->cat_title),
59               $categories->cat_id
60          );
61     }
62} catch (Exception $e) { }
63
64# Status combo
65foreach ($core->blog->getAllPostStatus() as $k => $v) {
66     $status_combo[$v] = (string) $k;
67}
68
69# Formaters combo
70foreach ($core->getFormaters() as $v) {
71     $formaters_combo[$v] = $v;
72}
73
74# Languages combo
75$rs = $core->blog->getLangs(array('order'=>'asc'));
76$all_langs = l10n::getISOcodes(0,1);
77$lang_combo = array('' => '', __('Most used') => array(), __('Available') => l10n::getISOcodes(1,1));
78while ($rs->fetch()) {
79     if (isset($all_langs[$rs->post_lang])) {
80          $lang_combo[__('Most used')][$all_langs[$rs->post_lang]] = $rs->post_lang;
81          unset($lang_combo[__('Available')][$all_langs[$rs->post_lang]]);
82     } else {
83          $lang_combo[__('Most used')][$rs->post_lang] = $rs->post_lang;
84     }
85}
86unset($all_langs);
87unset($rs);
88
89
90# Get entry informations
91if (!empty($_REQUEST['id']))
92{
93     $params['post_id'] = $_REQUEST['id'];
94     
95     $post = $core->blog->getPosts($params);
96     
97     if ($post->isEmpty())
98     {
99          $core->error->add(__('This entry does not exist.'));
100          $can_view_page = false;
101     }
102     else
103     {
104          $post_id = $post->post_id;
105          $cat_id = $post->cat_id;
106          $post_dt = date('Y-m-d H:i',strtotime($post->post_dt));
107          $post_format = $post->post_format;
108          $post_password = $post->post_password;
109          $post_url = $post->post_url;
110          $post_lang = $post->post_lang;
111          $post_title = $post->post_title;
112          $post_excerpt = $post->post_excerpt;
113          $post_excerpt_xhtml = $post->post_excerpt_xhtml;
114          $post_content = $post->post_content;
115          $post_content_xhtml = $post->post_content_xhtml;
116          $post_notes = $post->post_notes;
117          $post_status = $post->post_status;
118          $post_selected = (boolean) $post->post_selected;
119          $post_open_comment = (boolean) $post->post_open_comment;
120          $post_open_tb = (boolean) $post->post_open_tb;
121         
122          $page_title = __('Edit entry');
123         
124          $can_edit_post = $post->isEditable();
125          $can_delete= $post->isDeletable();
126         
127          $next_rs = $core->blog->getNextPost($post,1);
128          $prev_rs = $core->blog->getNextPost($post,-1);
129         
130          if ($next_rs !== null) {
131               $next_link = sprintf($post_link,$next_rs->post_id,
132                    html::escapeHTML($next_rs->post_title),__('next entry').'&nbsp;&#187;');
133               $next_headlink = sprintf($post_headlink,'next',
134                    html::escapeHTML($next_rs->post_title),$next_rs->post_id);
135          }
136         
137          if ($prev_rs !== null) {
138               $prev_link = sprintf($post_link,$prev_rs->post_id,
139                    html::escapeHTML($prev_rs->post_title),'&#171;&nbsp;'.__('previous entry'));
140               $prev_headlink = sprintf($post_headlink,'previous',
141                    html::escapeHTML($prev_rs->post_title),$prev_rs->post_id);
142          }
143         
144          try {
145               $core->media = new dcMedia($core);
146          } catch (Exception $e) {}
147     }
148}
149
150# Format excerpt and content
151if (!empty($_POST) && $can_edit_post)
152{
153     $post_format = $_POST['post_format'];
154     $post_excerpt = $_POST['post_excerpt'];
155     $post_content = $_POST['post_content'];
156     
157     $post_title = $_POST['post_title'];
158     
159     $cat_id = (integer) $_POST['cat_id'];
160     
161     if (isset($_POST['post_status'])) {
162          $post_status = (integer) $_POST['post_status'];
163     }
164     
165     if (empty($_POST['post_dt'])) {
166          $post_dt = '';
167     } else {
168          $post_dt = strtotime($_POST['post_dt']);
169          $post_dt = date('Y-m-d H:i',$post_dt);
170     }
171     
172     $post_open_comment = !empty($_POST['post_open_comment']);
173     $post_open_tb = !empty($_POST['post_open_tb']);
174     $post_selected = !empty($_POST['post_selected']);
175     $post_lang = $_POST['post_lang'];
176     $post_password = !empty($_POST['post_password']) ? $_POST['post_password'] : null;
177     
178     $post_notes = $_POST['post_notes'];
179     
180     if (isset($_POST['post_url'])) {
181          $post_url = $_POST['post_url'];
182     }
183     
184     $core->blog->setPostContent(
185          $post_id,$post_format,$post_lang,
186          $post_excerpt,$post_excerpt_xhtml,$post_content,$post_content_xhtml
187     );
188}
189
190# Create or update post
191if (!empty($_POST) && !empty($_POST['save']) && $can_edit_post)
192{
193     $cur = $core->con->openCursor($core->prefix.'post');
194     
195     $cur->post_title = $post_title;
196     $cur->cat_id = ($cat_id ? $cat_id : null);
197     $cur->post_dt = $post_dt ? date('Y-m-d H:i:00',strtotime($post_dt)) : '';
198     $cur->post_format = $post_format;
199     $cur->post_password = $post_password;
200     $cur->post_lang = $post_lang;
201     $cur->post_title = $post_title;
202     $cur->post_excerpt = $post_excerpt;
203     $cur->post_excerpt_xhtml = $post_excerpt_xhtml;
204     $cur->post_content = $post_content;
205     $cur->post_content_xhtml = $post_content_xhtml;
206     $cur->post_notes = $post_notes;
207     $cur->post_status = $post_status;
208     $cur->post_selected = (integer) $post_selected;
209     $cur->post_open_comment = (integer) $post_open_comment;
210     $cur->post_open_tb = (integer) $post_open_tb;
211     
212     if (isset($_POST['post_url'])) {
213          $cur->post_url = $post_url;
214     }
215     
216     # Update post
217     if ($post_id)
218     {
219          try
220          {
221               # --BEHAVIOR-- adminBeforePostUpdate
222               $core->callBehavior('adminBeforePostUpdate',$cur,$post_id);
223               
224               $core->blog->updPost($post_id,$cur);
225               
226               # --BEHAVIOR-- adminAfterPostUpdate
227               $core->callBehavior('adminAfterPostUpdate',$cur,$post_id);
228               
229               http::redirect('post.php?id='.$post_id.'&upd=1');
230          }
231          catch (Exception $e)
232          {
233               $core->error->add($e->getMessage());
234          }
235     }
236     else
237     {
238          $cur->user_id = $core->auth->userID();
239         
240          try
241          {
242               # --BEHAVIOR-- adminBeforePostCreate
243               $core->callBehavior('adminBeforePostCreate',$cur);
244               
245               $return_id = $core->blog->addPost($cur);
246               
247               # --BEHAVIOR-- adminAfterPostCreate
248               $core->callBehavior('adminAfterPostCreate',$cur,$return_id);
249               
250               http::redirect('post.php?id='.$return_id.'&crea=1');
251          }
252          catch (Exception $e)
253          {
254               $core->error->add($e->getMessage());
255          }
256     }
257}
258
259if (!empty($_POST['delete']) && $can_delete)
260{
261     try {
262          # --BEHAVIOR-- adminBeforePostDelete
263          $core->callBehavior('adminBeforePostDelete',$post_id);
264          $core->blog->delPost($post_id);
265          http::redirect('posts.php');
266     } catch (Exception $e) {
267          $core->error->add($e->getMessage());
268     }
269}
270
271/* DISPLAY
272-------------------------------------------------------- */
273$default_tab = 'edit-entry';
274if (!$can_edit_post) {
275     $default_tab = '';
276}
277if (!empty($_GET['co'])) {
278     $default_tab = 'comments';
279}
280
281dcPage::open($page_title.' - '.__('Entries'),
282     dcPage::jsDatePicker().
283     dcPage::jsToolBar().
284     dcPage::jsModal().
285     dcPage::jsMetaEditor().
286     dcPage::jsLoad('js/_post.js').
287     dcPage::jsConfirmClose('entry-form','comment-form').
288     # --BEHAVIOR-- adminPostHeaders
289     $core->callBehavior('adminPostHeaders').
290     dcPage::jsPageTabs($default_tab).
291     $next_headlink."\n".$prev_headlink
292);
293
294if (!empty($_GET['upd'])) {
295     dcPage::message(__('Entry has been successfully updated.'));
296}
297elseif (!empty($_GET['crea'])) {
298     dcPage::message(__('Entry has been successfully created.'));
299}
300elseif (!empty($_GET['attached'])) {
301     dcPage::message(__('File has been successfully attached.'));
302}
303elseif (!empty($_GET['rmattach'])) {
304     dcPage::message(__('Attachment has been successfully removed.'));
305}
306
307if (!empty($_GET['creaco'])) {
308     dcPage::message(__('Comment has been successfully created.'));
309}
310
311# XHTML conversion
312if (!empty($_GET['xconv']))
313{
314     $post_excerpt = $post_excerpt_xhtml;
315     $post_content = $post_content_xhtml;
316     $post_format = 'xhtml';
317     
318     dcPage::message(__('Don\'t forget to validate your XHTML conversion by saving your post.'));
319}
320
321echo '<h2>'.html::escapeHTML($core->blog->name).' &rsaquo; '.'<a href="posts.php">'.__('Entries').'</a> &rsaquo; <span class="page-title">'.$page_title;
322
323     if ($post_id) {
324          echo ' &ldquo;'.$post_title.'&rdquo;';
325     }
326echo '</span></h2>';
327
328if ($post_id && $post->post_status == 1) {
329     echo '<p><a href="'.$post->getURL().'" onclick="window.open(this.href);return false;" title="'.$post_title.' ('.__('new window').')'.'">'.__('Go to this entry on the site').' <img src="images/outgoing-blue.png" alt="" /></a></p>';
330}
331if ($post_id)
332{
333     echo '<p>';
334     if ($prev_link) { echo $prev_link; }
335     if ($next_link && $prev_link) { echo ' - '; }
336     if ($next_link) { echo $next_link; }
337     
338     # --BEHAVIOR-- adminPostNavLinks
339     $core->callBehavior('adminPostNavLinks',isset($post) ? $post : null);
340     
341     echo '</p>';
342}
343
344# Exit if we cannot view page
345if (!$can_view_page) {
346     dcPage::helpBlock('core_post');
347     dcPage::close();
348     exit;
349}
350
351/* Post form if we can edit post
352-------------------------------------------------------- */
353if ($can_edit_post)
354{
355     echo '<div class="multi-part" title="'.__('Edit entry').'" id="edit-entry">';
356     echo '<form action="post.php" method="post" id="entry-form">';
357     echo '<div id="entry-wrapper">';
358     echo '<div id="entry-content"><div class="constrained">';
359     
360     echo
361     '<p class="col"><label class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').
362     form::field('post_title',20,255,html::escapeHTML($post_title),'maximal').
363     '</label></p>'.
364     
365     '<p class="area" id="excerpt-area"><label for="post_excerpt">'.__('Excerpt:').'</label> '.
366     form::textarea('post_excerpt',50,5,html::escapeHTML($post_excerpt)).
367     '</p>'.
368     
369     '<p class="area"><label class="required" '.
370     'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '.
371     form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content)).
372     '</p>'.
373     
374     '<p class="area" id="notes-area"><label for="post_notes">'.__('Notes:').'</label>'.
375     form::textarea('post_notes',50,5,html::escapeHTML($post_notes)).
376     '</p>';
377     
378     # --BEHAVIOR-- adminPostForm
379     $core->callBehavior('adminPostForm',isset($post) ? $post : null);
380     
381     echo
382     '<p>'.
383     ($post_id ? form::hidden('id',$post_id) : '').
384     '<input type="submit" value="'.__('Save').' (s)" '.
385     'accesskey="s" name="save" /> ';
386     if ($post_id) {
387          $preview_url =
388          $core->blog->url.$core->url->getURLFor('preview',$core->auth->userID().'/'.
389          http::browserUID(DC_MASTER_KEY.$core->auth->userID().$core->auth->getInfo('user_pwd')).
390          '/'.$post->post_url);
391          echo '<a id="post-preview" href="'.$preview_url.'" class="button">'.__('Preview').'</a> ';
392     }
393     echo
394     ($can_delete ? '<input type="submit" class="delete" value="'.__('Delete').'" name="delete" />' : '').
395     $core->formNonce().
396     '</p>';
397     
398     echo '</div></div>';          // End #entry-content
399     echo '</div>';      // End #entry-wrapper
400
401     echo '<div id="entry-sidebar">';
402     
403     echo
404     '<p><label for="cat_id">'.__('Category:').
405     form::combo('cat_id',$categories_combo,$cat_id,'maximal').
406     '</label></p>'.
407     
408     '<p><label for="post_status">'.__('Entry status:').
409     form::combo('post_status',$status_combo,$post_status,'','',!$can_publish).
410     '</label></p>'.
411     
412     '<p><label for="post_dt">'.__('Published on:').
413     form::field('post_dt',16,16,$post_dt).
414     '</label></p>'.
415     
416     '<p><label for="post_format">'.__('Text formating:').
417     form::combo('post_format',$formaters_combo,$post_format).
418     '</label>'.
419     '</p>'.
420     '<p>'.($post_id && $post_format != 'xhtml' ? '<a id="convert-xhtml" class="button" href="post.php?id='.$post_id.'&amp;xconv=1">'.__('Convert to XHTML').'</a>' : '').'</p>'.
421     
422     '<p><label for="post_open_comment" class="classic">'.form::checkbox('post_open_comment',1,$post_open_comment).' '.
423     __('Accept comments').'</label></p>'.
424     ($core->blog->settings->system->allow_comments ? 
425          (isContributionAllowed($post_id,strtotime($post_dt),true) ? 
426               '' :
427               '<p class="form-note warn">'.__('Warning: Comments are not more accepted for this entry.').'</p>') : 
428          '<p class="form-note warn">'.__('Warning: Comments are not accepted on this blog.').'</p>').
429
430     '<p><label for="post_open_tb" class="classic">'.form::checkbox('post_open_tb',1,$post_open_tb).' '.
431     __('Accept trackbacks').'</label></p>'.
432     ($core->blog->settings->system->allow_trackbacks ? 
433          (isContributionAllowed($post_id,strtotime($post_dt),false) ? 
434               '' :
435               '<p class="form-note warn">'.__('Warning: Trackbacks are not more accepted for this entry.').'</p>') : 
436          '<p class="form-note warn">'.__('Warning: Trackbacks are not accepted on this blog.').'</p>').
437
438     '<p><label for="post_selected" class="classic">'.form::checkbox('post_selected',1,$post_selected).' '.
439     __('Selected entry').'</label></p>'.
440     
441     '<p><label for="post_lang">'.__('Entry lang:').
442     form::combo('post_lang',$lang_combo,$post_lang).
443     '</label></p>'.
444     
445     '<p><label for="post_password">'.__('Entry password:').
446     form::field('post_password',10,32,html::escapeHTML($post_password),'maximal').
447     '</label></p>'.
448     
449     '<div class="lockable">'.
450     '<p><label for="post_url">'.__('Basename:').
451     form::field('post_url',10,255,html::escapeHTML($post_url),'maximal').
452     '</label></p>'.
453     '<p class="form-note warn">'.
454     __('Warning: If you set the URL manually, it may conflict with another entry.').
455     '</p>'.
456     '</div>';
457     
458     # --BEHAVIOR-- adminPostFormSidebar
459     $core->callBehavior('adminPostFormSidebar',isset($post) ? $post : null);
460     
461     echo '</div>';      // End #entry-sidebar
462
463     echo '</form>';
464     
465     # --BEHAVIOR-- adminPostForm
466     $core->callBehavior('adminPostAfterForm',isset($post) ? $post : null);
467     
468     echo '</div>';
469     
470     if ($post_id && $post->post_status == 1) {
471          echo '<p><a href="trackbacks.php?id='.$post_id.'" class="multi-part">'.
472          __('Ping blogs').'</a></p>';
473     }
474     
475}
476
477
478/* Comments and trackbacks
479-------------------------------------------------------- */
480if ($post_id)
481{
482     $params = array('post_id' => $post_id, 'order' => 'comment_dt ASC');
483     
484     $comments = $core->blog->getComments(array_merge($params,array('comment_trackback'=>0)));
485     $trackbacks = $core->blog->getComments(array_merge($params,array('comment_trackback'=>1)));
486     
487     # Actions combo box
488     $combo_action = array();
489     if ($can_edit_post && $core->auth->check('publish,contentadmin',$core->blog->id))
490     {
491          $combo_action[__('publish')] = 'publish';
492          $combo_action[__('unpublish')] = 'unpublish';
493          $combo_action[__('mark as pending')] = 'pending';
494          $combo_action[__('mark as junk')] = 'junk';
495     }
496     
497     if ($can_edit_post && $core->auth->check('delete,contentadmin',$core->blog->id))
498     {
499          $combo_action[__('Delete')] = 'delete';
500     }
501     
502     # --BEHAVIOR-- adminCommentsActionsCombo
503     $core->callBehavior('adminCommentsActionsCombo',array(&$combo_action));
504     
505     $has_action = !empty($combo_action) && (!$trackbacks->isEmpty() || !$comments->isEmpty());
506     
507     echo
508     '<div id="comments" class="multi-part" title="'.__('Comments').'">';
509     
510     if ($has_action) {
511          echo '<form action="comments_actions.php" id="form-comments" method="post">';
512     }
513     
514     echo '<h3>'.__('Trackbacks').'</h3>';
515     
516     if (!$trackbacks->isEmpty()) {
517          showComments($trackbacks,$has_action,true);
518     } else {
519          echo '<p>'.__('No trackback').'</p>';
520     }
521     
522     echo '<h3>'.__('Comments').'</h3>';
523     if (!$comments->isEmpty()) {
524          showComments($comments,$has_action);
525     } else {
526          echo '<p>'.__('No comment').'</p>';
527     }
528     
529     if ($has_action) {
530          echo
531          '<div class="two-cols">'.
532          '<p class="col checkboxes-helpers"></p>'.
533         
534          '<p class="col right"><label for="action" class="classic">'.__('Selected comments action:').'</label> '.
535          form::combo('action',$combo_action).
536          form::hidden('redir','post.php?id='.$post_id.'&amp;co=1').
537          $core->formNonce().
538          '<input type="submit" value="'.__('ok').'" /></p>'.
539          '</div>'.
540          '</form>';
541     }
542     
543     echo '</div>';
544}
545
546/* Add a comment
547-------------------------------------------------------- */
548if ($post_id)
549{
550     echo
551     '<div class="multi-part" id="add-comment" title="'.__('Add a comment').'">'.
552     '<h3>'.__('Add a comment').'</h3>'.
553     
554     '<form action="comment.php" method="post" id="comment-form">'.
555     '<div class="constrained">'.
556     '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:').
557     form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn'))).
558     '</label></p>'.
559     
560     '<p><label for="comment_email">'.__('Email:').
561     form::field('comment_email',30,255,html::escapeHTML($core->auth->getInfo('user_email'))).
562     '</label></p>'.
563     
564     '<p><label for="comment_site">'.__('Web site:').
565     form::field('comment_site',30,255,html::escapeHTML($core->auth->getInfo('user_url'))).
566     '</label></p>'.
567     
568     '<p class="area"><label for="comment_content" class="required"><abbr title="'.__('Required field').'">*</abbr> '.
569     __('Comment:').'</label> '.
570     form::textarea('comment_content',50,8,html::escapeHTML('')).
571     '</p>'.
572     
573     '<p>'.form::hidden('post_id',$post_id).
574     $core->formNonce().
575     '<input type="submit" name="add" value="'.__('Save').'" /></p>'.
576     '</div>'.
577     '</form>'.
578     '</div>';
579}
580
581# Controls comments or trakbacks capabilities
582function isContributionAllowed($id,$dt,$com=true)
583{
584     global $core;
585
586     if (!$id) {
587          return true;
588     }
589     if ($com) {
590          if (($core->blog->settings->system->comments_ttl == 0) || 
591               (time() - $core->blog->settings->system->comments_ttl*86400 < $dt)) {
592               return true;
593          }
594     } else {
595          if (($core->blog->settings->system->trackbacks_ttl == 0) || 
596               (time() - $core->blog->settings->system->trackbacks_ttl*86400 < $dt)) {
597               return true;
598          }
599     }
600     return false;
601}
602
603# Show comments or trackbacks
604function showComments($rs,$has_action,$tb=false)
605{
606     echo
607     '<table class="comments-list"><tr>'.
608     '<th colspan="2">'.__('Author').'</th>'.
609     '<th>'.__('Date').'</th>'.
610     '<th class="nowrap">'.__('IP address').'</th>'.
611     '<th>'.__('Status').'</th>'.
612     '<th>&nbsp;</th>'.
613     '</tr>';
614     
615     while($rs->fetch())
616     {
617          $comment_url = 'comment.php?id='.$rs->comment_id;
618         
619          $img = '<img alt="%1$s" title="%1$s" src="images/%2$s" />';
620          switch ($rs->comment_status) {
621               case 1:
622                    $img_status = sprintf($img,__('published'),'check-on.png');
623                    break;
624               case 0:
625                    $img_status = sprintf($img,__('unpublished'),'check-off.png');
626                    break;
627               case -1:
628                    $img_status = sprintf($img,__('pending'),'check-wrn.png');
629                    break;
630               case -2:
631                    $img_status = sprintf($img,__('junk'),'junk.png');
632                    break;
633          }
634         
635          echo
636          '<tr class="line'.($rs->comment_status != 1 ? ' offline' : '').'"'.
637          ' id="c'.$rs->comment_id.'">'.
638         
639          '<td class="nowrap">'.
640          ($has_action ? form::checkbox(array('comments[]'),$rs->comment_id,'','','',0,'title="'.($tb ? __('select this trackback') : __('select this comment')).'"') : '').'</td>'.
641          '<td class="maximal">'.html::escapeHTML($rs->comment_author).'</td>'.
642          '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$rs->comment_dt).'</td>'.
643          '<td class="nowrap"><a href="comments.php?ip='.$rs->comment_ip.'">'.$rs->comment_ip.'</a></td>'.
644          '<td class="nowrap status">'.$img_status.'</td>'.
645          '<td class="nowrap status"><a href="'.$comment_url.'">'.
646          '<img src="images/edit-mini.png" alt="" title="'.__('Edit this comment').'" /></a></td>'.
647         
648          '</tr>';
649     }
650     
651     echo '</table>';
652}
653
654dcPage::helpBlock('core_post','core_wiki');
655dcPage::close();
656?>
Note: See TracBrowser for help on using the repository browser.

Sites map