$xoopsTpl->assign('lang_item', _MD_SSECTION_OTHER_ITEMS); $xoopsTpl->assign('lang_postedby', _MD_SSECTION_POSTEDBY); $xoopsTpl->assign('lang_on', _MD_SSECTION_ON); $xoopsTpl->assign('lang_datesub', _MD_SSECTION_DATESUB); $xoopsTpl->assign('lang_hitsdetail', _MD_SSECTION_HITSDETAIL); $xoopsTpl->assign('lang_reads', _MD_SSECTION_READS); $xoopsTpl->assign('lang_comments', _MD_SSECTION_COMMENTS); $xoopsTpl->assign('lang_files_linked', _MD_SSECTION_FILES_LINKED); $xoopsTpl->assign('lang_file_name', _MD_SSECTION_FILENAME); $xoopsTpl->assign('lang_file_type', _MD_SSECTION_FILE_TYPE); $xoopsTpl->assign('lang_hits', _MD_SSECTION_HITS); $xoopsTpl->assign('lang_download_file', _MD_SSECTION_DOWNLOAD_FILE); $xoopsTpl->assign('lang_page', _MD_SSECTION_PAGE); $xoopsTpl->assign('lang_previous_item', _MD_SSECTION_PREVIOUS_ITEM); $xoopsTpl->assign('lang_next_item', _MD_SSECTION_NEXT_ITEM); $xoopsTpl->assign('module_home', smartsection_module_home($xoopsModuleConfig['linkedPath'])); $xoopsTpl->assign('categoryPath', $item['categoryPath'] . " > " . $item['title']); $xoopsTpl->assign('commentatarticlelevel', $xoopsModuleConfig['commentatarticlelevel']); $xoopsTpl->assign('com_rule', smartsection_getConfig('com_rule')); $xoopsTpl->assign('lang_items_links', _MD_SSECTION_ITEMS_LINKS); $xoopsTpl->assign('previous_item_link', $previous_item_link); $xoopsTpl->assign('next_item_link', $next_item_link); $xoopsTpl->assign('previous_item_url', $previous_item_url); $xoopsTpl->assign('next_item_url', $next_item_url); $xoopsTpl->assign('other_items', $xoopsModuleConfig['other_items_type']); $itemFooter = smartsection_getConfig('itemfooter'); $itemFooter = $myts->displayTarea($itemFooter); $xoopsTpl->assign('itemfooter', $itemFooter); // tags support if (smartsection_tag_module_included()) { include_once XOOPS_ROOT_PATH . "/modules/tag/include/tagbar.php";
} if ($itemid == 0) { redirect_header("index.php", 2, _MD_SSECTION_NOITEMSELECTED); exit; } else { $itemObj =& new SmartsectionItem($itemid); } $false = false; switch ($op) { case "uploadfile": smartsection_upload_file(false, true, $false); exit; break; case "uploadanother": smartsection_upload_file(true, false, $false); exit; break; case 'form': default: $xoopsOption['template_main'] = 'smartsection_addfile.html'; include_once XOOPS_ROOT_PATH . "/header.php"; include_once "footer.php"; $name = $xoopsUser ? ucwords($xoopsUser->getVar("uname")) : 'Anonymous'; $xoopsTpl->assign('module_home', smartsection_module_home()); $xoopsTpl->assign('categoryPath', _MD_SSECTION_ADD_FILE); $xoopsTpl->assign('lang_intro_title', sprintf(_MD_SSECTION_ADD_FILE_TITLE, $smartsection_moduleName)); $xoopsTpl->assign('lang_intro_text', _MD_SSECTION_GOODDAY . "<b>{$name}</b>, " . sprintf(_MD_SSECTION_ADD_FILE_INTRO, $itemObj->title())); include_once 'include/fileform.inc.php'; include_once XOOPS_ROOT_PATH . '/footer.php'; break; }