-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcomment_new.php
More file actions
executable file
·29 lines (28 loc) · 987 Bytes
/
comment_new.php
File metadata and controls
executable file
·29 lines (28 loc) · 987 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 The ImpressCMS Project
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
* @since 1.0
* @author Rodrigo P Lima aka TheRplima <therplima@impresscms.org>
* @package content
* @version $Id$
*/
include_once "header.php";
$com_itemid = isset($_GET["com_itemid"]) ? (int)$_GET["com_itemid"] : 0;
if ($com_itemid > 0) {
$content_content_handler = icms_getModuleHandler("content", basename(__DIR__), "content");
$contentObj = $content_content_handler->get($com_itemid);
if ($contentObj && !$contentObj->isNew()) {
$com_replytext = "test...";
$bodytext = $contentObj->getContentLead();
if ($bodytext != "") {
$com_replytext .= "<br /><br />".$bodytext."";
}
$com_replytitle = $contentObj->getVar("content_title");
include_once ICMS_ROOT_PATH . "/include/comment_new.php";
}
}