Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

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
Line 2 
Line 2 
   
 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!

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top