From: <w4...@us...> - 2003-01-06 17:52:48
|
Update of /cvsroot/xoops/xoops2/modules/mydownloads In directory sc8-pr-cvs1:/tmp/cvs-serv6236/modules/mydownloads 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/mydownloads/submit.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** submit.php 5 Jan 2003 19:16:55 -0000 1.2 --- submit.php 6 Jan 2003 17:52:00 -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"; $myts =& MyTextSanitizer::getInstance(); // MyTextSanitizer object *************** *** 67,71 **** } // Check if Description exist ! if ($HTTP_POST_VARS['description']=="") { $eh->show("1008"); } --- 68,72 ---- } // Check if Description exist ! if ($HTTP_POST_VARS['message']=="") { $eh->show("1008"); } *************** *** 82,86 **** $size = intval($HTTP_POST_VARS["size"]); $platform = $myts->makeTboxData4Save($HTTP_POST_VARS["platform"]); ! $description = $myts->makeTareaData4Save($HTTP_POST_VARS["description"]); $date = time(); $newid = $xoopsDB->genId($xoopsDB->prefix("mydownloads_downloads")."_lid_seq"); --- 83,87 ---- $size = intval($HTTP_POST_VARS["size"]); $platform = $myts->makeTboxData4Save($HTTP_POST_VARS["platform"]); ! $description = $myts->makeTareaData4Save($HTTP_POST_VARS["message"]); $date = time(); $newid = $xoopsDB->genId($xoopsDB->prefix("mydownloads_downloads")."_lid_seq"); *************** *** 104,107 **** --- 105,116 ---- $xoopsOption['template_main'] = 'mydownloads_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); |