-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcomment_new.php
More file actions
30 lines (28 loc) · 985 Bytes
/
comment_new.php
File metadata and controls
30 lines (28 loc) · 985 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
30
<?php
/**
* New comment form
*
* @copyright INBOX International
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
* @since 1.0
* @author Rodrigo Pereira Lima <rodrigo@inboxinternational.com>
* @package imfaq
* @version $Id$
*/
include_once 'header.php';
$com_itemid = isset($_GET['com_itemid']) ? intval($_GET['com_itemid']) : 0;
if ($com_itemid > 0) {
$imfaq_faq_handler = icms_getModuleHandler('faq');
$faqObj = $imfaq_faq_handler->get($com_itemid);
$faq = $faqObj->toArray();
if ($faqObj && !$faqObj->isNew()) {
$com_replytext = _POSTEDBY.' <b>'.icms_getLinkedUnameFromId($faq['faq_uid']) . '</b> '._DATE.' <b>'.$faq['faq_published_date'].'</b>';
$bodytext = $faq['faq_teaser'];
if ($bodytext != '') {
$com_replytext .= '<br /><br />'.$bodytext.'';
}
$com_replytitle = strip_tags($faq['faq_title']);
include_once ICMS_ROOT_PATH .'/include/comment_new.php';
}
}
?>