@@ -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(); |
@@ -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); |
@@ -689,15 +689,15 @@ discard block |
||
| 689 | 689 | ), |
| 690 | 690 | |
| 691 | 691 | 'months' => array( |
| 692 | - 1 =>'января', |
|
| 693 | - 2 =>'февраля', |
|
| 694 | - 3 =>'марта', |
|
| 695 | - 4 =>'апреля', |
|
| 696 | - 5 =>'мая', |
|
| 697 | - 6 =>'июня', |
|
| 698 | - 7 =>'июля', |
|
| 699 | - 8 =>'августа', |
|
| 700 | - 9 =>'сентября', |
|
| 692 | + 1 =>'января', |
|
| 693 | + 2 =>'февраля', |
|
| 694 | + 3 =>'марта', |
|
| 695 | + 4 =>'апреля', |
|
| 696 | + 5 =>'мая', |
|
| 697 | + 6 =>'июня', |
|
| 698 | + 7 =>'июля', |
|
| 699 | + 8 =>'августа', |
|
| 700 | + 9 =>'сентября', |
|
| 701 | 701 | 10 =>'октября', |
| 702 | 702 | 11 =>'ноября', |
| 703 | 703 | 12 =>'декабря' |
@@ -993,7 +993,7 @@ discard block |
||
| 993 | 993 | PASSWORD_RESTORE_ERROR_ACCOUNT_NOT_EXISTS => 'Внутренняя ошибка - при смене пароля аккаунт не найден! Сообщите об этой ошибке Администрации!', |
| 994 | 994 | AUTH_PASSWORD_RESET_INSIDE_ERROR_NO_ACCOUNT_FOR_CONFIRMATION => 'ВНУТРЕННЯЯ ОШИБКА! Нет аккаунтов для сброса пароля при корректном коде подтверждения! Пожалуйста, сообщите об этой ошибке Администрации Вселенной!', |
| 995 | 995 | LOGIN_ERROR_NO_ACCOUNT_FOR_COOKIE_SET => 'ВНУТРЕННЯЯ ОШИБКА! СООБЩИТЕ АДМИНИСТРАЦИИ! Не установлен аккаунт при cookie_set()! Пожалуйста, сообщите об этой ошибке Администрации Вселенной!', |
| 996 | - ), |
|
| 996 | + ), |
|
| 997 | 997 | |
| 998 | 998 | 'log_reg_email_title' => "Ваша регистрация на сервере %1\$s игры СуперНова", |
| 999 | 999 | 'log_reg_email_text' => "Подтверждение регистрации для %3\$s\r\n\r\n |
@@ -169,14 +169,14 @@ |
||
| 169 | 169 | return classSupernova::db_changeset_apply($db_changeset); |
| 170 | 170 | } |
| 171 | 171 | /** |
| 172 | - * Функция проверяет статус транзакции |
|
| 173 | - * |
|
| 174 | - * @param null|true|false $status Должна ли быть запущена транзакция в момент проверки |
|
| 175 | - * <p>null - транзакция НЕ должна быть запущена</p> |
|
| 176 | - * <p>true - транзакция должна быть запущена - для совместимости с $for_update</p> |
|
| 177 | - * <p>false - всё равно - для совместимости с $for_update</p> |
|
| 178 | - * @return bool Текущий статус транзакции |
|
| 179 | - */ |
|
| 172 | + * Функция проверяет статус транзакции |
|
| 173 | + * |
|
| 174 | + * @param null|true|false $status Должна ли быть запущена транзакция в момент проверки |
|
| 175 | + * <p>null - транзакция НЕ должна быть запущена</p> |
|
| 176 | + * <p>true - транзакция должна быть запущена - для совместимости с $for_update</p> |
|
| 177 | + * <p>false - всё равно - для совместимости с $for_update</p> |
|
| 178 | + * @return bool Текущий статус транзакции |
|
| 179 | + */ |
|
| 180 | 180 | function sn_db_transaction_check($transaction_should_be_started = null) { |
| 181 | 181 | return classSupernova::db_transaction_check($transaction_should_be_started); |
| 182 | 182 | } |
@@ -16,23 +16,23 @@ discard block |
||
| 16 | 16 | $sn_menu_admin_extra = array(); |
| 17 | 17 | |
| 18 | 18 | $sn_mvc = array( |
| 19 | - 'model' => array( |
|
| 20 | - 'options' => array('sn_options_model'), |
|
| 21 | - 'chat' => array('sn_chat_model'), |
|
| 22 | - 'chat_add' => array('sn_chat_add_model'), |
|
| 23 | - ), |
|
| 24 | - 'view' => array( |
|
| 25 | - 'options' => array('sn_options_view'), |
|
| 26 | - 'chat' => array('sn_chat_view'), |
|
| 27 | - 'chat_msg' => array('sn_chat_msg_view'), |
|
| 28 | - ), |
|
| 29 | - 'controller' => array(), |
|
| 30 | - 'i18n' => array( |
|
| 31 | - 'options' => array( |
|
| 32 | - 'options' => 'options', |
|
| 33 | - 'messages' => 'messages', |
|
| 34 | - ), |
|
| 35 | - ), |
|
| 19 | + 'model' => array( |
|
| 20 | + 'options' => array('sn_options_model'), |
|
| 21 | + 'chat' => array('sn_chat_model'), |
|
| 22 | + 'chat_add' => array('sn_chat_add_model'), |
|
| 23 | + ), |
|
| 24 | + 'view' => array( |
|
| 25 | + 'options' => array('sn_options_view'), |
|
| 26 | + 'chat' => array('sn_chat_view'), |
|
| 27 | + 'chat_msg' => array('sn_chat_msg_view'), |
|
| 28 | + ), |
|
| 29 | + 'controller' => array(), |
|
| 30 | + 'i18n' => array( |
|
| 31 | + 'options' => array( |
|
| 32 | + 'options' => 'options', |
|
| 33 | + 'messages' => 'messages', |
|
| 34 | + ), |
|
| 35 | + ), |
|
| 36 | 36 | ); |
| 37 | 37 | |
| 38 | 38 | $note_priority_classes = array( |
@@ -120,62 +120,62 @@ discard block |
||
| 120 | 120 | ); |
| 121 | 121 | |
| 122 | 122 | $sn_message_class_list = array( |
| 123 | - MSG_TYPE_NEW => array( |
|
| 124 | - 'name' => 'new_message', |
|
| 125 | - 'switchable' => false, |
|
| 126 | - 'email' => false, |
|
| 127 | - ), |
|
| 128 | - MSG_TYPE_ADMIN => array( |
|
| 129 | - 'name' => 'msg_admin', |
|
| 130 | - 'switchable' => false, |
|
| 131 | - 'email' => true, |
|
| 132 | - ), |
|
| 133 | - MSG_TYPE_PLAYER => array( |
|
| 134 | - 'name' => 'mnl_joueur', |
|
| 135 | - 'switchable' => false, |
|
| 136 | - 'email' => true, |
|
| 137 | - ), |
|
| 138 | - MSG_TYPE_ALLIANCE => array( |
|
| 139 | - 'name' => 'mnl_alliance', |
|
| 140 | - 'switchable' => false, |
|
| 141 | - 'email' => true, |
|
| 142 | - ), |
|
| 143 | - MSG_TYPE_SPY => array( |
|
| 144 | - 'name' => 'mnl_spy', |
|
| 145 | - 'switchable' => true, |
|
| 146 | - 'email' => true, |
|
| 147 | - ), |
|
| 148 | - MSG_TYPE_COMBAT => array( |
|
| 149 | - 'name' => 'mnl_attaque', |
|
| 150 | - 'switchable' => true, |
|
| 151 | - 'email' => true, |
|
| 152 | - ), |
|
| 153 | - MSG_TYPE_TRANSPORT => array( |
|
| 154 | - 'name' => 'mnl_transport', |
|
| 155 | - 'switchable' => true, |
|
| 156 | - 'email' => true, |
|
| 157 | - ), |
|
| 158 | - MSG_TYPE_RECYCLE => array( |
|
| 159 | - 'name' => 'mnl_exploit', |
|
| 160 | - 'switchable' => true, |
|
| 161 | - 'email' => true, |
|
| 162 | - ), |
|
| 163 | - MSG_TYPE_EXPLORE => array( |
|
| 164 | - 'name' => 'mnl_expedition', |
|
| 165 | - 'switchable' => true, |
|
| 166 | - 'email' => true, |
|
| 167 | - ), |
|
| 168 | - // 97 => 'mnl_general', |
|
| 169 | - MSG_TYPE_QUE => array( |
|
| 170 | - 'name' => 'mnl_buildlist', |
|
| 171 | - 'switchable' => true, |
|
| 172 | - 'email' => true, |
|
| 173 | - ), |
|
| 174 | - MSG_TYPE_OUTBOX => array( |
|
| 175 | - 'name' => 'mnl_outbox', |
|
| 176 | - 'switchable' => false, |
|
| 177 | - 'email' => false, |
|
| 178 | - ), |
|
| 123 | + MSG_TYPE_NEW => array( |
|
| 124 | + 'name' => 'new_message', |
|
| 125 | + 'switchable' => false, |
|
| 126 | + 'email' => false, |
|
| 127 | + ), |
|
| 128 | + MSG_TYPE_ADMIN => array( |
|
| 129 | + 'name' => 'msg_admin', |
|
| 130 | + 'switchable' => false, |
|
| 131 | + 'email' => true, |
|
| 132 | + ), |
|
| 133 | + MSG_TYPE_PLAYER => array( |
|
| 134 | + 'name' => 'mnl_joueur', |
|
| 135 | + 'switchable' => false, |
|
| 136 | + 'email' => true, |
|
| 137 | + ), |
|
| 138 | + MSG_TYPE_ALLIANCE => array( |
|
| 139 | + 'name' => 'mnl_alliance', |
|
| 140 | + 'switchable' => false, |
|
| 141 | + 'email' => true, |
|
| 142 | + ), |
|
| 143 | + MSG_TYPE_SPY => array( |
|
| 144 | + 'name' => 'mnl_spy', |
|
| 145 | + 'switchable' => true, |
|
| 146 | + 'email' => true, |
|
| 147 | + ), |
|
| 148 | + MSG_TYPE_COMBAT => array( |
|
| 149 | + 'name' => 'mnl_attaque', |
|
| 150 | + 'switchable' => true, |
|
| 151 | + 'email' => true, |
|
| 152 | + ), |
|
| 153 | + MSG_TYPE_TRANSPORT => array( |
|
| 154 | + 'name' => 'mnl_transport', |
|
| 155 | + 'switchable' => true, |
|
| 156 | + 'email' => true, |
|
| 157 | + ), |
|
| 158 | + MSG_TYPE_RECYCLE => array( |
|
| 159 | + 'name' => 'mnl_exploit', |
|
| 160 | + 'switchable' => true, |
|
| 161 | + 'email' => true, |
|
| 162 | + ), |
|
| 163 | + MSG_TYPE_EXPLORE => array( |
|
| 164 | + 'name' => 'mnl_expedition', |
|
| 165 | + 'switchable' => true, |
|
| 166 | + 'email' => true, |
|
| 167 | + ), |
|
| 168 | + // 97 => 'mnl_general', |
|
| 169 | + MSG_TYPE_QUE => array( |
|
| 170 | + 'name' => 'mnl_buildlist', |
|
| 171 | + 'switchable' => true, |
|
| 172 | + 'email' => true, |
|
| 173 | + ), |
|
| 174 | + MSG_TYPE_OUTBOX => array( |
|
| 175 | + 'name' => 'mnl_outbox', |
|
| 176 | + 'switchable' => false, |
|
| 177 | + 'email' => false, |
|
| 178 | + ), |
|
| 179 | 179 | ); |
| 180 | 180 | |
| 181 | 181 | $sn_message_groups = array( |
@@ -1027,7 +1027,7 @@ discard block |
||
| 1027 | 1027 | SHIP_HUGE_DEATH_STAR => SHIP_HUGE_DEATH_STAR, SHIP_HUGE_SUPERNOVA => SHIP_HUGE_SUPERNOVA, |
| 1028 | 1028 | SHIP_CARGO_SMALL => SHIP_CARGO_SMALL, SHIP_CARGO_BIG => SHIP_CARGO_BIG, SHIP_CARGO_SUPER => SHIP_CARGO_SUPER, SHIP_CARGO_HYPER => SHIP_CARGO_HYPER, |
| 1029 | 1029 | SHIP_RECYCLER => SHIP_RECYCLER, SHIP_COLONIZER => SHIP_COLONIZER, SHIP_SPY => SHIP_SPY, SHIP_SATTELITE_SOLAR => SHIP_SATTELITE_SOLAR |
| 1030 | - ), |
|
| 1030 | + ), |
|
| 1031 | 1031 | // Defensive building list |
| 1032 | 1032 | 'defense' => array (UNIT_DEF_TURRET_MISSILE => UNIT_DEF_TURRET_MISSILE, UNIT_DEF_TURRET_LASER_SMALL => UNIT_DEF_TURRET_LASER_SMALL, |
| 1033 | 1033 | UNIT_DEF_TURRET_LASER_BIG => UNIT_DEF_TURRET_LASER_BIG, UNIT_DEF_TURRET_GAUSS => UNIT_DEF_TURRET_GAUSS, |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: Gorlum |
|
| 5 | - * Date: 13.04.2015 |
|
| 6 | - * Time: 6:27 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: Gorlum |
|
| 5 | + * Date: 13.04.2015 |
|
| 6 | + * Time: 6:27 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | function db_account_by_user_id($user_id_safe, &$result = null) { |
| 10 | 10 | die('db_account_by_user_id() должна быть реализована в класса core_auth!'); |
@@ -62,8 +62,8 @@ |
||
| 62 | 62 | if($mercenary_level) { |
| 63 | 63 | $darkmater_cost = eco_get_total_cost($mercenary_id, $mercenary_level); |
| 64 | 64 | if(!$config->empire_mercenary_temporary && $mercenary_level_old) { |
| 65 | - $darkmater_cost_old = eco_get_total_cost($mercenary_id, $mercenary_level_old); |
|
| 66 | - $darkmater_cost[BUILD_CREATE][RES_DARK_MATTER] -= $darkmater_cost_old[BUILD_CREATE][RES_DARK_MATTER]; |
|
| 65 | + $darkmater_cost_old = eco_get_total_cost($mercenary_id, $mercenary_level_old); |
|
| 66 | + $darkmater_cost[BUILD_CREATE][RES_DARK_MATTER] -= $darkmater_cost_old[BUILD_CREATE][RES_DARK_MATTER]; |
|
| 67 | 67 | } |
| 68 | 68 | $darkmater_cost = ceil($darkmater_cost[BUILD_CREATE][RES_DARK_MATTER] * $mercenary_period * $sn_powerup_buy_discounts[$mercenary_period] / $config->empire_mercenary_base_period); |
| 69 | 69 | } else { |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | if(self::$mode === CACHER_NOT_INIT) { |
| 60 | 60 | self::$mode = CACHER_NO_CACHE; |
| 61 | 61 | if(!self::$data) { |
| 62 | - self::$data = array(); |
|
| 62 | + self::$data = array(); |
|
| 63 | 63 | } |
| 64 | 64 | } |
| 65 | 65 | } |
@@ -25,11 +25,11 @@ discard block |
||
| 25 | 25 | class template |
| 26 | 26 | { |
| 27 | 27 | /** variable that holds all the data we'll be substituting into |
| 28 | - * the compiled templates. Takes form: |
|
| 29 | - * --> $this->_tpldata[block][iteration#][child][iteration#][child2][iteration#][variablename] == value |
|
| 30 | - * if it's a root-level variable, it'll be like this: |
|
| 31 | - * --> $this->_tpldata[.][0][varname] == value |
|
| 32 | - */ |
|
| 28 | + * the compiled templates. Takes form: |
|
| 29 | + * --> $this->_tpldata[block][iteration#][child][iteration#][child2][iteration#][variablename] == value |
|
| 30 | + * if it's a root-level variable, it'll be like this: |
|
| 31 | + * --> $this->_tpldata[.][0][varname] == value |
|
| 32 | + */ |
|
| 33 | 33 | var $_tpldata = array('.' => array(0 => array())); |
| 34 | 34 | var $_rootref; |
| 35 | 35 | // var $_block_counter = array(); |
@@ -60,9 +60,9 @@ discard block |
||
| 60 | 60 | var $parsed = false; |
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | - * Set template location |
|
| 64 | - * @access public |
|
| 65 | - */ |
|
| 63 | + * Set template location |
|
| 64 | + * @access public |
|
| 65 | + */ |
|
| 66 | 66 | function set_template() |
| 67 | 67 | { |
| 68 | 68 | global $phpbb_root_path, $user; |
@@ -101,9 +101,9 @@ discard block |
||
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | /** |
| 104 | - * Set custom template location (able to use directory outside of phpBB) |
|
| 105 | - * @access public |
|
| 106 | - */ |
|
| 104 | + * Set custom template location (able to use directory outside of phpBB) |
|
| 105 | + * @access public |
|
| 106 | + */ |
|
| 107 | 107 | function set_custom_template($template_path, $template_name, $fallback_template_path = false) |
| 108 | 108 | { |
| 109 | 109 | global $phpbb_root_path, $user; |
@@ -142,10 +142,10 @@ discard block |
||
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | /** |
| 145 | - * Sets the template filenames for handles. $filename_array |
|
| 146 | - * should be a hash of handle => filename pairs. |
|
| 147 | - * @access public |
|
| 148 | - */ |
|
| 145 | + * Sets the template filenames for handles. $filename_array |
|
| 146 | + * should be a hash of handle => filename pairs. |
|
| 147 | + * @access public |
|
| 148 | + */ |
|
| 149 | 149 | function set_filenames($filename_array) |
| 150 | 150 | { |
| 151 | 151 | if (!is_array($filename_array)) |
@@ -172,9 +172,9 @@ discard block |
||
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | /** |
| 175 | - * Destroy template data set |
|
| 176 | - * @access public |
|
| 177 | - */ |
|
| 175 | + * Destroy template data set |
|
| 176 | + * @access public |
|
| 177 | + */ |
|
| 178 | 178 | function destroy() |
| 179 | 179 | { |
| 180 | 180 | $this->_tpldata = array('.' => array(0 => array())); |
@@ -182,9 +182,9 @@ discard block |
||
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | /** |
| 185 | - * Reset/empty complete block |
|
| 186 | - * @access public |
|
| 187 | - */ |
|
| 185 | + * Reset/empty complete block |
|
| 186 | + * @access public |
|
| 187 | + */ |
|
| 188 | 188 | function destroy_block_vars($blockname) |
| 189 | 189 | { |
| 190 | 190 | if (strpos($blockname, '.') !== false) |
@@ -212,9 +212,9 @@ discard block |
||
| 212 | 212 | } |
| 213 | 213 | |
| 214 | 214 | /** |
| 215 | - * Display handle |
|
| 216 | - * @access public |
|
| 217 | - */ |
|
| 215 | + * Display handle |
|
| 216 | + * @access public |
|
| 217 | + */ |
|
| 218 | 218 | function display($handle, $include_once = true) |
| 219 | 219 | { |
| 220 | 220 | global $user, $phpbb_hook, $lang, $config; |
@@ -248,9 +248,9 @@ discard block |
||
| 248 | 248 | } |
| 249 | 249 | |
| 250 | 250 | /** |
| 251 | - * Display the handle and assign the output to a template variable or return the compiled result. |
|
| 252 | - * @access public |
|
| 253 | - */ |
|
| 251 | + * Display the handle and assign the output to a template variable or return the compiled result. |
|
| 252 | + * @access public |
|
| 253 | + */ |
|
| 254 | 254 | function assign_display($handle, $template_var = '', $return_content = true, $include_once = false) |
| 255 | 255 | { |
| 256 | 256 | ob_start(); |
@@ -268,9 +268,9 @@ discard block |
||
| 268 | 268 | } |
| 269 | 269 | |
| 270 | 270 | /** |
| 271 | - * Load a compiled template if possible, if not, recompile it |
|
| 272 | - * @access private |
|
| 273 | - */ |
|
| 271 | + * Load a compiled template if possible, if not, recompile it |
|
| 272 | + * @access private |
|
| 273 | + */ |
|
| 274 | 274 | function _tpl_load(&$handle) |
| 275 | 275 | { |
| 276 | 276 | global $user, $config; |
@@ -453,9 +453,9 @@ discard block |
||
| 453 | 453 | } |
| 454 | 454 | |
| 455 | 455 | /** |
| 456 | - * Assign key variable pairs from an array |
|
| 457 | - * @access public |
|
| 458 | - */ |
|
| 456 | + * Assign key variable pairs from an array |
|
| 457 | + * @access public |
|
| 458 | + */ |
|
| 459 | 459 | function assign_vars($vararray) |
| 460 | 460 | { |
| 461 | 461 | foreach ($vararray as $key => $val) |
@@ -467,9 +467,9 @@ discard block |
||
| 467 | 467 | } |
| 468 | 468 | |
| 469 | 469 | /** |
| 470 | - * Assign a single variable to a single key |
|
| 471 | - * @access public |
|
| 472 | - */ |
|
| 470 | + * Assign a single variable to a single key |
|
| 471 | + * @access public |
|
| 472 | + */ |
|
| 473 | 473 | function assign_var($varname, $varval) |
| 474 | 474 | { |
| 475 | 475 | $this->_rootref[$varname] = $varval; |
@@ -478,9 +478,9 @@ discard block |
||
| 478 | 478 | } |
| 479 | 479 | |
| 480 | 480 | /** |
| 481 | - * Assign key variable pairs from an array to a specified block |
|
| 482 | - * @access public |
|
| 483 | - */ |
|
| 481 | + * Assign key variable pairs from an array to a specified block |
|
| 482 | + * @access public |
|
| 483 | + */ |
|
| 484 | 484 | function assign_block_vars($blockname, $vararray) |
| 485 | 485 | { |
| 486 | 486 | if (strpos($blockname, '.') !== false) |
@@ -545,33 +545,33 @@ discard block |
||
| 545 | 545 | } |
| 546 | 546 | |
| 547 | 547 | /** |
| 548 | - * Change already assigned key variable pair (one-dimensional - single loop entry) |
|
| 549 | - * |
|
| 550 | - * An example of how to use this function: |
|
| 551 | - * {@example alter_block_array.php} |
|
| 552 | - * |
|
| 553 | - * @param string $blockname the blockname, for example 'loop' |
|
| 554 | - * @param array $vararray the var array to insert/add or merge |
|
| 555 | - * @param mixed $key Key to search for |
|
| 556 | - * |
|
| 557 | - * array: KEY => VALUE [the key/value pair to search for within the loop to determine the correct position] |
|
| 558 | - * |
|
| 559 | - * int: Position [the position to change or insert at directly given] |
|
| 560 | - * |
|
| 561 | - * If key is false the position is set to 0 |
|
| 562 | - * If key is true the position is set to the last entry |
|
| 563 | - * |
|
| 564 | - * @param string $mode Mode to execute (valid modes are 'insert' and 'change') |
|
| 565 | - * |
|
| 566 | - * If insert, the vararray is inserted at the given position (position counting from zero). |
|
| 567 | - * If change, the current block gets merged with the vararray (resulting in new key/value pairs be added and existing keys be replaced by the new value). |
|
| 568 | - * |
|
| 569 | - * Since counting begins by zero, inserting at the last position will result in this array: array(vararray, last positioned array) |
|
| 570 | - * and inserting at position 1 will result in this array: array(first positioned array, vararray, following vars) |
|
| 571 | - * |
|
| 572 | - * @return bool false on error, true on success |
|
| 573 | - * @access public |
|
| 574 | - */ |
|
| 548 | + * Change already assigned key variable pair (one-dimensional - single loop entry) |
|
| 549 | + * |
|
| 550 | + * An example of how to use this function: |
|
| 551 | + * {@example alter_block_array.php} |
|
| 552 | + * |
|
| 553 | + * @param string $blockname the blockname, for example 'loop' |
|
| 554 | + * @param array $vararray the var array to insert/add or merge |
|
| 555 | + * @param mixed $key Key to search for |
|
| 556 | + * |
|
| 557 | + * array: KEY => VALUE [the key/value pair to search for within the loop to determine the correct position] |
|
| 558 | + * |
|
| 559 | + * int: Position [the position to change or insert at directly given] |
|
| 560 | + * |
|
| 561 | + * If key is false the position is set to 0 |
|
| 562 | + * If key is true the position is set to the last entry |
|
| 563 | + * |
|
| 564 | + * @param string $mode Mode to execute (valid modes are 'insert' and 'change') |
|
| 565 | + * |
|
| 566 | + * If insert, the vararray is inserted at the given position (position counting from zero). |
|
| 567 | + * If change, the current block gets merged with the vararray (resulting in new key/value pairs be added and existing keys be replaced by the new value). |
|
| 568 | + * |
|
| 569 | + * Since counting begins by zero, inserting at the last position will result in this array: array(vararray, last positioned array) |
|
| 570 | + * and inserting at position 1 will result in this array: array(first positioned array, vararray, following vars) |
|
| 571 | + * |
|
| 572 | + * @return bool false on error, true on success |
|
| 573 | + * @access public |
|
| 574 | + */ |
|
| 575 | 575 | function alter_block_array($blockname, $vararray, $key = false, $mode = 'insert') |
| 576 | 576 | { |
| 577 | 577 | if (strpos($blockname, '.') !== false) |
@@ -655,9 +655,9 @@ discard block |
||
| 655 | 655 | } |
| 656 | 656 | |
| 657 | 657 | /** |
| 658 | - * Include a separate template |
|
| 659 | - * @access private |
|
| 660 | - */ |
|
| 658 | + * Include a separate template |
|
| 659 | + * @access private |
|
| 660 | + */ |
|
| 661 | 661 | function _tpl_include($filename, $include = true) |
| 662 | 662 | { |
| 663 | 663 | global $lang, $config; |
@@ -686,9 +686,9 @@ discard block |
||
| 686 | 686 | } |
| 687 | 687 | |
| 688 | 688 | /** |
| 689 | - * Include a php-file |
|
| 690 | - * @access private |
|
| 691 | - */ |
|
| 689 | + * Include a php-file |
|
| 690 | + * @access private |
|
| 691 | + */ |
|
| 692 | 692 | function _php_include($filename) |
| 693 | 693 | { |
| 694 | 694 | global $phpbb_root_path; |
@@ -705,9 +705,9 @@ discard block |
||
| 705 | 705 | } |
| 706 | 706 | |
| 707 | 707 | /** |
| 708 | - * Assign key variable pairs from an array with block support |
|
| 709 | - * @access public |
|
| 710 | - */ |
|
| 708 | + * Assign key variable pairs from an array with block support |
|
| 709 | + * @access public |
|
| 710 | + */ |
|
| 711 | 711 | function assign_recursive($values, $name = '') |
| 712 | 712 | { |
| 713 | 713 | if(isset($values['.'])) |