/** * */ $myts =& MyTextSanitizer::getInstance(); $tribe_title = $myts->displayTarea($_POST['tribe_title'], 0, 1, 1, 1, 1); $tribe_desc = $myts->displayTarea($_POST['tribe_desc'], 0, 1, 1, 1, 1); $tribe_img = !empty($_POST['tribe_img']) ? $_POST['tribe_img'] : ""; $path_upload = XOOPS_ROOT_PATH . "/uploads"; $pictwidth = $xoopsModuleConfig['resized_width']; $pictheight = $xoopsModuleConfig['resized_height']; $thumbwidth = $xoopsModuleConfig['thumb_width']; $thumbheight = $xoopsModuleConfig['thumb_height']; $maxfilebytes = $xoopsModuleConfig['maxfilesize']; $maxfileheight = $xoopsModuleConfig['max_original_height']; $maxfilewidth = $xoopsModuleConfig['max_original_width']; if ($tribes_factory->receiveTribe($tribe_title, $tribe_desc, '', $path_upload, $maxfilebytes, $maxfilewidth, $maxfileheight)) { $reltribeuser = $reltribeuser_factory->create(); $reltribeuser->setVar('rel_tribe_id', $xoopsDB->getInsertId()); $reltribeuser->setVar('rel_user_uid', $xoopsUser->getVar('uid')); $reltribeuser_factory->insert($reltribeuser); redirect_header("tribes.php", 500, _MD_YOGURT_TRIBE_CREATED); } else { $tribes_factory->renderFormSubmit(120000, $xoopsTpl); } } else { $tribes_factory->renderFormSubmit(120000, $xoopsTpl); } /** * Close page */ include "../../footer.php";