Diff for Metafox/admin/inc/destroy.inc.php between version 1.1 and 1.2
| version 1.1, 2005/06/05 12:13:28 |
version 1.2, 2005/06/10 14:36:28 |
|
|
| |
|
| require_once dirname(__FILE__).'/init.inc.php'; |
require_once dirname(__FILE__).'/init.inc.php'; |
| |
|
| if ($ezin_tmpl_main->isVar('content')) { |
$ezin_admin_content = array('content' => ob_get_contents()); |
| $ezin_tmpl_main->set('content', ob_get_contents()); |
foreach (array('menu', 'content', 'signature') as $type) { |
| |
$begin_str = '<!-- Metafox::ADMIN::'.strtoupper($type).' -->'; |
| |
$end_str = '<!-- /Metafox::ADMIN::'.strtoupper($type).' -->'; |
| |
preg_match_all("|$begin_str(.*)$end_str|si", $ezin_admin_content['content'], $matches); |
| |
$ezin_admin_content['content_'.$type] = join("\n", $matches[0]); |
| |
} |
| |
|
| |
if (strlen($ezin_admin_content['content_content']) <= 0) { |
| |
$ezin_admin_content['content_content'] = $ezin_admin_content['content']; |
| |
} |
| |
|
| |
if ($ezin_tmpl_main->isVar('content') || $ezin_tmpl_main->isVar('content_content')) { |
| |
$ezin_tmpl_main->set($ezin_admin_content); |
| ob_end_clean(); |
ob_end_clean(); |
| eval($ezin_tmpl_main->getCode()); |
eval($ezin_tmpl_main->getCode()); |
| // Note, that this cannot be used! |
// Note, that this cannot be used! |
Platon Group <platon@platon.org> http://platon.org/
|
|