if (is_string($result)) { $URL = new URL('wrans'); $URL->insert(array('id' => $result)); header('Location: http://' . DOMAIN . $URL->generate('none'), true, 301); exit; } $PAGE->stripe_start('side', 'comments'); // Display all comments for this ep object. $COMMENTLIST = new COMMENTLIST(); $args['user_id'] = get_http_var('u'); // For highlighting their comments. $args['epobject_id'] = $WRANSLIST->epobject_id(); $COMMENTLIST->display('ep', $args); $PAGE->stripe_end(); $PAGE->stripe_start('side', 'addcomment'); $commentdata = array('epobject_id' => $WRANSLIST->epobject_id(), 'gid' => $WRANSLIST->gid(), 'return_page' => $this_page); $PAGE->comment_form($commentdata); // We show trackbacks on this page. // We need that epobject_id for trackbacks too... // Display comment-adding help if user is logged in. 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', $commentdata); } elseif (get_http_var('y') != '') { // Show a calendar for a particular year's debates. // No date or wrans id. Show recent days with wrans on.