Exemple #1
0
        break;
    }
    //if($storyid==0 && isset($_POST['storyid'])) {
 	//	$storyid=intval($_POST['storyid']);
   	//}
    $story = new nw_NewsStory($storyid);
    if (!$gperm_handler->checkRight('nw_view', $story->topicid(), $groups, $module_id)) {
        redirect_header(NW_MODULE_URL . '/index.php', 0, _NOPERM);
        exit();
    }
    echo"<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class=\"odd\">";
    echo '<h4>' . _AM_NW_EDITARTICLE . '</h4>';
    $title = $story->title('Edit');
    $hometext = $story->hometext('Edit');
    $bodytext = $story->bodytext('Edit');
    $nohtml = $story->nohtml();
    $nosmiley = $story->nosmiley();
    $description = $story->description();
    $keywords = $story->keywords();
    $ihome = $story->ihome();
    $newsauthor=$story->uid();
    $topicid = $story->topicid();
    $notifypub = $story->notifypub();
    $picture = $story->picture();
    $approve = 0;
    $published = $story->published();
    if (isset($published) && $published > 0) {
        $approve = 1;
    }
    if ( $story -> published() != 0) {
        $published = $story->published();