$poster = $_POST['poster'];
$message = $_POST['message'];
if (isset($_GET['parent'])) {
    $parent = $_GET['parent'];
} else {
    $parent = $_POST['parent'];
}
if (!$area) {
    $area = 1;
}
if (!$error) {
    if (!$parent) {
        $parent = 0;
        if (!$title) {
            $title = 'NEW POST';
        }
    } else {
        //get post name
        $title = 'Re: ' . $title;
    }
    //make sure titile will still fit in db
    $title = substr($title, 0, 20);
    //prepend a quoting pattern to the post you are replying to
    $message = add_quoting(get_post_message($parent));
}
do_html_header($title);
display_new_post_form($parent, $area, $title, $message, $poster);
if ($error) {
    echo "<p>Your message was not stored.</p>\n\t\t\t<p>Make sure you have filled in all fields and try again.</p>";
}
do_html_footer();
    $parent = $_POST['parent'];
}
if (!$area) {
    $area = 1;
}
if (!$error) {
    if (!$parent) {
        $parent = 0;
        if (!$title) {
            $title = 'New Post';
        }
    } else {
        // get post name
        $title = get_post_title($parent);
        // append Re:
        if (strstr($title, 'Re: ') == false) {
            $title = 'Re: ' . $title;
        }
        //make sure title will still fit in db
        $title = substr($title, 0, 20);
        //prepend a quoting pattern to the post you are replying to
        $message = add_quoting(get_post_message($parent));
    }
}
//  do_html_header($title);
//  display_tree($chapterid,$_SESSION['expended']);
display_new_post_form($courseid, $poster, $parent, $area, $message);
if ($error) {
    echo "<p>Your message was not stored.</p>\n           <p>Make sure you have filled in all fields and try again.</p>";
}
//  do_html_footer();
Beispiel #3
0
    if ($_GET['expand'] == 'all') {
        expand_all($_SESSION['expanded']);
    } else {
        $_SESSION['expanded'][$_GET['expand']] = true;
    }
}
// check if a collapse button was pressed
// collapse might equal all or a postid or not be set
if (isset($_GET['collapse'])) {
    if ($_GET['collapse'] == 'all') {
        $_SESSION['expanded'] = array();
    } else {
        unset($_SESSION['expanded'][$_GET['collapse']]);
    }
}
//  global  $CHAPTERID;
//  echo $CHAPTERID;
display_index_toolbar();
//  echo $USER;
// echo $CHAPTERID;
// display the tree view of conversations
display_tree($COURSEID, $_SESSION['expanded'], $USER);
display_new_post_form($COURSEID, $USER);
//}
?>
<table  width="100%">
<tr>
  <td height="80" style="text-align:center;font-family:微软雅黑;font-size:20px;">&#169; 版权所有 | 设计者 &nbsp;烫烫烫烫的130</td>
</tr>
</table>
    $parent = $_POST['parent'];
}
if (!$area) {
    $area = 1;
}
if (!$error) {
    if (!$parent) {
        $parent = 0;
        if (!$title) {
            $title = 'New Post';
        }
    } else {
        // get post name
        $title = get_post_title($parent);
        // append Re:
        if (strstr($title, 'Re: ') == false) {
            $title = 'Re: ' . $title;
        }
        //make sure title will still fit in db
        $title = substr($title, 0, 20);
        //prepend a quoting pattern to the post you are replying to
        $message = add_quoting(get_post_message($parent));
    }
}
//  do_html_header($title);
//  display_tree($chapterid,$_SESSION['expended']);
display_new_post_form($chapterid, $poster, $parent, $area, $message);
if ($error) {
    echo "<p>Your message was not stored.</p>\n           <p>Make sure you have filled in all fields and try again.</p>";
}
//  do_html_footer();
Beispiel #5
0
    if ($_GET['expand'] == 'all') {
        expand_all($_SESSION['expanded']);
    } else {
        $_SESSION['expanded'][$_GET['expand']] = true;
    }
}
// check if a collapse button was pressed
// collapse might equal all or a postid or not be set
if (isset($_GET['collapse'])) {
    if ($_GET['collapse'] == 'all') {
        $_SESSION['expanded'] = array();
    } else {
        unset($_SESSION['expanded'][$_GET['collapse']]);
    }
}
//  global  $CHAPTERID;
//  echo $CHAPTERID;
display_index_toolbar();
//  echo $USER;
// echo $CHAPTERID;
// display the tree view of conversations
display_tree($CHAPTERID, $_SESSION['expanded'], $USER);
display_new_post_form($CHAPTERID, $USER);
//}
?>
<table width="100%">
<tr>
  <td height="80" style="text-align:center;font-family:微软雅黑;font-size:20px;">&#169; 版权所有 | 设计者 &nbsp;烫烫烫烫的130</td>
</tr>
</table>