<?php if(!defined('BASE_DIR')) exit; /** * Организуем работу в админке */ if (defined('ACP') && !empty($_REQUEST['moduleaction'])) { require_once(BASE_DIR.'/modules/faster/class/faster.php'); if(class_exists('Faster')) { $tpl_dir = BASE_DIR . '/modules/faster/templates/'; $act = $_REQUEST['moduleaction']; $faster = new Faster($tpl_dir); if($act == 1) $faster->show_import(); // вызываем метод модели по moduleaction if(method_exists($faster, $act)){ call_user_func_array(array($faster, $act), array()); } } } ?>