Example #1
0
                <TR>
                	<TD ALIGN="left" style="padding-left: 20px;"><?php  putGS("Use CAPTCHA to prevent spam?"); ?>:</td>
                	<td>
                    <input type="checkbox" NAME="f_comments_captcha_enabled" id="captcha_enabled" class="input_checkbox" <?php if (!$commentsEnabled) {?> disabled<?php } ?> <?php if (isset($publicationObj) && $publicationObj->isCaptchaEnabled()) { ?>checked<?php } ?>>
                	</TD>
                </TR>
                <!--<TR>
                	<TD ALIGN="left" style="padding-left: 20px;"><?php  putGS("Enable spam blocking?"); ?>:</td>
                	<td>
                    <input type="checkbox" NAME="f_comments_spam_blocking_enabled" id="spam_blocking_enabled" class="input_checkbox" <?php if (!$commentsEnabled) {?> disabled<?php } ?> <?php if (isset($publicationObj) && $publicationObj->isSpamBlockingEnabled()) { ?>checked<?php } ?>>
                	</TD>
                </TR>-->

                <?php
                if (isset($forum) && is_object($forum)) {
	                $setting = new Phorum_setting('mod_emailcomments', 'S');
    	            $current = $setting->get();
	                $address_to = $current['addresses'][$forum->getForumId()];
	                $address_from = $current['from_addresses'][$forum->getForumId()];
                } else {
                	$address_to = '';
                	$address_from = '';
                }
                ?>
                <TR>
                	<TD ALIGN="left" style="padding-left: 20px;"><?php  putGS("Moderator Address"); ?>:</td>
                	<td>
                    <input type="text" class="input_text" NAME="f_comments_moderator_to" id="moderator_to" value="<?php echo $address_to ?>">
                	</TD>
                </TR>
                <TR>
Example #2
0
	camp_is_publication_conflicting($f_name);
}

if (camp_html_has_msgs()) {
      camp_html_goto_page($backLink);
}

$forum = new Phorum_forum($publicationObj->getForumId());
if (!$forum->exists()) {
	$forum = camp_forum_create($publicationObj);
}
$forum->setName($f_name);
$forum->setIsVisible($f_comments_enabled);
$publicationObj->setPublicComments($f_comments_public_enabled);

$setting = new Phorum_setting('mod_emailcomments', 'S');
if (!$setting->exists()) {
	$setting->create();
}
$setting->update(array('addresses' => array($forum->getForumId() => $f_comments_moderator_to)));
$setting->update(array('from_addresses' => array($forum->getForumId() => $f_comments_moderator_from)));

$columns = array('Name' => $f_name,
				 'IdDefaultAlias' => $f_default_alias,
				 'IdDefaultLanguage' => $f_language,
				 'IdURLType' => $f_url_type,
				 'url_error_tpl_id' => $f_url_error_tpl_id,
                 'TimeUnit' => $f_time_unit,
				 'PaidTime' => $f_paid,
				 'TrialTime' => $f_trial,
				 'UnitCost' => $f_unit_cost,