Zeile 216 | Zeile 216 |
---|
$forum_name = $forum_cache[$thread['fid']]['name']; $threaddate = my_date('relative', $thread['dateline']);
|
$forum_name = $forum_cache[$thread['fid']]['name']; $threaddate = my_date('relative', $thread['dateline']);
|
if($thread['username'] == "")
| if(!$thread['uid'])
|
{ if($thread['threadusername'] != "") {
| { if($thread['threadusername'] != "") {
|
Zeile 224 | Zeile 224 |
---|
} else {
|
} else {
|
$profile_link = $lang->guest;
| $profile_link = htmlspecialchars_uni($lang->guest);
|
} } else { $profile_link = build_profile_link(htmlspecialchars_uni($thread['username']), $thread['uid'], "_blank"); }
|
} } else { $profile_link = build_profile_link(htmlspecialchars_uni($thread['username']), $thread['uid'], "_blank"); }
|
|
|
$thread['postmessage'] = nl2br(htmlspecialchars_uni($thread['postmessage']));
$table->construct_cell("<a href=\"../{$thread['threadlink']}\" target=\"_blank\">{$thread['subject']}</a>"); $table->construct_cell($profile_link, array("class" => "align_center")); $table->construct_cell($threaddate, array("class" => "align_center"));
|
$thread['postmessage'] = nl2br(htmlspecialchars_uni($thread['postmessage']));
$table->construct_cell("<a href=\"../{$thread['threadlink']}\" target=\"_blank\">{$thread['subject']}</a>"); $table->construct_cell($profile_link, array("class" => "align_center")); $table->construct_cell($threaddate, array("class" => "align_center"));
|
$table->construct_row();
| $table->construct_row();
|
$controls = "<div class=\"modqueue_controls\">\n"; $controls .= $form->generate_radio_button("threads[{$thread['tid']}]", "ignore", $lang->ignore, array('class' => 'radio_ignore', 'checked' => true))." "; $controls .= $form->generate_radio_button("threads[{$thread['tid']}]", "delete", $lang->delete, array('class' => 'radio_delete', 'checked' => false))." ";
| $controls = "<div class=\"modqueue_controls\">\n"; $controls .= $form->generate_radio_button("threads[{$thread['tid']}]", "ignore", $lang->ignore, array('class' => 'radio_ignore', 'checked' => true))." "; $controls .= $form->generate_radio_button("threads[{$thread['tid']}]", "delete", $lang->delete, array('class' => 'radio_delete', 'checked' => false))." ";
|
Zeile 252 | Zeile 252 |
---|
}
$table->output($lang->threads_awaiting_moderation);
|
}
$table->output($lang->threads_awaiting_moderation);
|
echo $all_options; echo $pagination;
$buttons[] = $form->generate_submit_button($lang->perform_action); $form->output_submit_wrapper($buttons); $form->end();
echo '<script type="text/javascript">
| echo $all_options; echo $pagination;
$buttons[] = $form->generate_submit_button($lang->perform_action); $form->output_submit_wrapper($buttons); $form->end();
echo '<script type="text/javascript">
|
$(".mass_ignore").on("click", function () { $("input.radio_ignore").each(function(e) {
|
$(".mass_ignore").on("click", function () { $("input.radio_ignore").each(function(e) {
|
$(this).prop("checked", true); }); return false;
| $(this).prop("checked", true); }); return false;
|
}); $(".mass_delete").on("click", function () { $("input.radio_delete").each(function(e) {
|
}); $(".mass_delete").on("click", function () { $("input.radio_delete").each(function(e) {
|
$(this).prop("checked", true);
| $(this).prop("checked", true);
|
}); return false; });
| }); return false; });
|
Zeile 294 | Zeile 294 |
---|
$query = $db->query(" SELECT COUNT(pid) AS unapprovedposts FROM ".TABLE_PREFIX."posts p
|
$query = $db->query(" SELECT COUNT(pid) AS unapprovedposts FROM ".TABLE_PREFIX."posts p
|
LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid)
| LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid)
|
WHERE p.visible='0' AND t.firstpost != p.pid "); $unapproved_posts = $db->fetch_field($query, "unapprovedposts");
| WHERE p.visible='0' AND t.firstpost != p.pid "); $unapproved_posts = $db->fetch_field($query, "unapprovedposts");
|
Zeile 326 | Zeile 326 |
---|
$page->add_breadcrumb_item($lang->posts_awaiting_moderation); $page->output_header($lang->posts_awaiting_moderation);
|
$page->add_breadcrumb_item($lang->posts_awaiting_moderation); $page->output_header($lang->posts_awaiting_moderation);
|
$page->output_nav_tabs($sub_tabs, "posts");
$form = new Form("index.php?module=forum-moderation_queue", "post");
$table = new Table;
| $page->output_nav_tabs($sub_tabs, "posts");
$form = new Form("index.php?module=forum-moderation_queue", "post");
$table = new Table;
|
$table->construct_header($lang->subject); $table->construct_header($lang->author, array("class" => "align_center", "width" => "20%")); $table->construct_header($lang->posted, array("class" => "align_center", "width" => "20%"));
| $table->construct_header($lang->subject); $table->construct_header($lang->author, array("class" => "align_center", "width" => "20%")); $table->construct_header($lang->posted, array("class" => "align_center", "width" => "20%"));
|
Zeile 361 | Zeile 361 |
---|
$forum_name = $forum_cache[$post['fid']]['name']; $postdate = my_date('relative', $post['dateline']);
|
$forum_name = $forum_cache[$post['fid']]['name']; $postdate = my_date('relative', $post['dateline']);
|
if($post['username'] == "")
| if(!$post['uid'])
|
{ if($post['postusername'] != "") { $profile_link = $post['postusername'];
|
{ if($post['postusername'] != "") { $profile_link = $post['postusername'];
|
}
| }
|
else { $profile_link = $lang->guest;
| else { $profile_link = $lang->guest;
|
Zeile 488 | Zeile 488 |
---|
$table->construct_header($lang->controls, array("class" => "align_center", "colspan" => 3));
$query = $db->query("
|
$table->construct_header($lang->controls, array("class" => "align_center", "colspan" => 3));
$query = $db->query("
|
SELECT a.*, p.subject AS postsubject, p.dateline, p.uid, u.username, t.tid, t.subject AS threadsubject
| SELECT a.*, p.subject AS postsubject, p.dateline, p.username AS postusername, p.uid, u.username, t.tid, t.subject AS threadsubject
|
FROM ".TABLE_PREFIX."attachments a LEFT JOIN ".TABLE_PREFIX."posts p ON (p.pid=a.pid) LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid)
| FROM ".TABLE_PREFIX."attachments a LEFT JOIN ".TABLE_PREFIX."posts p ON (p.pid=a.pid) LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid)
|
Zeile 510 | Zeile 510 |
---|
$link = get_post_link($attachment['pid'], $attachment['tid']) . "#pid{$attachment['pid']}"; $thread_link = get_thread_link($attachment['tid']);
|
$link = get_post_link($attachment['pid'], $attachment['tid']) . "#pid{$attachment['pid']}"; $thread_link = get_thread_link($attachment['tid']);
|
$profile_link = build_profile_link(htmlspecialchars_uni($attachment['username']), $attachment['uid'], "_blank");
| if(!$attachment['uid']) { if($attachment['postusername'] != "") { $profile_link = $attachment['postusername']; } else { $profile_link = htmlspecialchars_uni($lang->guest); } } else { $profile_link = build_profile_link(htmlspecialchars_uni($attachment['username']), $attachment['uid'], "_blank"); }
|
$table->construct_cell("<a href=\"../attachment.php?aid={$attachment['aid']}\" target=\"_blank\">{$attachment['filename']}</a> ({$attachment['filesize']})<br /><small class=\"modqueue_meta\">{$lang->post} <a href=\"{$link}\" target=\"_blank\">{$attachment['postsubject']}</a></small>"); $table->construct_cell($profile_link, array("class" => "align_center"));
| $table->construct_cell("<a href=\"../attachment.php?aid={$attachment['aid']}\" target=\"_blank\">{$attachment['filename']}</a> ({$attachment['filesize']})<br /><small class=\"modqueue_meta\">{$lang->post} <a href=\"{$link}\" target=\"_blank\">{$attachment['postsubject']}</a></small>"); $table->construct_cell($profile_link, array("class" => "align_center"));
|