changeset 3 | c0c445d4a13e |
parent 2 | a8a21e1c7afa |
2:a8a21e1c7afa | 3:c0c445d4a13e |
---|---|
62 |
62 |
63 ?> |
63 ?> |
64 <div class="blockform"> |
64 <div class="blockform"> |
65 <h2><span>New reports</span></h2> |
65 <h2><span>New reports</span></h2> |
66 <div class="box"> |
66 <div class="box"> |
67 <form method="post" action="admin_reports.php?action=zap"> |
67 <form method="post" action="<?php echo makeUrlNS('Special', 'Forum/Admin_reports', 'action=zap', true); ?>"> |
68 <?php |
68 <?php |
69 |
69 |
70 $result = $pun_db->query('SELECT r.id, r.post_id, r.topic_id, r.forum_id, r.reported_by, r.created, r.message, t.subject, f.forum_name, u.username AS reporter FROM '.$pun_db->prefix.'reports AS r LEFT JOIN '.$pun_db->prefix.'topics AS t ON r.topic_id=t.id LEFT JOIN '.$pun_db->prefix.'forums AS f ON r.forum_id=f.id LEFT JOIN '.$pun_db->prefix.'users AS u ON r.reported_by=u.id WHERE r.zapped IS NULL ORDER BY created DESC') or error('Unable to fetch report list', __FILE__, __LINE__, $pun_db->error()); |
70 $result = $pun_db->query('SELECT r.id, r.post_id, r.topic_id, r.forum_id, r.reported_by, r.created, r.message, t.subject, f.forum_name, u.username AS reporter FROM '.$pun_db->prefix.'reports AS r LEFT JOIN '.$pun_db->prefix.'topics AS t ON r.topic_id=t.id LEFT JOIN '.$pun_db->prefix.'forums AS f ON r.forum_id=f.id LEFT JOIN '.table_prefix.'users AS u ON r.reported_by=u.user_id WHERE r.zapped IS NULL ORDER BY created DESC') or error('Unable to fetch report list', __FILE__, __LINE__, $pun_db->error()); |
71 |
71 |
72 if ($pun_db->num_rows($result)) |
72 if ($pun_db->num_rows($result)) |
73 { |
73 { |
74 while ($cur_report = $pun_db->fetch_assoc($result)) |
74 while ($cur_report = $pun_db->fetch_assoc($result)) |
75 { |
75 { |
113 <h2><span>10 last zapped reports</span></h2> |
113 <h2><span>10 last zapped reports</span></h2> |
114 <div class="box"> |
114 <div class="box"> |
115 <div class="fakeform"> |
115 <div class="fakeform"> |
116 <?php |
116 <?php |
117 |
117 |
118 $result = $pun_db->query('SELECT r.id, r.post_id, r.topic_id, r.forum_id, r.reported_by, r.message, r.zapped, r.zapped_by AS zapped_by_id, t.subject, f.forum_name, u.username AS reporter, u2.username AS zapped_by FROM '.$pun_db->prefix.'reports AS r LEFT JOIN '.$pun_db->prefix.'topics AS t ON r.topic_id=t.id LEFT JOIN '.$pun_db->prefix.'forums AS f ON r.forum_id=f.id LEFT JOIN '.$pun_db->prefix.'users AS u ON r.reported_by=u.id LEFT JOIN '.$pun_db->prefix.'users AS u2 ON r.zapped_by=u2.id WHERE r.zapped IS NOT NULL ORDER BY zapped DESC LIMIT 10') or error('Unable to fetch report list', __FILE__, __LINE__, $pun_db->error()); |
118 $result = $pun_db->query('SELECT r.id, r.post_id, r.topic_id, r.forum_id, r.reported_by, r.message, r.zapped, r.zapped_by AS zapped_by_id, t.subject, f.forum_name, u.username AS reporter, u2.username AS zapped_by FROM '.$pun_db->prefix.'reports AS r LEFT JOIN '.$pun_db->prefix.'topics AS t ON r.topic_id=t.id LEFT JOIN '.$pun_db->prefix.'forums AS f ON r.forum_id=f.id LEFT JOIN '.table_prefix.'users AS u ON r.reported_by=u.user_id LEFT JOIN '.table_prefix.'users AS u2 ON r.zapped_by=u2.user_id WHERE r.zapped IS NOT NULL ORDER BY zapped DESC LIMIT 10') or error('Unable to fetch report list', __FILE__, __LINE__, $pun_db->error()); |
119 |
119 |
120 if ($pun_db->num_rows($result)) |
120 if ($pun_db->num_rows($result)) |
121 { |
121 { |
122 while ($cur_report = $pun_db->fetch_assoc($result)) |
122 while ($cur_report = $pun_db->fetch_assoc($result)) |
123 { |
123 { |