Ejemplo n.º 1
0
     $uid = $xoopsUser->getVar('uid');
     if ($xoopsUser->isAdmin($xoopsModule->mid())) {
         $nohtml_db = empty($nohtml) ? 0 : 1;
     }
 } else {
     if ($wfsConfig['anonpost'] == 1) {
         $uid = 0;
     } else {
         redirect_header("index.php", 3, _NW_ANONNOTALLOWED);
         exit;
     }
 }
 $story = new WfsArticle();
 $story->setTitle($subject);
 $story->setMainText($message);
 $story->setSummary($summary);
 $story->setUid($uid);
 $story->setCategoryid($id);
 $story->setNohtml($nohtml_db);
 $nosmiley = isset($nosmiley) ? intval($nosmiley) : 0;
 $notifypub = isset($notifypub) ? intval($notifypub) : 0;
 $story->setHtmlpage("");
 $story->setIshtml(0);
 $story->setWeight(100);
 //$story->setGroupid($groupid);
 $story->setGroupid($groupid);
 $story->setNosmiley($nosmiley);
 $story->setPublished(0);
 $story->setExpired(0);
 $story->setNotifyPub($notifypub);
 echo $story->articleid;
Ejemplo n.º 2
0
	$noname = isset($noname) ? intval($noname) : 0;
	$notifypub = isset($notifypub) ? intval($notifypub) : 0;
	themecenterposts($p_subject, $p_message);

	include 'include/storyform.inc.php';
	include XOOPS_ROOT_PATH.'/footer.php';
	break;

// --- post ---
case "post":

	$nosmiley  = isset($nosmiley) ? intval($nosmiley) : 0;

	$article->setTitle($subject);
	$article->setMainText($message);
	$article->setSummary($summary);
	$article->setCategoryid($id);
	$article->setGroupid($groupid);
	$article->setNosmiley($nosmiley);
	$article->setUrl($url);
	$article->setUrlname($urlname);

// no change
//	$article->setNotifyPub($notifypub);
//	$article->setUid($uid);
//	$article->setNohtml($nohtml_db);
//	$article->setHtmlpage("");
//	$article->setIshtml(0);
//	$article->setWeight(100);
//	$article->setPublished(0);
//	$article->setExpired(0);