<?php /** * @Project NUKEVIET 4.x * @Author VINADES.,JSC (contact@vinades.vn) * @Copyright (C) 2014 VINADES.,JSC. All rights reserved * @License GNU/GPL version 2 or any later version * @Createdate 2-10-2010 18:49 */ if (!defined('NV_IS_FILE_ADMIN')) { die('Stop!!!'); } if (!defined('NV_IS_AJAX')) { die('Wrong URL'); } $contents = nv_show_topics_list(); include NV_ROOTDIR . '/includes/header.php'; echo $contents; include NV_ROOTDIR . '/includes/footer.php';
} $array['topicid'] = $nv_Request->get_int('topicid', 'get', 0); if ($array['topicid'] > 0) { list($array['topicid'], $array['title'], $array['alias'], $array['image'], $array['description'], $array['keywords']) = $db->sql_fetchrow($db->sql_query("SELECT `topicid`, `title`, `alias`, `image`, `description`, `keywords` FROM `" . NV_PREFIXLANG . "_" . $module_data . "_topics` where `topicid`=" . $array['topicid'] . "")); $lang_module['add_topic'] = $lang_module['edit_topic']; } if (is_file(NV_ROOTDIR . '/' . NV_UPLOADS_DIR . "/" . $module_name . "/topics/" . $array['image'])) { $array['image'] = NV_BASE_SITEURL . NV_UPLOADS_DIR . "/" . $module_name . "/topics/" . $array['image']; } $xtpl = new XTemplate("topics.tpl", NV_ROOTDIR . "/themes/" . $global_config['module_theme'] . "/modules/" . $module_file); $xtpl->assign('LANG', $lang_module); $xtpl->assign('GLANG', $lang_global); $xtpl->assign('NV_BASE_ADMINURL', NV_BASE_ADMINURL); $xtpl->assign('NV_NAME_VARIABLE', NV_NAME_VARIABLE); $xtpl->assign('MODULE_NAME', $module_name); $xtpl->assign('OP', $op); $xtpl->assign('UPLOADS_DIR', NV_UPLOADS_DIR . '/' . $module_name . '/topics'); $xtpl->assign('DATA', $array); $xtpl->assign('TOPIC_LIST', nv_show_topics_list()); if (!empty($error)) { $xtpl->assign('ERROR', $error); $xtpl->parse('main.error'); } if (empty($array['alias'])) { $xtpl->parse('main.getalias'); } $xtpl->parse('main'); $contents = $xtpl->text('main'); include NV_ROOTDIR . "/includes/header.php"; echo nv_admin_theme($contents); include NV_ROOTDIR . "/includes/footer.php";