Foren / Cotonti / Core Labs / set metas from standalone plugin

Orkan
#8838 25. Februar 2009, 20:18
# dervan :
no no no, not like goto :)
it's any little trick with $t object that used by header.php and plug.inc.php both

sorry, I didnt make myself clear enough. I mentioned GOTO as an example only. I understood your solution. however, you must admit that it only makes the code more difficult to read, right?

# dervan : i'm awaiting for your solution of problem on this carcass

this method is rather simple..
Basically each "main module", for example system/core/plug/plug.inc.php, should start with ob_start('name_of_callback_function') including header.php and footer.php as well.

just a note:

common.php
if ($cfg['gzip'])
	{ @ob_start('ob_gzhandler'); }
else
	{ ob_start(); }

ob_start('sed_outputfilters');

I would replace ob_start('sed_outputfilters') with just ob_start() to catch some warning messages, etc.. they will be discarded anyway at the end of common.php by simple @ob_end_clean(); - or even completely remove this buffer?

I can implement it, just want to hear from Kilandor, Trustmaster what they think?
Perl - the only language that looks the same before and after RSA encryption.

Dieser Beitrag wurde von Orkan (am 25. Februar 2009, 20:32, vor 16 Jahre) bearbeitet