✏️ 正在编辑: LiberacaoModulos.php
路径:
/srv/systems_dir/yuppiecred-bkp/application/plugins/LiberacaoModulos.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Plugin_LiberacaoModulos extends Zend_Controller_Plugin_Abstract { /** * This method is executed before the action * * @link http://framework.zend.com/manual/en/zend.controller.action.html#zend.controller.action.prepostdispatch * @param Zend_Controller_Request_Abstract $request */ public function preDispatch(Zend_Controller_Request_Abstract $request) { if( strstr($request->getControllerName(), "callcenter") ){ $config = new Zend_Config_Ini(CLIENT_PATH . '/configs/application.ini'); if( !isset($config->production->yuppie->callcenter) || $config->production->yuppie->callcenter != 1 ){ Zend_Controller_Action_HelperBroker::getStaticHelper('FlashMessenger')->addMessage( array('error' => 'Módulo callcenter não habilitado. Entre em contato com a Yuppie.')); $request->setControllerName('index'); $request->setActionName('index'); return; } } } }
💾 保存文件
← 返回文件管理器