getGroups(); }else{ $groups = XOOPS_GROUP_ANONYMOUS; } $module_id = $xoopsModule->getVar('mid'); $gperm_handler =& xoops_gethandler('groupperm'); if($gperm_handler->checkRight($perm_name, $perm_itemid, $groups, $module_id)) { $now_uid=($xoopsUser)?$xoopsUser->uid():""; $myts =& MyTextSanitizer::getInstance(); $sql="select * from ".$xoopsDB->prefix("tad_notes")." where `note_sn`='$note_sn' and `note_public`='1'"; $result=$xoopsDB->query($sql) or redirect_header('index.php', 3, mysql_error()); $doc=$xoopsDB->fetchArray($result); $doc['note_title'] = $myts->htmlSpecialChars($doc['note_title']); $doc['note_date'] = $myts->htmlSpecialChars($doc['note_date']); $doc['note_content'] = $myts->displayTarea($doc['note_content'], 1, 1, 0, 1, 0); $xoopsTpl->assign("note_title",$doc['note_title']); $xoopsTpl->assign("note_date", $doc['note_date']); $xoopsTpl->assign("note_content",$doc['note_content']); }else{ $xoopsTpl->assign("note_title","無觀看權限"); $xoopsTpl->assign("note_date", ""); $xoopsTpl->assign("note_content",""); } } /*** 流程判斷 ***/ $op = empty($_REQUEST['op'])? "" : $_REQUEST['op']; $note_sn = empty($_REQUEST['note_sn'])? "" : intval($_REQUEST['note_sn']); show_doc($note_sn); include_once XOOPS_ROOT_PATH.'/include/comment_view.php'; include_once XOOPS_ROOT_PATH.'/footer.php'; ?> ```
進階搜尋
513人線上 (179人在瀏覽線上書籍)
會員: 0
訪客: 513