2016-06-11 13:06:09 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if(!defined('BASE_DIR')) exit;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Организуем работу в админке
|
|
|
|
*/
|
|
|
|
if (defined('ACP') && !empty($_REQUEST['moduleaction']))
|
|
|
|
{
|
2019-09-03 22:27:22 +05:00
|
|
|
require_once(BASE_DIR.'/modules/faster/class/faster.php');
|
2016-06-11 13:06:09 +03:00
|
|
|
|
|
|
|
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());
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
?>
|