Location: PHPKode > projects > XBR > mastop_publish/comment_new.php
<?php
### =============================================================
### Mastop InfoDigital - Paixão por Internet
### =============================================================
### Novo Comentário
### =============================================================
### Developer: Fernando Santos (topet05), hide@address.com
### Copyright: Mastop InfoDigital © 2003-2007
### -------------------------------------------------------------
### www.mastop.com.br
### =============================================================
### $Id: comment_new.php,v 1.2 2007/05/08 21:22:12 topet05 Exp $
### =============================================================
include '../../mainfile.php';
include_once "header.php";
if (!defined('XOOPS_ROOT_PATH') || !is_object($xoopsModule)) {
	exit();
}
include_once XOOPS_ROOT_PATH.'/include/comment_constants.php';
if ('system' != $xoopsModule->getVar('dirname') && XOOPS_COMMENT_APPROVENONE == $xoopsModuleConfig['com_rule']) {
	exit();
}
include_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/comment.php';
include XOOPS_ROOT_PATH.'/header.php';
include_once XOOPS_ROOT_PATH."/modules/".MPU_MOD_DIR."/class/mpu_mpb_mpublish.class.php";
$com_itemid = isset($_GET['com_itemid']) ? intval($_GET['com_itemid']) : 0;
$mpu_classe = new mpu_mpb_mpublish($com_itemid);
$com_replytitle = $mpu_classe->getVar("mpb_30_titulo");
if (isset($com_replytitle)) {
	if (isset($com_replytext)) {
		themecenterposts($com_replytitle, $com_replytext);
	}
	$myts =& MyTextSanitizer::getInstance();
	$com_title = $myts->htmlSpecialChars($com_replytitle);
	if (!preg_match("/^(Re|"._CM_RE."):/i", $com_title)) {
		$com_title = _CM_RE.": ".xoops_substr($com_title, 0, 56);
	}
} else {
	$com_title = '';
}
$com_mode = isset($_GET['com_mode']) ? htmlspecialchars(trim($_GET['com_mode']), ENT_QUOTES) : '';
if ($com_mode == '') {
	if (is_object($xoopsUser)) {
		$com_mode = $xoopsUser->getVar('umode');
	} else {
		$com_mode = $xoopsConfig['com_mode'];
	}
}

if (!isset($_GET['com_order'])) {
	if (is_object($xoopsUser)) {
		$com_order = $xoopsUser->getVar('uorder');
	} else {
		$com_order = $xoopsConfig['com_order'];
	}
} else {
	$com_order = intval($_GET['com_order']);
}
$com_id = 0;
$noname = 0;
$dosmiley = 1;
$dohtml = 0;
$dobr = 1;
$doxcode = 1;
$com_icon = '';
$com_pid = 0;
$com_rootid = 0;
$com_text = '';
if ($xoopsModuleConfig['mpu_conf_captcha']) {
	require('include/captcha/php-captcha.inc.php');
	if (isset($_SESSION[CAPTCHA_SESSION_ID])) {
		unset($_SESSION[CAPTCHA_SESSION_ID]);
	}
}
include XOOPS_ROOT_PATH."/modules/".MPU_MOD_DIR."/include/comment_form.php";
include XOOPS_ROOT_PATH.'/footer.php';

?>
Return current item: XBR