Код: Выделить всё
<!-- BEGIN switch_user_logged_out -->
<!-- END switch_user_logged_out -->
И (или) - какой модуль php занимается парсингом, отлавливая их в тексте html-страницы?
Код: Выделить всё
<!-- BEGIN switch_user_logged_out -->
<!-- END switch_user_logged_out -->
Код: Выделить всё
function assign_block_vars($blockname, $vararray)
164 {
165 if (strstr($blockname, '.'))
166 {
167 // Nested block.
168 $blocks = explode('.', $blockname);
169 $blockcount = sizeof($blocks) - 1;
170 $str = '$this->_tpldata';
171 for ($i = 0; $i < $blockcount; $i++)
172 {
173 $str .= '[\'' . $blocks[$i] . '.\']';
174 eval('$lastiteration = sizeof(' . $str . ') - 1;');
175 $str .= '[' . $lastiteration . ']';
176 }
177 // Now we add the block that we're actually assigning to.
178 // We're adding a new iteration to this block with the given
179 // variable assignments.
180 $str .= '[\'' . $blocks[$blockcount] . '.\'][] = $vararray;';
181
182 // Now we evaluate this assignment we've built up.
183 eval($str);
184 }
185 else
186 {
187 // Top-level block.
188 // Add a new iteration to this block with the variable assignments
189 // we were given.
190 $this->_tpldata[$blockname . '.'][] = $vararray;
191 }
192
193 return true;
194 }