function define_front_actions() { $l = Common::get_module_lang('votes', $_SESSION['lang'], 'define_front_actions'); $this->def_action('show_vote', $l['{show_vote}'], 'ai_show_vote'); $this->def_action('show_vote_server', $l['{show_vote_server}'], array('showvresult', 'addvote')); $this->def_action('show_random_vote', $l['{show_random_vote}'], 'ai_show_random_vote'); }
function define_front_actions() { $l = Common::get_module_lang('banners', $_SESSION['lang'], 'define_front_actions'); $this->def_action('show_selected_banner', $l['{show_selected_banner}'], 'ai_show_selected_banner'); $this->def_action('show_random_banner', $l['{show_random_banner}'], 'ai_show_random_banner'); $this->def_action('show_banners_from_group', $l['{show_banners_from_group}'], 'ai_show_banners_from_group'); }
function show_logs_on_main_page($xcall = false) { global $TMS, $_PATH; if (!$TMS->isSectionDefined('last_modification')) { $lang = Common::get_module_lang('admin', $_SESSION['lang'], 'run'); $TMS->AddFileSection(Common::translate_to(file($_PATH['PATH_ADM'] . 'tpl/run.html'), $lang)); } if ($logs = logger::getLogs()) { Common::call_common_instance('users'); $users =& users_module_common::getInstance(); $users_list = XARRAY::arr_to_lev($users->load_users_list(), 'id', 'params', 'Name'); $mod_list = XARRAY::arr_to_keyarr(admin_mod::get_module_list(), 'name', 'alias'); $actions = $users->collect_module_actions(); $lm = ''; foreach ($logs as $log) { if ($action = $actions[$log['module']][$log['action']]) { $log['action'] = $action; } $log['module'] = $mod_list[$log['module']]; $log['user'] = $users_list[$log['user_id']]; $log['time'] = date("d.m.y G:i:s", $log['time']); $TMS->AddMassReplace('last_modification', $log); if (!$xcall) { $TMS->parseSection('last_modification', true); } else { $lm .= $TMS->parseSection('last_modification', false, true); } } if ($xcall) { return $lm; } } }
function define_front_actions() { $l = Common::get_module_lang('gallery', $_SESSION['lang'], 'define_front_actions'); $this->def_action('show_gallery_list', $l['{show_gallery_list}'], 'ai_show_gallery_list'); $this->def_action('show_selected_album', $l['{show_selected_album}'], 'ai_show_selected_album'); $this->def_action('show_gallery_server', $l['{show_gallery_server}'], array('show_album')); $this->def_action('show_from_folder', $l['{show_from_folder}'], array('show_from_folder')); }
function define_front_actions() { $l = Common::get_module_lang('ishop', $_SESSION['lang'], 'define_front_actions'); $this->def_action('show_basket_status', $l['{show_basket_status}'], 'show_search_form'); $this->def_action('show_currency', $l['{show_currency}'], 'show_currency'); $this->def_action('show_ishop_basket', $l['{show_ishop_basket}'], array('order', 'remove', 'removeall', 'cart', 'addtocart', 'submitorder')); $this->set_action_priority('show_basket_status', array('show_ishop_basket' => 0)); }
function define_front_actions() { $l = Common::get_module_lang('content', $_SESSION['lang'], 'define_front_actions'); $this->def_action('show_content', $l['{show_content}'], ''); $this->def_action('show_content_announce', $l['{show_content_announce}'], ''); $this->def_action('show_contents_list', $l['{show_contents_list}'], ''); $this->def_action('show_contentgroups_list', $l['{show_contentgroups_list}'], ''); $this->def_action('content_server', $l['{content_server}'], array('showcontent', 'show_content_announce', 'show_contents_list', 'show_articles')); }
function define_front_actions() { $l = Common::get_module_lang('faq', $_SESSION['lang'], 'define_front_actions'); $this->def_action('show_categories', $l['{show_categories}'], ''); $this->def_action('show_selected_category', $l['{show_selected_category}'], ''); $this->def_action('show_folder_questions', $l['{show_folder_questions}'], ''); $this->def_action('show_faq_server', $l['{show_faq_server}'], array('show_question')); $this->def_action('show_faq_search', $l['{show_faq_search}'], ''); $this->def_action('show_faq_search_server', $l['{show_faq_search_server}'], array('faqsearch')); }
function define_front_actions() { $l = Common::get_module_lang('search', $_SESSION['lang'], 'define_front_actions'); $this->def_action('show_search_form', $l['{show_search_form}'], 'show_search_form'); $this->def_action('search_server', $l['{search_server}'], array('find')); }
function content_table($params) { $TD = Common::inc_module_factory('TTreeSource'); $options['startNode'] = $params['id']; $options['shownodesWithObjType'] = array('_CONTENTGROUP', '_CONTENT', '_ROOT'); $options['groups'] = array('_CONTENTGROUP', '_ROOT'); $options['columnsAsParameters'] = array('Name' => 'Name', 'template' => 'Template'); $options['preventDots'] = true; $options['columnsAsStructs'] = array('id' => 'id'); $options['sequence'] = array('Name', 'template'); $l = Common::get_module_lang('content', $_SESSION['lang'], 'common_content'); $options['emulate_root'] = array($l['{root_name}'], ''); $options['gridFormat'] = 1; $TD->init_from_source($this->_tree); $TD->setOptions($options); $TD->CreateView($params['id']); $this->result = $TD->result; }
function define_front_actions() { $l = Common::get_module_lang('news', $_SESSION['lang'], 'define_front_actions'); $this->def_action('show_news_categories', $l['{show_news_categories}'], ''); $this->def_action('show_news_interval', $l['{show_news_interval}'], ''); $this->def_action('show_news_by_author', $l['{show_news_by_author}'], ''); $this->def_action('show_news_server', $l['{show_news_server}'], array('shownews', 'showncat', 'bytag', 'newsinterval', 'rss')); }
function define_front_actions() { $l = Common::get_module_lang('price', $_SESSION['lang'], 'define_front_actions'); $this->def_action('show_price_list', $l['{show_price_list}'], array('ai_show_price_list', 'download')); $this->def_action('show_folder', $l['{show_folder}'], array('ai_show_folder', 'download')); }
function date_locale($val, $params) { global $_COMMON_SITE_CONF; if (!$params[1]) { $params[1] = 'RUS'; } $v = strtotime($val); setlocale(LC_ALL, $params[1]); $tdate = strftime($params[0], strtotime($val)); $l = Common::get_module_lang('core', $_COMMON_SITE_CONF['site_language'], 'date_format'); if ($params[1] == 'RUS') { $treplace = array($l['{January}'] => $l['{january}'], $l['{February}'] => $l['{february}'], $l['{March}'] => $l['{march}'], $l['{April}'] => $l['{april}'], $l['{May}'] => $l['{may}'], $l['{June}'] => $l['{june}'], $l['{July}'] => $l['{july}'], $l['{August}'] => $l['{august}'], $l['{September}'] => $l['{september}'], $l['{October}'] => $l['{october}'], $l['{November}'] => $l['{november}'], $l['{December}'] => $l['{december}'], $l['{Jan}'] => $l['{jan}'], $l['{Feb}'] => $l['{feb}'], $l['{Mar}'] => $l['{mar}'], $l['{Apr}'] => $l['{apr}'], $l['{May}'] => $l['{may}'], $l['{Jun}'] => $l['{jun}'], $l['{Jul}'] => $l['{jul}'], $l['{Aug}'] => $l['{aug}'], $l['{Sep}'] => $l['{sep}'], $l['{Oct}'] => $l['{oct}'], $l['{Nov}'] => $l['{nov}'], $l['{Dec}'] => $l['{dec}'], 'January' => $l['{january}'], 'February' => $l['{february}'], 'March' => $l['{march}'], 'April' => $l['{april}'], 'May' => $l['{may}'], 'June' => $l['{june}'], 'July' => $l['{july}'], 'August' => $l['{august}'], 'September' => $l['{september}'], 'October' => $l['{october}'], 'November' => $l['{november}'], 'December' => $l['{december}'], 'Jan' => $l['{jan}'], 'Feb' => $l['{feb}'], 'Mar' => $l['{mar}'], 'Apr' => $l['{apr}'], 'May' => $l['{may}'], 'Jun' => $l['{jun}'], 'Jul' => $l['{jul}'], 'Aug' => $l['{aug}'], 'Sep' => $l['{sep}'], 'Oct' => $l['{oct}'], 'Nov' => $l['{nov}'], 'Dec' => $l['{dec}']); return strtr($tdate, $treplace); } else { return $tdate; } }
function define_front_actions() { $l = Common::get_module_lang('fusers', $_SESSION['lang'], 'define_front_action'); $this->def_action('show_auth_panel', $l['{show_auth_panel}'], 'show_auth_panel'); $this->def_action('show_users_from_group', $l['{show_users_from_group}'], 'show_users_from_group'); $this->def_action('user_panel', $l['{user_panel}'], array('needauth', 'submitsubuser', 'registration', 'forgotpassword', 'logout', 'edituser', 'auth', 'save_profile', 'userpanel', 'submituser', 'editsubusers', 'addsubuser', 'deletesubuser', 'editsubuser', 'verifyuser')); $this->set_action_priority('show_auth_panel', array('auth' => 0, 'logout' => 0)); }
function define_front_actions() { $l = Common::get_module_lang('forms', $_SESSION['lang'], 'define_front_actions'); $this->def_action('show_forms', $l['{show_forms}'], ''); }
function show_edit($params) { $this->result['news_data'] = $this->_common_obj->select_news($params['id'], '%d-%m-%Y %H:%i:%s'); $l = Common::get_module_lang('news', $_SESSION['lang'], 'user_types'); $user = $this->_common_obj->get_author($this->result['news_data']['author_id'], $this->result['news_data']['author_type']); $this->result['news_data']['author_id'] = $user['params']['Name']; $this->result['news_data']['author_type'] = $l['{n-' . $this->result['news_data']['author_type'] . '}']; $this->get_categories('news_data', $this->result['news_data']['ctg_id'], false); }
function define_front_actions() { $l = Common::get_module_lang('subscribe', $_SESSION['lang'], 'define_front_actions'); $this->def_action('show_subscribe_form', $l['{show_subscribe_form}'], ''); $this->def_action('subscriber_page', $l['{subscriber_page}'], array('subscriber_page', 'complete_subscribe', 'complete_unsubscribe')); }
function catalog_table($params) { $TD = Common::inc_module_factory('TTreeSource'); $options['startNode'] = $params['id']; $options['shownodesWithObjType'] = array('_CATGROUP', '_CATOBJ', '_ROOT'); $options['groups'] = array('_CATGROUP', '_ROOT'); $options['columnsAsParameters'] = array('Name' => 'Name', 'Property_set' => 'Property_set', 'Disable' => 'Disable'); $options['preventDots'] = true; $options['columnsAsStructs'] = array('id' => 'id', 'basic' => 'basic'); $options['sequence'] = array('Name', 'Property_set', 'id', 'basic', 'Disable'); $options['callfunc'] = array('Property_set' => array($this, 'convertPropertySet')); $l = Common::get_module_lang('catalog', $_SESSION['lang'], 'common_catalog'); $options['emulate_root'] = array($l['{root_name}'], '', ''); $options['gridFormat'] = 1; $TD->init_from_source($this->_tree); $TD->setOptions($options); $TD->CreateView($params['id']); $this->result = $TD->result; }
function define_front_actions() { $l = Common::get_module_lang('catalog', $_SESSION['lang'], 'define_front_actions'); $this->def_action('show_search_form', $l['{show_search_form}'], 'show_search_form'); $this->def_action('show_smart_search_form', $l['{show_smart_search_form}'], 'show_smart_search_form'); $this->def_action('show_branch_info', $l['{show_branch_info}'], 'show_branch_info'); //по умолчанию отображает фильтр с учетом настроек фильтра $this->def_action('catalog_filter', $l['{catalog_filter}'], 'catalog_filter'); $this->def_action('catalog_filter_results', $l['{catalog_filter_results}'], array('catfilter')); $this->def_action('catalog_comparsion', $l['{catalog_comparsion}'], array('comparsion', 'delcomparse')); $this->def_action('show_search_results', $l['{show_search_results}'], array('catsearch')); $this->def_action('show_level_catmenu', $l['{show_level_catmenu}'], 'show_level_catmenu'); $this->def_action('show_react_menu', $l['{show_react_menu}'], 'show_react_menu'); $this->def_action('show_category', $l['{show_category}'], 'show_category'); $this->def_action('show_catalog_server', $l['{show_catalog_server}'], array('showcat', 'showobj', 'show')); $this->set_action_priority('show_react_menu', array('show_level_catmenu' => 1)); $this->set_action_priority('show_catalog_server', array('catsearch' => 0, 'catfilter' => 0)); $this->set_action_priority('showcat', array('catalog_filter' => 0)); }
function define_front_actions() { $l = Common::get_module_lang('comments', $_SESSION['lang'], 'define_front_actions'); $this->def_action('show_last_comments', $l['{show_last_comments}'], 'ai_show_selected_banner'); $this->def_action('show_guestbook', $l['{show_guestbook}'], 'ai_show_selected_banner'); }