You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
634 B
31 lines
634 B
<?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()); |
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
?>
|