} if (isset($module_config['seotools']['prcservice']) and !empty($module_config['seotools']['prcservice']) and $rowcontent['status'] == 1 and $rowcontent['publtime'] < NV_CURRENTTIME + 1 and ($rowcontent['exptime'] == 0 or $rowcontent['exptime'] > NV_CURRENTTIME + 1)) { Header('Location: ' . NV_BASE_ADMINURL . 'index.php?' . NV_LANG_VARIABLE . '=' . NV_LANG_DATA . '&' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=rpc&id=' . $rowcontent['id'] . '&rand=' . nv_genpass()); die; } else { $url = NV_BASE_ADMINURL . 'index.php?' . NV_LANG_VARIABLE . '=' . NV_LANG_DATA . '&' . NV_NAME_VARIABLE . '=' . $module_name; $msg1 = $lang_module['content_saveok']; $msg2 = $lang_module['content_main'] . ' ' . $module_info['custom_title']; redriect($msg1, $msg2, $url, $module_data . '_detail'); } } } else { $url = 'javascript: history.go(-1)'; $msg1 = implode('<br />', $error); $msg2 = $lang_module['content_back']; redriect($msg1, $msg2, $url, $module_data . '_detail', 'back'); } $id_block_content = $id_block_content_post; } $rowcontent['hometext'] = nv_htmlspecialchars(nv_br2nl($rowcontent['hometext'])); $rowcontent['bodyhtml'] = htmlspecialchars(nv_editor_br2nl($rowcontent['bodyhtml'])); $rowcontent['alias'] = ($rowcontent['status'] == 4 and empty($rowcontent['title'])) ? '' : $rowcontent['alias']; if (!empty($rowcontent['homeimgfile']) and file_exists(NV_UPLOADS_REAL_DIR . '/' . $module_upload . '/' . $rowcontent['homeimgfile'])) { $rowcontent['homeimgfile'] = NV_BASE_SITEURL . NV_UPLOADS_DIR . '/' . $module_upload . '/' . $rowcontent['homeimgfile']; } $array_catid_in_row = explode(',', $rowcontent['listcatid']); $array_topic_module = array(); $array_topic_module[0] = $lang_module['topic_sl']; if (!empty($rowcontent['topicid'])) { $db->sqlreset()->select('topicid, title')->from(NV_PREFIXLANG . '_' . $module_data . '_topics')->where('topicid=' . $rowcontent['topicid']); $result = $db->query($db->sql());
} if (isset($module_config['seotools']['prcservice']) and !empty($module_config['seotools']['prcservice']) and $rowcontent['status'] == 1 and $rowcontent['publtime'] < NV_CURRENTTIME + 1 and ($rowcontent['exptime'] == 0 or $rowcontent['exptime'] > NV_CURRENTTIME + 1)) { Header('Location: ' . NV_BASE_ADMINURL . 'index.php?' . NV_LANG_VARIABLE . '=' . NV_LANG_DATA . '&' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=rpc&id=' . $rowcontent['id'] . '&rand=' . nv_genpass()); die; } else { $url = NV_BASE_ADMINURL . 'index.php?' . NV_LANG_VARIABLE . '=' . NV_LANG_DATA . '&' . NV_NAME_VARIABLE . '=' . $module_name; $msg1 = $lang_module['content_saveok']; $msg2 = $lang_module['content_main'] . ' ' . $module_info['custom_title']; redriect($msg1, $msg2, $url, $module_data . '_bodyhtml'); } } } else { $url = 'javascript: history.go(-1)'; $msg1 = implode('<br />', $error); $msg2 = $lang_module['content_back']; redriect($msg1, $msg2, $url, $module_data . '_bodyhtml', 'back'); } $id_block_content = $id_block_content_post; } $rowcontent['hometext'] = nv_htmlspecialchars(nv_br2nl($rowcontent['hometext'])); $rowcontent['bodyhtml'] = htmlspecialchars(nv_editor_br2nl($rowcontent['bodyhtml'])); if (!empty($rowcontent['homeimgfile']) and file_exists(NV_UPLOADS_REAL_DIR . '/' . $module_upload . '/img/' . $rowcontent['homeimgfile'])) { $rowcontent['homeimgfile'] = NV_BASE_SITEURL . NV_UPLOADS_DIR . '/' . $module_upload . '/img/' . $rowcontent['homeimgfile']; } if (!empty($rowcontent['vid_path']) and file_exists(NV_UPLOADS_REAL_DIR . '/' . $module_upload . '/vid/' . $rowcontent['vid_path'])) { $rowcontent['vid_path'] = NV_BASE_SITEURL . NV_UPLOADS_DIR . '/' . $module_upload . '/vid/' . $rowcontent['vid_path']; } $array_catid_in_row = explode(',', $rowcontent['listcatid']); $sql = 'SELECT sourceid, title FROM ' . NV_PREFIXLANG . '_' . $module_data . '_sources ORDER BY weight ASC'; $result = $db->query($sql); $array_source_module = array();
} if (isset($module_config['seotools']['prcservice']) and !empty($module_config['seotools']['prcservice']) and $rowcontent['status'] == 1 and $rowcontent['publtime'] < NV_CURRENTTIME + 1 and ($rowcontent['exptime'] == 0 or $rowcontent['exptime'] > NV_CURRENTTIME + 1)) { Header('Location: ' . NV_BASE_ADMINURL . 'index.php?' . NV_LANG_VARIABLE . '=' . NV_LANG_DATA . '&' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=rpc&id=' . $rowcontent['id'] . '&rand=' . nv_genpass()); die; } else { $url = NV_BASE_ADMINURL . 'index.php?' . NV_LANG_VARIABLE . '=' . NV_LANG_DATA . '&' . NV_NAME_VARIABLE . '=' . $module_name; $msg1 = $lang_module['content_saveok']; $msg2 = $lang_module['content_main'] . ' ' . $module_info['custom_title']; redriect($msg1, $msg2, $url, $module_data . '_bodyhtml'); } } } else { $url = 'javascript: history.go(-1)'; $msg1 = implode('<br />', $error); $msg2 = $lang_module['content_back']; redriect($msg1, $msg2, $url); } $id_block_content = $id_block_content_post; } $rowcontent['hometext'] = nv_htmlspecialchars(nv_br2nl($rowcontent['hometext'])); $rowcontent['bodyhtml'] = htmlspecialchars(nv_editor_br2nl($rowcontent['bodyhtml'])); if (!empty($rowcontent['homeimgfile']) and file_exists(NV_UPLOADS_REAL_DIR . '/' . $module_upload . '/' . $rowcontent['homeimgfile'])) { $rowcontent['homeimgfile'] = NV_BASE_SITEURL . NV_UPLOADS_DIR . '/' . $module_upload . '/' . $rowcontent['homeimgfile']; } $array_catid_in_row = explode(',', $rowcontent['listcatid']); $db->sqlreset()->select('topicid, title')->from(NV_PREFIXLANG . '_' . $module_data . '_topics')->order('weight ASC')->limit(100); $result = $db->query($db->sql()); $array_topic_module = array(); $array_topic_module[0] = $lang_module['topic_sl']; while (list($topicid_i, $title_i) = $result->fetch(3)) { $array_topic_module[$topicid_i] = $title_i;