@@ -18,13 +18,13 @@ discard block |
||
18 | 18 | |
19 | 19 | messageBoxAdminAccessDenied(AUTH_LEVEL_ADMINISTRATOR); |
20 | 20 | |
21 | -$template = gettemplate('admin/adm_payment', true); |
|
21 | +$template = gettemplate('admin/adm_payment', true); |
|
22 | 22 | |
23 | 23 | $payer_list = array( |
24 | 24 | -1 => $lang['adm_pay_filter_all'], |
25 | 25 | ); |
26 | 26 | $query = doquery("SELECT payment_user_id, payment_user_name FROM `{{payment}}` GROUP BY payment_user_id ORDER BY payment_user_name"); |
27 | -while($row = db_fetch($query)) { |
|
27 | +while ($row = db_fetch($query)) { |
|
28 | 28 | $payer_list[$row['payment_user_id']] = '[' . $row['payment_user_id'] . '] ' . $row['payment_user_name']; |
29 | 29 | } |
30 | 30 | tpl_assign_select($template, 'payer', $payer_list); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | '' => $lang['adm_pay_filter_all'], |
34 | 34 | ); |
35 | 35 | $query = doquery("SELECT distinct payment_module_name FROM `{{payment}}` ORDER BY payment_module_name"); |
36 | -while($row = db_fetch($query)) { |
|
36 | +while ($row = db_fetch($query)) { |
|
37 | 37 | $module_list[$row['payment_module_name']] = $row['payment_module_name']; |
38 | 38 | } |
39 | 39 | tpl_assign_select($template, 'module', $module_list); |
@@ -69,9 +69,9 @@ discard block |
||
69 | 69 | |
70 | 70 | |
71 | 71 | //while($row = db_fetch($query)) { |
72 | -foreach($query as $row) { |
|
72 | +foreach ($query as $row) { |
|
73 | 73 | $row2 = array(); |
74 | - foreach($row as $key => $value) { |
|
74 | + foreach ($row as $key => $value) { |
|
75 | 75 | $row2[strtoupper($key)] = $value; |
76 | 76 | } |
77 | 77 | $template->assign_block_vars('payment', $row2); |
@@ -89,8 +89,8 @@ discard block |
||
89 | 89 | $this->secret_word = classSupernova::$sn_secret_word; |
90 | 90 | |
91 | 91 | $snTableNames = $this->db->schema()->getSnTables(); |
92 | - foreach($this->table_check as $table_name) { |
|
93 | - if(empty($snTableNames[$table_name])) { |
|
92 | + foreach ($this->table_check as $table_name) { |
|
93 | + if (empty($snTableNames[$table_name])) { |
|
94 | 94 | die('Если вы видите это сообщение первый раз после обновления релиза - просто перегрузите страницу.<br /> |
95 | 95 | В противном случае - сообщите Администрации сервера об ошибке.<br/> |
96 | 96 | Не хватает таблицы для работы системы авторизации: ' . $table_name); |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | */ |
115 | 115 | // OK v4.6 |
116 | 116 | public function password_change($old_password_unsafe, $new_password_unsafe, $salt_unsafe = null) { |
117 | - if(!$this->password_check($old_password_unsafe)) { |
|
117 | + if (!$this->password_check($old_password_unsafe)) { |
|
118 | 118 | return false; |
119 | 119 | } |
120 | 120 | |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | // OK v4.5 |
136 | 136 | public function assign_from_db_row($row) { |
137 | 137 | $this->reset(); |
138 | - if(empty($row) || !is_array($row)) { |
|
138 | + if (empty($row) || !is_array($row)) { |
|
139 | 139 | return false; |
140 | 140 | } |
141 | 141 | $this->account_id = $row['account_id']; |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | $this->reset(); |
201 | 201 | |
202 | 202 | $email_safe = $this->db->db_escape($email_unsafe); |
203 | - if($email_safe) { |
|
203 | + if ($email_safe) { |
|
204 | 204 | $account_row = $this->db->doquery("SELECT * FROM {{account}} WHERE LOWER(`account_email`) = LOWER('{$email_safe}') FOR UPDATE;", true); |
205 | 205 | |
206 | 206 | return $this->assign_from_db_row($account_row); |
@@ -273,11 +273,11 @@ discard block |
||
273 | 273 | `account_email` = LOWER('{$email_safe}'), |
274 | 274 | `account_language` = '{$language_safe}'" |
275 | 275 | ); |
276 | - if(!$result) { |
|
276 | + if (!$result) { |
|
277 | 277 | throw new Exception(REGISTER_ERROR_ACCOUNT_CREATE, ERR_ERROR); |
278 | 278 | } |
279 | 279 | |
280 | - if(!($account_id = $this->db->db_insert_id())) { |
|
280 | + if (!($account_id = $this->db->db_insert_id())) { |
|
281 | 281 | throw new Exception(REGISTER_ERROR_ACCOUNT_CREATE, ERR_ERROR); |
282 | 282 | } |
283 | 283 | |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | WHERE `account_id` = '{$account_id_safe}'" |
308 | 308 | ) ? true : false; |
309 | 309 | |
310 | - if($result) { |
|
310 | + if ($result) { |
|
311 | 311 | $result = $this->db_get_by_id($this->account_id); |
312 | 312 | } |
313 | 313 | |
@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | public function metamatter_change($change_type, $metamatter, $comment = false, $already_changed = false) { |
397 | 397 | global $debug, $mm_change_legit, $config, $sn_module; |
398 | 398 | |
399 | - if(!$this->is_exists || !($metamatter = round(floatval($metamatter)))) { |
|
399 | + if (!$this->is_exists || !($metamatter = round(floatval($metamatter)))) { |
|
400 | 400 | $debug->error('Ошибка при попытке манипуляции с ММ'); |
401 | 401 | return false; |
402 | 402 | } |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | |
406 | 406 | $mm_change_legit = true; |
407 | 407 | // $sn_data_metamatter_db_name = pname_resource_name(RES_METAMATTER); |
408 | - if($already_changed) { |
|
408 | + if ($already_changed) { |
|
409 | 409 | $metamatter_total_delta = 0; |
410 | 410 | $result = -1; |
411 | 411 | } else { |
@@ -418,7 +418,7 @@ discard block |
||
418 | 418 | ($metamatter_total_delta ? ", `account_immortal` = IF(`account_metamatter_total` + '{$metamatter_total_delta}' >= {$config->player_metamatter_immortal} AND `account_immortal` IS NULL, NOW(), `account_immortal`), `account_metamatter_total` = `account_metamatter_total` + '{$metamatter_total_delta}'" : '') . |
419 | 419 | " WHERE `account_id` = {$account_id_safe}" |
420 | 420 | ); |
421 | - if(!$result) { |
|
421 | + if (!$result) { |
|
422 | 422 | $debug->error("Error adjusting Metamatter for player ID {$this->account_id} (Player Not Found?) with {$metamatter}. Reason: {$comment}", 'Metamatter Change', 402); |
423 | 423 | } |
424 | 424 | $result = classSupernova::$db->db_affected_rows(); |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | $this->awardImmortal($metamatter, $config, $sn_module); |
427 | 427 | } |
428 | 428 | |
429 | - if(empty(core_auth::$user['id'])) { |
|
429 | + if (empty(core_auth::$user['id'])) { |
|
430 | 430 | $user_list = PlayerToAccountTranslate::db_translate_get_users_from_account_list(core_auth::$main_provider->provider_id, $this->account_id); |
431 | 431 | reset($user_list); |
432 | 432 | $user_id_unsafe = key($user_list); |
@@ -435,30 +435,30 @@ discard block |
||
435 | 435 | } |
436 | 436 | $user_id_safe = $this->db->db_escape($user_id_unsafe); |
437 | 437 | |
438 | - if(!$result) { |
|
438 | + if (!$result) { |
|
439 | 439 | $debug->error("Error adjusting Metamatter for player ID {$this->account_id} (Player Not Found?) with {$metamatter}. Reason: {$comment}", 'Metamatter Change', 402); |
440 | 440 | } |
441 | 441 | |
442 | - if(!$already_changed) { |
|
442 | + if (!$already_changed) { |
|
443 | 443 | $this->account_metamatter += $metamatter; |
444 | 444 | $this->account_metamatter_total += $metamatter_total_delta; |
445 | 445 | } |
446 | 446 | |
447 | - if(is_array($comment)) { |
|
447 | + if (is_array($comment)) { |
|
448 | 448 | $comment = call_user_func_array('sprintf', $comment); |
449 | 449 | } |
450 | 450 | |
451 | 451 | $result = $this->db_mm_log_insert($comment, $change_type, $metamatter, $user_id_unsafe); |
452 | 452 | |
453 | - if($metamatter > 0 && !empty($user_id_safe)) { |
|
453 | + if ($metamatter > 0 && !empty($user_id_safe)) { |
|
454 | 454 | $old_referral = doquery("SELECT * FROM {{referrals}} WHERE `id` = {$user_id_safe} LIMIT 1 FOR UPDATE;", '', true); |
455 | - if($old_referral['id']) { |
|
455 | + if ($old_referral['id']) { |
|
456 | 456 | $dark_matter_from_metamatter = $metamatter * AFFILIATE_MM_TO_REFERRAL_DM; |
457 | 457 | doquery("UPDATE {{referrals}} SET dark_matter = dark_matter + '{$dark_matter_from_metamatter}' WHERE `id` = {$user_id_safe} LIMIT 1;"); |
458 | 458 | $new_referral = doquery("SELECT * FROM {{referrals}} WHERE `id` = {$user_id_safe} LIMIT 1;", '', true); |
459 | 459 | |
460 | 460 | $partner_bonus = floor($new_referral['dark_matter'] / $config->rpg_bonus_divisor) - ($old_referral['dark_matter'] >= $config->rpg_bonus_minimum ? floor($old_referral['dark_matter'] / $config->rpg_bonus_divisor) : 0); |
461 | - if($partner_bonus > 0 && $new_referral['dark_matter'] >= $config->rpg_bonus_minimum) { |
|
461 | + if ($partner_bonus > 0 && $new_referral['dark_matter'] >= $config->rpg_bonus_minimum) { |
|
462 | 462 | rpg_points_change($new_referral['id_partner'], RPG_REFERRAL_BOUGHT_MM, $partner_bonus, "Incoming MM From Referral ID {$user_id_safe}"); |
463 | 463 | } |
464 | 464 | } |
@@ -474,7 +474,7 @@ discard block |
||
474 | 474 | * @throws Exception |
475 | 475 | */ |
476 | 476 | public function cookieSet($rememberMe = false, $domain = null) { |
477 | - if(!$this->is_exists) { |
|
477 | + if (!$this->is_exists) { |
|
478 | 478 | throw new Exception(LOGIN_ERROR_NO_ACCOUNT_FOR_COOKIE_SET, ERR_ERROR); |
479 | 479 | } |
480 | 480 | |
@@ -493,7 +493,7 @@ discard block |
||
493 | 493 | // OK v4.1 |
494 | 494 | public function cookieClear($domain = null) { |
495 | 495 | // Автоматически вообще-то - если установлена кука имперсонатора - то чистим обычную, а куку имперсонатора - копируем в неё |
496 | - if(!empty($_COOKIE[$this->cookie_name_impersonate])) { |
|
496 | + if (!empty($_COOKIE[$this->cookie_name_impersonate])) { |
|
497 | 497 | sn_setcookie($this->cookie_name, $_COOKIE[$this->cookie_name_impersonate], SN_TIME_NOW + PERIOD_YEAR, $this->sn_root_path, $domain); |
498 | 498 | sn_setcookie($this->cookie_name_impersonate, '', SN_TIME_NOW - PERIOD_WEEK, $this->sn_root_path, $domain); |
499 | 499 | } else { |
@@ -503,14 +503,14 @@ discard block |
||
503 | 503 | |
504 | 504 | public function cookieLogin(&$rememberMe = false) { |
505 | 505 | // Пытаемся войти по куке |
506 | - if(!empty($_COOKIE[$this->cookie_name])) { |
|
507 | - if(count(explode("/%/", $_COOKIE[$this->cookie_name])) < 4) { |
|
506 | + if (!empty($_COOKIE[$this->cookie_name])) { |
|
507 | + if (count(explode("/%/", $_COOKIE[$this->cookie_name])) < 4) { |
|
508 | 508 | list($account_id_unsafe, $cookie_password_hash_salted, $user_remember_me) = explode(AUTH_COOKIE_DELIMETER, $_COOKIE[$this->cookie_name]); |
509 | 509 | } else { |
510 | 510 | list($account_id_unsafe, $user_name, $cookie_password_hash_salted, $user_remember_me) = explode("/%/", $_COOKIE[$this->cookie_name]); |
511 | 511 | } |
512 | 512 | |
513 | - if( |
|
513 | + if ( |
|
514 | 514 | $this->db_get_by_id($account_id_unsafe) |
515 | 515 | && ($this->password_encode_for_cookie($this->account_password) == $cookie_password_hash_salted) |
516 | 516 | ) { |
@@ -114,7 +114,7 @@ |
||
114 | 114 | $this->addFirstLast(); |
115 | 115 | } |
116 | 116 | |
117 | - if(!empty($this->result)) { |
|
117 | + if (!empty($this->result)) { |
|
118 | 118 | $template = gettemplate('_paging'); |
119 | 119 | $template->assign_recursive([ |
120 | 120 | 'PAGING_ROOT' => $this->rootUrl, |
@@ -19,7 +19,7 @@ |
||
19 | 19 | } |
20 | 20 | } |
21 | 21 | |
22 | - if(!empty($paramList)) { |
|
22 | + if (!empty($paramList)) { |
|
23 | 23 | $strParams = implode('&', $paramList); |
24 | 24 | } |
25 | 25 |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | ORDER BY `message_time` DESC;"; |
329 | 329 | } |
330 | 330 | |
331 | - if($this->showAll) { |
|
331 | + if ($this->showAll) { |
|
332 | 332 | $message_query = $this->db->selectIterator($message_query); |
333 | 333 | } else { |
334 | 334 | $message_query = new DbSqlPaging($message_query, PAGING_PAGE_SIZE_DEFAULT_MESSAGES, sys_get_param_int(PagingRenderer::KEYWORD)); |
@@ -483,7 +483,7 @@ discard block |
||
483 | 483 | $this->mode = sys_get_param_str('msg_delete') ? static::MESSAGES_MODE_DELETE : sys_get_param_str('mode'); |
484 | 484 | } |
485 | 485 | |
486 | - if($this->showAll = sys_get_param_str('msg_show_all') ? true : false) { |
|
486 | + if ($this->showAll = sys_get_param_str('msg_show_all') ? true : false) { |
|
487 | 487 | $this->mode = static::MESSAGES_MODE_MESSAGES; |
488 | 488 | } |
489 | 489 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * @return bool |
47 | 47 | */ |
48 | 48 | public function changeTitle(AllianceTitle $title) { |
49 | - if(!$title instanceof AllianceTitle) { |
|
49 | + if (!$title instanceof AllianceTitle) { |
|
50 | 50 | return false; |
51 | 51 | } |
52 | 52 |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | continue; |
46 | 46 | } |
47 | 47 | |
48 | - $result[] = (string)$title; |
|
48 | + $result[] = (string) $title; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | return implode(';', $result); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * Updates title names and access rights with current ones |
68 | 68 | */ |
69 | 69 | public function updateTitles() { |
70 | - $this->alliance->titleList = (string)$this; |
|
70 | + $this->alliance->titleList = (string) $this; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | protected function extractTitles() { |
@@ -58,8 +58,7 @@ |
||
58 | 58 | * @return int |
59 | 59 | */ |
60 | 60 | public static function calcBonusPower($unitInfo) { |
61 | - return isset($unitInfo[P_BONUS_VALUE]) ? $unitInfo[P_BONUS_VALUE] : |
|
62 | - (static::calcBonusType($unitInfo) == BONUS_ABILITY ? 1 : 0); |
|
61 | + return isset($unitInfo[P_BONUS_VALUE]) ? $unitInfo[P_BONUS_VALUE] : (static::calcBonusType($unitInfo) == BONUS_ABILITY ? 1 : 0); |
|
63 | 62 | } |
64 | 63 | |
65 | 64 | /** |
@@ -15,34 +15,34 @@ discard block |
||
15 | 15 | $template = gettemplate('notes', true); |
16 | 16 | |
17 | 17 | $result = array(); |
18 | -if(($result_message = sys_get_param_str('MESSAGE')) && isset($lang[$result_message])) { |
|
18 | +if (($result_message = sys_get_param_str('MESSAGE')) && isset($lang[$result_message])) { |
|
19 | 19 | $result[] = array('STATUS' => sys_get_param_int('STATUS'), 'MESSAGE' => $lang[$result_message]); |
20 | 20 | } |
21 | 21 | |
22 | 22 | $note_id_edit = sys_get_param_id('note_id_edit'); |
23 | -if(sys_get_param('note_delete')) { |
|
23 | +if (sys_get_param('note_delete')) { |
|
24 | 24 | try { |
25 | 25 | $not = ''; |
26 | 26 | $query_where = ''; |
27 | - switch(sys_get_param_str('note_delete_range')) { |
|
27 | + switch (sys_get_param_str('note_delete_range')) { |
|
28 | 28 | case 'all': |
29 | 29 | break; |
30 | 30 | |
31 | 31 | case 'marked_not': |
32 | 32 | $not = 'NOT'; |
33 | 33 | case 'marked': |
34 | - if(!is_array($notes_marked = sys_get_param('note'))) { |
|
34 | + if (!is_array($notes_marked = sys_get_param('note'))) { |
|
35 | 35 | throw new exception('note_err_none_selected', ERR_WARNING); |
36 | 36 | } |
37 | 37 | |
38 | 38 | $notes_marked_filtered = array(); |
39 | - foreach($notes_marked as $note_id => $note_select) { |
|
40 | - if($note_select == 'on' && $note_id = idval($note_id)) { |
|
39 | + foreach ($notes_marked as $note_id => $note_select) { |
|
40 | + if ($note_select == 'on' && $note_id = idval($note_id)) { |
|
41 | 41 | $notes_marked_filtered[] = $note_id; |
42 | 42 | } |
43 | 43 | } |
44 | 44 | |
45 | - if(empty($notes_marked_filtered)) { |
|
45 | + if (empty($notes_marked_filtered)) { |
|
46 | 46 | throw new exception('note_err_none_selected', ERR_WARNING); |
47 | 47 | } |
48 | 48 | |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | doquery("DELETE FROM {{notes}} WHERE `owner` = {$user['id']} {$query_where};"); |
60 | 60 | sn_db_transaction_commit(); |
61 | 61 | throw new exception($note_id_edit ? 'note_err_none_changed' : 'note_err_none_added', ERR_NONE); |
62 | - } catch(exception $e) { |
|
62 | + } catch (exception $e) { |
|
63 | 63 | $note_id_edit = 0; |
64 | 64 | sn_db_transaction_rollback(); |
65 | 65 | $result[] = array( |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | 'MESSAGE' => $lang[$e->getMessage()], |
68 | 68 | ); |
69 | 69 | } |
70 | -} elseif(($note_title = sys_get_param_str('note_title')) || ($note_text = sys_get_param_str('note_text'))) { |
|
70 | +} elseif (($note_title = sys_get_param_str('note_title')) || ($note_text = sys_get_param_str('note_text'))) { |
|
71 | 71 | $note_title == db_escape($lang['note_new_title']) ? $note_title = '' : false; |
72 | 72 | ($note_text = sys_get_param_str('note_text')) == db_escape($lang['note_new_text']) ? $note_text = '' : false; |
73 | 73 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $note_system = max(0, min(sys_get_param_id('note_system'), classSupernova::$config->game_maxSystem)); |
77 | 77 | $note_planet = max(0, min(sys_get_param_id('note_planet'), classSupernova::$config->game_maxPlanet + 1)); |
78 | 78 | |
79 | - if(!$note_text && !$note_title && !$note_galaxy && !$note_system && !$note_planet) { |
|
79 | + if (!$note_text && !$note_title && !$note_galaxy && !$note_system && !$note_planet) { |
|
80 | 80 | throw new exception('note_err_note_empty', ERR_WARNING); |
81 | 81 | } |
82 | 82 | |
@@ -85,15 +85,15 @@ discard block |
||
85 | 85 | $note_sticky = intval(sys_get_param_id('note_sticky')) ? 1 : 0; |
86 | 86 | |
87 | 87 | sn_db_transaction_start(); |
88 | - if($note_id_edit) { |
|
88 | + if ($note_id_edit) { |
|
89 | 89 | $check_note_id = doquery("SELECT `id`, `owner` FROM {{notes}} WHERE `id` = {$note_id_edit} LIMIT 1 FOR UPDATE", true); |
90 | - if(!$check_note_id) { |
|
90 | + if (!$check_note_id) { |
|
91 | 91 | throw new exception('note_err_note_not_found', ERR_ERROR); |
92 | 92 | } |
93 | 93 | } |
94 | 94 | |
95 | - if($note_id_edit) { |
|
96 | - if($check_note_id['owner'] != $user['id']) { |
|
95 | + if ($note_id_edit) { |
|
96 | + if ($check_note_id['owner'] != $user['id']) { |
|
97 | 97 | throw new exception('note_err_owner_wrong', ERR_ERROR); |
98 | 98 | } |
99 | 99 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | sn_db_transaction_commit(); |
109 | 109 | sys_redirect('notes.php?STATUS=' . ERR_NONE . '&MESSAGE=' . ($note_id_edit ? 'note_err_none_changed' : 'note_err_none_added')); |
110 | 110 | // throw new exception($note_id_edit ? 'note_err_none_changed' : 'note_err_none_added', ERR_NONE); |
111 | - } catch(exception $e) { |
|
111 | + } catch (exception $e) { |
|
112 | 112 | $note_id_edit = 0; |
113 | 113 | sn_db_transaction_rollback(); |
114 | 114 | $result[] = array( |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | } |
119 | 119 | } |
120 | 120 | |
121 | -if(!$note_id_edit) { |
|
121 | +if (!$note_id_edit) { |
|
122 | 122 | \Note\Note::note_assign($template, array( |
123 | 123 | 'id' => 0, |
124 | 124 | 'time' => SN_TIME_NOW, |
@@ -131,13 +131,13 @@ discard block |
||
131 | 131 | |
132 | 132 | $note_exist = false; |
133 | 133 | $notes_query = doquery("SELECT * FROM {{notes}} WHERE owner={$user['id']} ORDER BY priority DESC, galaxy ASC, system ASC, planet ASC, planet_type ASC, `time` DESC"); |
134 | -while($note_row = db_fetch($notes_query)) { |
|
134 | +while ($note_row = db_fetch($notes_query)) { |
|
135 | 135 | \Note\Note::note_assign($template, $note_row); |
136 | 136 | $note_exist = $note_exist || $note_row['id'] == $note_id_edit; |
137 | 137 | } |
138 | 138 | $note_id_edit = $note_exist ? $note_id_edit : 0; |
139 | 139 | |
140 | -foreach($note_priority_classes as $note_priority_id => $note_priority_class) { |
|
140 | +foreach ($note_priority_classes as $note_priority_id => $note_priority_class) { |
|
141 | 141 | $template->assign_block_vars('note_priority', array( |
142 | 142 | 'ID' => $note_priority_id, |
143 | 143 | 'CLASS' => $note_priority_classes[$note_priority_id], |
@@ -145,14 +145,14 @@ discard block |
||
145 | 145 | )); |
146 | 146 | } |
147 | 147 | |
148 | -foreach($lang['sys_planet_type'] as $planet_type_id => $planet_type_string) { |
|
148 | +foreach ($lang['sys_planet_type'] as $planet_type_id => $planet_type_string) { |
|
149 | 149 | $template->assign_block_vars('planet_type', array( |
150 | 150 | 'ID' => $planet_type_id, |
151 | 151 | 'TEXT' => $planet_type_string, |
152 | 152 | )); |
153 | 153 | } |
154 | 154 | |
155 | -foreach($result as $result_data) { |
|
155 | +foreach ($result as $result_data) { |
|
156 | 156 | $template->assign_block_vars('result', $result_data); |
157 | 157 | } |
158 | 158 |