Beispiel #1
0
    } else {
        $args['sort'] = "regexp_replace";
        $GLOSSARY = new GLOSSARY($args);
    }
    $WMSLIST = new WMSLIST();
    $result = $WMSLIST->display('gid', $args);
    if (is_string($result)) {
        $URL = new URL('wms');
        $URL->insert(array('id' => $result));
        header('Location: http://' . DOMAIN . $URL->generate('none'), true, 301);
        exit;
    }
    $PAGE->stripe_start('side', 'comments');
    $COMMENTLIST = new COMMENTLIST();
    $args['user_id'] = get_http_var('u');
    $args['epobject_id'] = $WMSLIST->epobject_id();
    $COMMENTLIST->display('ep', $args);
    $PAGE->stripe_end();
    $PAGE->stripe_start('side', 'addcomment');
    $commendata = array('epobject_id' => $WMSLIST->epobject_id(), 'gid' => get_http_var('id'), 'return_page' => $this_page);
    $PAGE->comment_form($commendata);
    if ($THEUSER->isloggedin()) {
        $sidebar = array(array('type' => 'include', 'content' => 'comment'));
        $PAGE->stripe_end($sidebar);
    } else {
        $PAGE->stripe_end();
    }
    #	$TRACKBACK = new TRACKBACK;
    #	$TRACKBACK->display('epobject_id', $commendata);
} else {
    // No date or debate id. Show recent WMS.