Changeset 796:43a9cace0f39 for admin/comments.php
- Timestamp:
- 02/08/12 23:10:39 (13 years ago)
- Branch:
- 2.4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/comments.php
r795 r796 45 45 /* Get comments 46 46 -------------------------------------------------------- */ 47 $author = isset($_GET['author']) ? html::escapeHTML($_GET['author']): '';48 $status = isset($_GET['status']) ? html::escapeHTML($_GET['status']): '';49 $type = !empty($_GET['type']) ? html::escapeHTML($_GET['type']): '';50 $sortby = !empty($_GET['sortby']) ? html::escapeHTML($_GET['sortby']): 'comment_dt';51 $order = !empty($_GET['order']) ? html::escapeHTML($_GET['order']): 'desc';52 $ip = !empty($_GET['ip']) ? html::escapeHTML($_GET['ip']): '';47 $author = isset($_GET['author']) ? $_GET['author'] : ''; 48 $status = isset($_GET['status']) ? $_GET['status'] : ''; 49 $type = !empty($_GET['type']) ? $_GET['type'] : ''; 50 $sortby = !empty($_GET['sortby']) ? $_GET['sortby'] : 'comment_dt'; 51 $order = !empty($_GET['order']) ? $_GET['order'] : 'desc'; 52 $ip = !empty($_GET['ip']) ? $_GET['ip'] : ''; 53 53 54 54 $with_spam = $author || $status || $type || $sortby != 'comment_dt' || $order != 'desc' || $ip; … … 73 73 $params['q_author'] = $author; 74 74 $show_filters = true; 75 } else { 76 $author=''; 75 77 } 76 78 … … 79 81 $params['comment_trackback'] = ($type == 'tb'); 80 82 $show_filters = true; 83 } else { 84 $type=''; 81 85 } 82 86 … … 87 91 } elseif (!$with_spam) { 88 92 $params['comment_status_not'] = -2; 93 $status=''; 94 } else { 95 $status=''; 89 96 } 90 97 … … 99 106 if ($order !== '' && in_array($order,$order_combo)) { 100 107 $params['order'] = $sortby.' '.$order; 108 } else { 109 $order = 'desc'; 101 110 } 102 111 … … 104 113 $show_filters = true; 105 114 } 115 } else { 116 $sortby = 'comment_dt'; 117 $order = 'desc'; 106 118 } 107 119
Note: See TracChangeset
for help on using the changeset viewer.