root/ip/trunk/includes/class_mcp.php
| 157 | 167 | ||
|---|---|---|---|
262 | { | 262 | { |
263 | global $db, $cache, $lang, $is_auth; | 263 | global $db, $cache, $lang, $is_auth; |
264 | 264 | ||
265 | if($status == 'sticky' && !$is_auth['auth_sticky']) | 265 | if(($status == 'sticky') && !$is_auth['auth_sticky']) |
266 | { | 266 | { |
267 | $message = sprintf($lang['Sorry_auth_sticky'], $is_auth['auth_sticky_type']); | 267 | $message = sprintf($lang['Sorry_auth_sticky'], $is_auth['auth_sticky_type']); |
268 | message_die(GENERAL_MESSAGE, $message); | 268 | message_die(GENERAL_MESSAGE, $message); |
269 | } | 269 | } |
270 | if($status == 'announce' && !$is_auth['auth_announce']) | 270 | if(($status == 'announce') && !$is_auth['auth_announce']) |
271 | { | 271 | { |
272 | $message = sprintf($lang['Sorry_auth_announce'], $is_auth['auth_announce_type']); | 272 | $message = sprintf($lang['Sorry_auth_announce'], $is_auth['auth_announce_type']); |
273 | message_die(GENERAL_MESSAGE, $message); | 273 | message_die(GENERAL_MESSAGE, $message); |
274 | } | 274 | } |
275 | if($status == 'super_announce' && !$is_auth['auth_globalannounce']) | 275 | if(($status == 'super_announce') && !$is_auth['auth_globalannounce']) |
276 | { | 276 | { |
277 | $message = sprintf($lang['Sorry_auth_announce'], $is_auth['auth_announce_type']); | 277 | $message = sprintf($lang['Sorry_auth_announce'], $is_auth['auth_announce_type']); |
278 | message_die(GENERAL_MESSAGE, $message); | 278 | message_die(GENERAL_MESSAGE, $message); |
279 | } | 279 | } |
280 | if(empty($_POST['topic_id_list']) && empty($topic_id)) | 280 | if(empty($_POST['topic_id_list']) && empty($topics)) |
281 | { | 281 | { |
282 | message_die(GENERAL_MESSAGE, $lang['None_selected']); | 282 | message_die(GENERAL_MESSAGE, $lang['None_selected']); |
283 | } | 283 | } |
Download diff