Changeset 702 for trunk/forum/includes/acp/acp_ban.php
- Timestamp:
- Mar 31, 2010, 6:32:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/includes/acp/acp_ban.php
r400 r702 3 3 * 4 4 * @package acp 5 * @version $Id : acp_ban.php 8479 2008-03-29 00:22:48Z naderman$5 * @version $Id$ 6 6 * @copyright (c) 2005 phpBB Group 7 7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License … … 157 157 WHERE (ban_end >= ' . time() . " 158 158 OR ban_end = 0) 159 AND ban_ip <> ''"; 159 AND ban_ip <> '' 160 ORDER BY ban_ip"; 160 161 break; 161 162 … … 169 170 WHERE (ban_end >= ' . time() . " 170 171 OR ban_end = 0) 171 AND ban_email <> ''"; 172 AND ban_email <> '' 173 ORDER BY ban_email"; 172 174 break; 173 175 } … … 182 184 183 185 $time_length = ($row['ban_end']) ? ($row['ban_end'] - $row['ban_start']) / 60 : 0; 184 $ban_length[$row['ban_id']] = (isset($ban_end_text[$time_length])) ? $ban_end_text[$time_length] : $user->lang['UNTIL'] . ' -> ' . $user->format_date($row['ban_end']); 186 187 if ($time_length == 0) 188 { 189 // Banned permanently 190 $ban_length[$row['ban_id']] = $user->lang['PERMANENT']; 191 } 192 else if (isset($ban_end_text[$time_length])) 193 { 194 // Banned for a given duration 195 $ban_length[$row['ban_id']] = sprintf($user->lang['BANNED_UNTIL_DURATION'], $ban_end_text[$time_length], $user->format_date($row['ban_end'], false, true)); 196 } 197 else 198 { 199 // Banned until given date 200 $ban_length[$row['ban_id']] = sprintf($user->lang['BANNED_UNTIL_DATE'], $user->format_date($row['ban_end'], false, true)); 201 } 185 202 186 203 $ban_reasons[$row['ban_id']] = $row['ban_reason'];
Note:
See TracChangeset
for help on using the changeset viewer.