$weightopic = intval($weightopic) + 1; $aliastopic = change_alias($rowcontent['topictext']); $query = "INSERT INTO `" . NV_PREFIXLANG . "_" . $module_data . "_topics` (`topicid`, `title`, `alias`, `description`, `image`, `thumbnail`, `weight`, `keywords`, `add_time`, `edit_time`) VALUES (NULL, " . $db->dbescape($rowcontent['topictext']) . ", " . $db->dbescape($aliastopic) . ", " . $db->dbescape($rowcontent['topictext']) . ", '', '', " . $db->dbescape($weightopic) . ", " . $db->dbescape($rowcontent['topictext']) . ", UNIX_TIMESTAMP( ), UNIX_TIMESTAMP( ))"; $rowcontent['topicid'] = $db->sql_query_insert_id($query); } if (!empty($rowcontent['sourcetext'])) { list($weight) = $db->sql_fetchrow($db->sql_query("SELECT max(`weight`) FROM `" . NV_PREFIXLANG . "_" . $module_data . "_sources`")); $weight = intval($weight) + 1; $query = "INSERT INTO `" . NV_PREFIXLANG . "_" . $module_data . "_sources` (`sourceid`, `title`, `link`, `logo`, `weight`, `add_time`, `edit_time`) VALUES (NULL, " . $db->dbescape($rowcontent['sourcetext']) . ", '', '', " . $db->dbescape($weight) . ", UNIX_TIMESTAMP( ), UNIX_TIMESTAMP( ))"; $rowcontent['sourceid'] = $db->sql_query_insert_id($query); } if ($rowcontent['keywords'] == "") { if ($rowcontent['hometext'] != "") { $rowcontent['keywords'] = nv_content_keywords($rowcontent['hometext']); } else { $rowcontent['keywords'] = nv_content_keywords($rowcontent['bodytext']); } } $rowcontent['status'] = $nv_Request->isset_request('status1', 'post') ? 1 : 0; // Xu ly anh minh ha $rowcontent['homeimgthumb'] = ""; if (!nv_is_url($rowcontent['homeimgfile']) and file_exists(NV_DOCUMENT_ROOT . $rowcontent['homeimgfile'])) { $lu = strlen(NV_BASE_SITEURL . NV_UPLOADS_DIR . "/" . $module_name . "/"); $rowcontent['homeimgfile'] = substr($rowcontent['homeimgfile'], $lu); } elseif (!nv_is_url($rowcontent['homeimgfile'])) { $rowcontent['homeimgfile'] = ""; } $check_thumb = false; if ($rowcontent['id'] > 0) { list($homeimgfile, $homeimgthumb) = $db->sql_fetchrow($db->sql_query("SELECT `homeimgfile`, `homeimgthumb` FROM `" . NV_PREFIXLANG . "_" . $module_data . "_rows` WHERE `id`=" . $rowcontent['id'] . "")); if ($rowcontent['homeimgfile'] != $homeimgfile) {
<?php /** * @Project NUKEVIET 3.0 * @Author VINADES.,JSC (contact@vinades.vn) * @Copyright (C) 2010 VINADES.,JSC. All rights reserved * @Createdate 2-10-2010 18:49 */ if (!defined('NV_IS_FILE_ADMIN')) { die('Stop!!!'); } $content = filter_text_input('content', 'post', '', 1); //echo $keywords; die; //echo $content;die; $keywords = nv_content_keywords($content); //echo $keywords;die; include NV_ROOTDIR . "/includes/header.php"; echo $keywords; include NV_ROOTDIR . "/includes/footer.php";