-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomment_new.php
More file actions
29 lines (28 loc) · 930 Bytes
/
comment_new.php
File metadata and controls
29 lines (28 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* New comment form
*
* This file holds the configuration information of this module
*
* @copyright Madfish (Simon Wilkinson)
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
* @since 1.0
* @author Madfish (Simon Wilkinson) <simon@isengard.biz>
* @package network
* @version $Id$
*/
include_once "header.php";
$com_itemid = isset($_GET["com_itemid"]) ? (int)$_GET["com_itemid"] : 0;
if ($com_itemid > 0) {
$network_post_handler = icms_getModuleHandler("post", basename(dirname(__FILE__)), "network");
$postObj = $network_post_handler->get($com_itemid);
if ($postObj && !$postObj->isNew()) {
$com_replytext = "test...";
$bodytext = $postObj->getPostLead();
if ($bodytext != "") {
$com_replytext .= "<br /><br />".$bodytext;
}
$com_replytitle = $postObj->getVar("post_title");
include_once ICMS_ROOT_PATH . "/include/comment_new.php";
}
}