@@ -54,15 +54,13 @@ |
||
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | $DoneMessage .= $lang['adm_bn_plnt']; |
| 57 | - } |
|
| 58 | - else |
|
| 57 | + } else |
|
| 59 | 58 | { |
| 60 | 59 | $DoneMessage = sprintf($lang['adm_bn_errr'], $name_output); |
| 61 | 60 | } |
| 62 | 61 | |
| 63 | 62 | AdminMessage($DoneMessage, $lang['adm_ban_title']); |
| 64 | -} |
|
| 65 | -elseif($mode == 'unbanit' && $action) |
|
| 63 | +} elseif($mode == 'unbanit' && $action) |
|
| 66 | 64 | { |
| 67 | 65 | sys_admin_player_ban_unset($user, $player_banned_row, ($reason = sys_get_param_str('why')) ? $reason : $lang['sys_unbanned']); |
| 68 | 66 | |
@@ -22,12 +22,10 @@ discard block |
||
| 22 | 22 | if($delete = sys_get_param_id('delete')) |
| 23 | 23 | { |
| 24 | 24 | doquery("DELETE FROM `{{logs}}` WHERE `log_id` = {$delete} LIMIT 1;"); |
| 25 | -} |
|
| 26 | -elseif(sys_get_param_str('delete_update_info')) |
|
| 25 | +} elseif(sys_get_param_str('delete_update_info')) |
|
| 27 | 26 | { |
| 28 | 27 | doquery("DELETE FROM `{{logs}}` WHERE `log_code` in (103, 180, 191);"); |
| 29 | -} |
|
| 30 | -elseif(sys_get_param_str('deleteall') == 'yes') |
|
| 28 | +} elseif(sys_get_param_str('deleteall') == 'yes') |
|
| 31 | 29 | { |
| 32 | 30 | // doquery("TRUNCATE TABLE `{{logs}}`"); |
| 33 | 31 | } |
@@ -51,8 +49,7 @@ discard block |
||
| 51 | 49 | } |
| 52 | 50 | } |
| 53 | 51 | $template->assign_vars($errorInfo); |
| 54 | -} |
|
| 55 | -else |
|
| 52 | +} else |
|
| 56 | 53 | { |
| 57 | 54 | $template = gettemplate('admin/adm_log_main', true); |
| 58 | 55 | |
@@ -72,8 +72,7 @@ |
||
| 72 | 72 | if(sys_get_param('page_prev') && $int_page_current > 1) |
| 73 | 73 | { |
| 74 | 74 | $int_page_current--; |
| 75 | -} |
|
| 76 | -elseif(sys_get_param('page_next') && $int_page_current < $page_max) |
|
| 75 | +} elseif(sys_get_param('page_next') && $int_page_current < $page_max) |
|
| 77 | 76 | { |
| 78 | 77 | $int_page_current++; |
| 79 | 78 | } |
@@ -39,8 +39,7 @@ |
||
| 39 | 39 | </script>'; |
| 40 | 40 | |
| 41 | 41 | AdminMessage("{$script}<img src=\"design/images/progressbar.gif\"><br>{$lang['sys_wait']}", $lang['adm_stat_title'], '', 120); |
| 42 | -} |
|
| 43 | -else |
|
| 42 | +} else |
|
| 44 | 43 | { |
| 45 | 44 | AdminMessage($lang['adm_stat_already_started'], $lang['adm_stat_title'], 'admin/overview.php', 5); |
| 46 | 45 | } |
@@ -29,8 +29,7 @@ |
||
| 29 | 29 | if ($delete) |
| 30 | 30 | { |
| 31 | 31 | doquery("DELETE FROM {{chat}} WHERE `messageid`={$delete};"); |
| 32 | -} |
|
| 33 | -elseif ($deleteall == 'yes') |
|
| 32 | +} elseif ($deleteall == 'yes') |
|
| 34 | 33 | { |
| 35 | 34 | doquery("DELETE FROM {{chat}};"); |
| 36 | 35 | } |
@@ -48,13 +48,11 @@ |
||
| 48 | 48 | header("Location: artifacts.php#{$unit_id}"); |
| 49 | 49 | ob_end_flush(); |
| 50 | 50 | die(); |
| 51 | - } |
|
| 52 | - else |
|
| 51 | + } else |
|
| 53 | 52 | { |
| 54 | 53 | $Message = $lang['off_maxed_out']; |
| 55 | 54 | } |
| 56 | - } |
|
| 57 | - else |
|
| 55 | + } else |
|
| 58 | 56 | { |
| 59 | 57 | $Message = $lang['sys_no_points']; |
| 60 | 58 | } |
@@ -127,8 +127,7 @@ |
||
| 127 | 127 | `fleet_owner` = '{$user['id']}', `fleet_start_galaxy` = '{$planetrow['galaxy']}', `fleet_start_system` = '{$planetrow['system']}', `fleet_start_planet` = '{$planetrow['planet']}', |
| 128 | 128 | `fleet_end_time` = '{$arrival}', `fleet_amount` = '{$fleet_ship_count}', `primaer` = '{$target_structure}';" |
| 129 | 129 | ); |
| 130 | -} |
|
| 131 | -else |
|
| 130 | +} else |
|
| 132 | 131 | { |
| 133 | 132 | $travel_data = flt_travel_data($user, $planetrow, $target_coord, $fleet_array, 10); |
| 134 | 133 | |
@@ -26,7 +26,9 @@ |
||
| 26 | 26 | * DO NOT CHANGE |
| 27 | 27 | */ |
| 28 | 28 | |
| 29 | -if (!defined('INSIDE')) die(); |
|
| 29 | +if (!defined('INSIDE')) { |
|
| 30 | + die(); |
|
| 31 | +} |
|
| 30 | 32 | |
| 31 | 33 | |
| 32 | 34 | $a_lang_array = (array( |
@@ -26,7 +26,9 @@ |
||
| 26 | 26 | * DO NOT CHANGE |
| 27 | 27 | */ |
| 28 | 28 | |
| 29 | -if (!defined('INSIDE')) die(); |
|
| 29 | +if (!defined('INSIDE')) { |
|
| 30 | + die(); |
|
| 31 | +} |
|
| 30 | 32 | |
| 31 | 33 | $a_lang_array = (array( |
| 32 | 34 | 'tech_storage_max' => 'Max. storage capacity', |