Esempio n. 1
0
             $body .= "\n" . _DATE . ": " . formatTimestamp(time(), 'm', $xoopsConfig['default_TZ']);
             $body .= "\n\n" . XOOPS_URL . '/modules/wfsection/admin/index.php?op=edit&articleid=' . $result;
             $xoopsMailer->setBody($body);
             $xoopsMailer->send();
         }
     } else {
         echo 'error';
     }
     redirect_header("index.php", 2, _WFS_THANKS);
     break;
 case "edit":
     include_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->dirname() . "/class/wfscategory.php";
     include_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->dirname() . "/class/wfsarticle.php";
     $story = new WfsArticle('articleid');
     $subject = $story->title();
     $message = $story->mainText();
     $summary = $story->summary("Edit");
     $url = $story->url();
     $urlname = $story->urlname();
     //$story->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->setGroupid($groupid);
     //$story->setNosmiley($nosmiley);
     //$story->setPublished(0);
     //$story->setExpired(0);
     //$story->setNotifyPub($notifypub);