From: <w4...@us...> - 2003-01-06 17:56:12
|
Update of /cvsroot/xoops/xoops2/modules/mylinks In directory sc8-pr-cvs1:/tmp/cvs-serv8279/modules/mylinks Modified Files: submit.php Log Message: added the submit with bbcodes and smilies in user and admin side Index: submit.php =================================================================== RCS file: /cvsroot/xoops/xoops2/modules/mylinks/submit.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** submit.php 5 Jan 2003 19:17:59 -0000 1.2 --- submit.php 6 Jan 2003 17:55:27 -0000 1.3 *************** *** 34,37 **** --- 34,38 ---- include_once XOOPS_ROOT_PATH."/class/xoopstree.php"; include_once XOOPS_ROOT_PATH."/class/module.errorhandler.php"; + include_once XOOPS_ROOT_PATH."/include/xoopscodes.php"; $eh = new ErrorHandler; //ErrorHandler object *************** *** 61,65 **** } // Check if Description exist ! if ($HTTP_POST_VARS['description']=="") { $eh->show("1008"); } --- 62,66 ---- } // Check if Description exist ! if ($HTTP_POST_VARS['message']=="") { $eh->show("1008"); } *************** *** 72,77 **** $url = $myts->makeTboxData4Save($url); $title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]); ! $email = $myts->makeTboxData4Save($HTTP_POST_VARS["email"]); ! $description = $myts->makeTareaData4Save($HTTP_POST_VARS["description"]); $date = time(); $newid = $xoopsDB->genId($xoopsDB->prefix("mylinks_links")."_lid_seq"); --- 73,78 ---- $url = $myts->makeTboxData4Save($url); $title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]); ! $email = $myts->makeTboxData4Save($HTTP_POST_VARS["email"]); ! $description = $myts->makeTareaData4Save($HTTP_POST_VARS["message"]); $date = time(); $newid = $xoopsDB->genId($xoopsDB->prefix("mylinks_links")."_lid_seq"); *************** *** 93,96 **** --- 94,105 ---- $xoopsOption['template_main'] = 'mylinks_submit.html'; include XOOPS_ROOT_PATH."/header.php"; + ob_start(); + xoopsCodeTarea("message",37,8); + $xoopsTpl->assign('xoops_codes', ob_get_contents()); + ob_end_clean(); + ob_start(); + xoopsSmilies("message"); + $xoopsTpl->assign('xoops_smilies', ob_get_contents()); + ob_end_clean(); $xoopsTpl->assign('lang_submitonce', _MD_SUBMITONCE); $xoopsTpl->assign('lang_allpending', _MD_ALLPENDING); |