/** * Class process method wnich is used to execute this component. */ public function process() { $oService = Phpfox::getService('younetcore.core'); $oVerify = phpfox::getService('younetcore.verify'); $oFunctions = phpfox::getService('younetcore.functions'); $this->template()->setBreadCrumb(Phpfox::getPhrase('younetcore.younet_plugins_manager')); $this->template()->setHeader(array('tabs.js' => 'module_younetcore', 'sl.js' => 'module_younetcore', 'tab.css' => 'module_younetcore', 'younet.css' => 'module_younetcore', 'slimbox2.css' => 'module_younetcore')); if ($_POST) { if ($this->request()->get('recheck') != phpfox::getPhrase('younetcore.check_problems')) { $aVals = $this->request()->getRequests(); if (isset($aVals['do'])) { unset($aVals['do']); } if (isset($aVals['core'])) { unset($aVals['core']); } if (isset($aVals['req1'])) { unset($aVals['req1']); } if (isset($aVals['req2'])) { unset($aVals['req2']); } $product_id = isset($aVals['m']) ? $aVals['m'] : ""; $oVerify->verified($aVals, $product_id); $this->url()->send('admincp.younetcore'); } else { $oService->rmc(); $oService->rma(); $this->url()->send('admincp.younetcore'); } } $oService->checkYouNetProducts(); $aProducts = $oService->getPhpFoxProducts(false); $this->template()->setTitle(Phpfox::getPhrase('admincp.manage_products'))->setFullSite(true)->assign(array('aProducts' => $aProducts, 'sCoreUrl' => phpfox::getParam('core.path'))); }
/** * Class process method wnich is used to execute this component. */ public function process() { phpfox::isUser(true); if (!Phpfox::isUser()) { return Phpfox_Error::display('Need to be logged in!'); } Phpfox::getUserParam('blog.can_import_blog', true); //check if user able to access this page $this->template()->setBreadcrumb(phpfox::getPhrase('blog.blogs'), $this->url()->makeUrl('blog'))->setBreadcrumb(phpfox::getPhrase('blog.import_blog_s'), $this->url()->makeUrl('blog.import'), true)->setHeader('cache', array('jquery/plugin/jquery.highlightFade.js' => 'static_script', 'switch_legend.js' => 'static_script', 'switch_menu.js' => 'static_script', 'quick_edit.js' => 'static_script', 'pager.css' => 'style_css')); }
/** * Class process method wnich is used to execute this component. */ public function process() { phpfox::isUser(true); if (!Phpfox::isUser()) { return Phpfox_Error::display('Need to be logged in!'); } Phpfox::getUserParam('blog.can_export_blog', true); //check if user able to access this page $exportTemplate = $this->request()->get('option'); if ($exportTemplate) { $content = Phpfox::getService('blog.export')->getContent($exportTemplate); // echo($content);exit; Phpfox::getService('blog.export')->exportXML($content, $exportTemplate); return; } $this->template()->setBreadcrumb(phpfox::getPhrase('blog.blogs'), $this->url()->makeUrl('blog'))->setBreadcrumb(phpfox::getPhrase('blog.export_blog_s'), $this->url()->makeUrl('blog.export'), true)->setHeader('cache', array('jquery/plugin/jquery.highlightFade.js' => 'static_script', 'switch_legend.js' => 'static_script', 'switch_menu.js' => 'static_script', 'quick_edit.js' => 'static_script', 'pager.css' => 'style_css')); }