@@ -92,9 +92,9 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | for ($Option = 10; $Option >= 0; $Option--) |
| 94 | 94 | { |
| 95 | - $template->assign_block_vars('option', array( |
|
| 96 | - 'VALUE' => $Option * 10, |
|
| 97 | - )); |
|
| 95 | + $template->assign_block_vars('option', array( |
|
| 96 | + 'VALUE' => $Option * 10, |
|
| 97 | + )); |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | $caps_real = eco_get_planet_caps($user, $planetrow, 3600); |
@@ -163,14 +163,14 @@ discard block |
||
| 163 | 163 | int_calc_storage_bar(RES_DEUTERIUM); |
| 164 | 164 | |
| 165 | 165 | $template->assign_vars(array( |
| 166 | - 'PLANET_NAME' => $planetrow['name'], |
|
| 167 | - 'PLANET_TYPE' => $planetrow['planet_type'], |
|
| 168 | - 'PLANET_DENSITY_INDEX' => $planet_density_index, |
|
| 169 | - 'PLANET_CORE_TEXT' => $lang['uni_planet_density_types'][$planet_density_index], |
|
| 166 | + 'PLANET_NAME' => $planetrow['name'], |
|
| 167 | + 'PLANET_TYPE' => $planetrow['planet_type'], |
|
| 168 | + 'PLANET_DENSITY_INDEX' => $planet_density_index, |
|
| 169 | + 'PLANET_CORE_TEXT' => $lang['uni_planet_density_types'][$planet_density_index], |
|
| 170 | 170 | |
| 171 | - 'PRODUCTION_LEVEL' => floor($caps_real['efficiency'] * 100), |
|
| 171 | + 'PRODUCTION_LEVEL' => floor($caps_real['efficiency'] * 100), |
|
| 172 | 172 | |
| 173 | - 'PAGE_HINT' => $lang['res_hint'], |
|
| 173 | + 'PAGE_HINT' => $lang['res_hint'], |
|
| 174 | 174 | )); |
| 175 | 175 | |
| 176 | 176 | display($template, $lang['res_planet_production']); |
@@ -24,8 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | include('common.' . substr(strrchr(__FILE__, '.'), 1)); |
| 26 | 26 | |
| 27 | -function int_calc_storage_bar($resource_id) |
|
| 28 | -{ |
|
| 27 | +function int_calc_storage_bar($resource_id) { |
|
| 29 | 28 | global $lang, $template, $caps_real, $planetrow, $user; |
| 30 | 29 | |
| 31 | 30 | $totalProduction = $caps_real['total'][$resource_id]; |
@@ -39,8 +39,8 @@ |
||
| 39 | 39 | 0 => $row['visit_time'], // start |
| 40 | 40 | 1 => $row['visit_time'], // end |
| 41 | 41 | ) |
| 42 | - //: false |
|
| 43 | - ; |
|
| 42 | + //: false |
|
| 43 | + ; |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | $session_list = array(); |
@@ -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 | } |
@@ -50,52 +50,52 @@ |
||
| 50 | 50 | stat_tpl_assign($template, $who, 'subject', $subject_list, $sn_group_stat_common); |
| 51 | 51 | |
| 52 | 52 | $stat_types = array( |
| 53 | - STAT_TOTAL => array( |
|
| 54 | - 'type' => 'total', |
|
| 55 | - ), |
|
| 53 | + STAT_TOTAL => array( |
|
| 54 | + 'type' => 'total', |
|
| 55 | + ), |
|
| 56 | 56 | |
| 57 | - STAT_FLEET => array( |
|
| 58 | - 'type' => 'fleet', |
|
| 59 | - ), |
|
| 57 | + STAT_FLEET => array( |
|
| 58 | + 'type' => 'fleet', |
|
| 59 | + ), |
|
| 60 | 60 | |
| 61 | - STAT_TECH => array( |
|
| 62 | - 'type' => 'tech', |
|
| 63 | - ), |
|
| 61 | + STAT_TECH => array( |
|
| 62 | + 'type' => 'tech', |
|
| 63 | + ), |
|
| 64 | 64 | |
| 65 | - STAT_BUILDING => array( |
|
| 66 | - 'type' => 'build', |
|
| 67 | - ), |
|
| 65 | + STAT_BUILDING => array( |
|
| 66 | + 'type' => 'build', |
|
| 67 | + ), |
|
| 68 | 68 | |
| 69 | - STAT_DEFENSE => array( |
|
| 70 | - 'type' => 'defs', |
|
| 71 | - ), |
|
| 69 | + STAT_DEFENSE => array( |
|
| 70 | + 'type' => 'defs', |
|
| 71 | + ), |
|
| 72 | 72 | |
| 73 | - STAT_RESOURCE => array( |
|
| 74 | - 'type' => 'res', |
|
| 75 | - ), |
|
| 73 | + STAT_RESOURCE => array( |
|
| 74 | + 'type' => 'res', |
|
| 75 | + ), |
|
| 76 | 76 | |
| 77 | - STAT_RAID_TOTAL => array( |
|
| 78 | - 'type' => 'raids', |
|
| 79 | - ), |
|
| 77 | + STAT_RAID_TOTAL => array( |
|
| 78 | + 'type' => 'raids', |
|
| 79 | + ), |
|
| 80 | 80 | |
| 81 | - STAT_RAID_WON => array( |
|
| 82 | - 'type' => 'raidswin', |
|
| 83 | - ), |
|
| 81 | + STAT_RAID_WON => array( |
|
| 82 | + 'type' => 'raidswin', |
|
| 83 | + ), |
|
| 84 | 84 | |
| 85 | - STAT_RAID_LOST => array( |
|
| 86 | - 'type' => 'raidsloose', |
|
| 87 | - ), |
|
| 85 | + STAT_RAID_LOST => array( |
|
| 86 | + 'type' => 'raidsloose', |
|
| 87 | + ), |
|
| 88 | 88 | |
| 89 | 89 | STAT_LVL_BUILDING => array( |
| 90 | - 'type' => 'lvl_minier', |
|
| 90 | + 'type' => 'lvl_minier', |
|
| 91 | 91 | ), |
| 92 | 92 | |
| 93 | 93 | STAT_LVL_TECH => array( |
| 94 | - 'type' => 'player_rpg_tech_level', |
|
| 94 | + 'type' => 'player_rpg_tech_level', |
|
| 95 | 95 | ), |
| 96 | 96 | |
| 97 | 97 | STAT_LVL_RAID => array( |
| 98 | - 'type' => 'lvl_raid', |
|
| 98 | + 'type' => 'lvl_raid', |
|
| 99 | 99 | ), |
| 100 | 100 | ); |
| 101 | 101 | stat_tpl_assign($template, $type, 'type', $stat_types, $sn_group_stat_common); |