Index: trunk/admin/browse.php =================================================================== diff -u -r1510 -r1566 --- trunk/admin/browse.php (.../browse.php) (revision 1510) +++ trunk/admin/browse.php (.../browse.php) (revision 1566) @@ -14,11 +14,35 @@ ############################################################## //$pathtoroot=""; + +//KERNEL4 STARTUP - FOR ACTIONS HANDLING + +function k4getmicrotime() +{ + list($usec, $sec) = explode(" ", microtime()); + return ((float)$usec + (float)$sec); +} + +$start = k4getmicrotime(); + +define('ADMIN', 1); +define('FULL_PATH', realpath(dirname(__FILE__).'/..')); +define('APPLICATION_CLASS', 'MyApplication'); +define('ADMINS_LIST','/in-portal/users/users.php'); +include_once(FULL_PATH."/kernel/kernel4/startup.php"); + +$application =& kApplication::Instance(); +$application->Init(); +$application->ProcessRequest(); +if($application->GetVar('Action') == 'm_paste') define('REDIRECT_REQUIRED',1); // this script can issue redirect header + +//KERNEL4 END + define('REQUIRE_LAYER_HEADER', 1); $b_topmargin = "0"; //$b_header_addon = "

"; -if(!strlen($pathtoroot)) +if( !(isset($pathtoroot) && $pathtoroot) ) { $path=dirname(realpath(__FILE__)); if(strlen($path)) @@ -134,6 +158,20 @@ @include_once($path); } } + + +$application->InitParser(); + +$cat_templates = $objModules->ExecuteFunction('GetModuleInfo', 'catalog_template'); +foreach ($cat_templates as $a_mod => $a_template) { + if (!$a_template) continue; + $a_var = $a_mod.'_TAB_HTML'; + $$a_var = $application->ParseBlock(Array('name'=>$a_template), 0, true); +} + +//$application->SetVar('t', 'in-commerce/products/products_catalog'); + + if(!defined('IS_INSTALL'))define('IS_INSTALL',0); if(!IS_INSTALL) { @@ -177,11 +215,16 @@ // where should all edit popups submit changes $objSession->SetVariable("ReturnScript", basename($_SERVER['PHP_SELF']) ); $charset = GetRegionalOption('Charset'); + +$m_tag_processor =& $application->recallObject('m_TagProcessor'); +$base_href = $m_tag_processor->Base_Ref(); + /* page header */ print << In-portal + $base_href