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.
48 lines
1.3 KiB
48 lines
1.3 KiB
9 years ago
|
<?php
|
||
|
|
||
|
if(!defined('BASE_DIR')) exit;
|
||
|
|
||
|
if (defined('ACP'))
|
||
|
{
|
||
|
$modul['ModuleName'] = '« Импорт | Экспорт »';
|
||
|
$modul['ModuleSysName'] = 'faster';
|
||
|
$modul['ModuleVersion'] = '0.4fixed';
|
||
|
$modul['ModuleDescription'] = 'Ускоряем разработку сайтов, быстро создавая рубрики. Импорт | экспорт рубрик, запросов и системных блоков';
|
||
|
$modul['ModuleAutor'] = 'Playmore';
|
||
|
$modul['ModuleCopyright'] = '© 2013 Playmore';
|
||
|
$modul['ModuleIsFunction'] = 0;
|
||
|
$modul['ModuleAdminEdit'] = 1;
|
||
|
$modul['ModuleFunction'] = '';
|
||
|
$modul['ModuleTag'] = '';
|
||
|
$modul['ModuleTagLink'] = null;
|
||
|
$modul['ModuleAveTag'] = '';
|
||
|
$modul['ModulePHPTag'] = "";
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Организуем работу в админке
|
||
|
*/
|
||
|
if (defined('ACP') && !empty($_REQUEST['moduleaction']))
|
||
|
{
|
||
|
require_once(BASE_DIR.'/modules/faster/module.class.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());
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
?>
|