2004-02-29 09:30:56 +01:00
|
|
|
<?php
|
|
|
|
$title = 'Discussion Options';
|
|
|
|
|
|
|
|
function add_magic_quotes($array) {
|
|
|
|
foreach ($array as $k => $v) {
|
|
|
|
if (is_array($v)) {
|
|
|
|
$array[$k] = add_magic_quotes($v);
|
|
|
|
} else {
|
|
|
|
$array[$k] = addslashes($v);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $array;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!get_magic_quotes_gpc()) {
|
|
|
|
$HTTP_GET_VARS = add_magic_quotes($HTTP_GET_VARS);
|
|
|
|
$HTTP_POST_VARS = add_magic_quotes($HTTP_POST_VARS);
|
|
|
|
$HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);
|
|
|
|
}
|
|
|
|
|
|
|
|
$wpvarstoreset = array('action','standalone', 'option_group_id');
|
|
|
|
for ($i=0; $i<count($wpvarstoreset); $i += 1) {
|
|
|
|
$wpvar = $wpvarstoreset[$i];
|
|
|
|
if (!isset($$wpvar)) {
|
|
|
|
if (empty($HTTP_POST_VARS["$wpvar"])) {
|
|
|
|
if (empty($HTTP_GET_VARS["$wpvar"])) {
|
|
|
|
$$wpvar = '';
|
|
|
|
} else {
|
|
|
|
$$wpvar = $HTTP_GET_VARS["$wpvar"];
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$$wpvar = $HTTP_POST_VARS["$wpvar"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$standalone = 0;
|
|
|
|
include_once('admin-header.php');
|
2004-04-11 10:15:10 +02:00
|
|
|
include('options-head.php');
|
2004-02-29 09:30:56 +01:00
|
|
|
?>
|
2004-04-11 10:15:10 +02:00
|
|
|
|
2004-02-29 09:30:56 +01:00
|
|
|
<div class="wrap">
|
2004-03-11 09:53:05 +01:00
|
|
|
<h2>Discussion Options</h2>
|
|
|
|
<form name="form1" method="post" action="options.php">
|
|
|
|
<input type="hidden" name="action" value="update" />
|
2004-03-25 11:11:58 +01:00
|
|
|
<input type="hidden" name="page_options" value="'default_pingback_flag','default_ping_status','default_comment_status','comments_notify','moderation_notify','comment_moderation','require_name_email','comment_max_links','moderation_keys'" />
|
|
|
|
<h3>Usual settings for an article: <em>(These settings may be overidden for individual articles.)</em></h3>
|
2004-03-11 09:53:05 +01:00
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<label for="default_pingback_flag">
|
|
|
|
<input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked('1', get_settings('default_pingback_flag')); ?> />
|
|
|
|
Attempt to notify any Weblogs linked to from the article. (Slows down posting.)</label>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<label for="default_ping_status">
|
|
|
|
<input name="default_ping_status" type="checkbox" id="default_ping_status" value="open" <?php checked('open', get_settings('default_ping_status')); ?> />
|
|
|
|
Allow link notifications from other Weblogs. (Pingbacks and trackbacks.)</label>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<label for="default_comment_status">
|
|
|
|
<input name="default_comment_status" type="checkbox" id="default_comment_status" value="open" <?php checked('open', get_settings('default_comment_status')); ?> />
|
|
|
|
Allow people to post comments on the article</label>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2004-03-25 11:11:58 +01:00
|
|
|
<h3>Email me whenever:</h3>
|
2004-03-11 09:53:05 +01:00
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<label for="comments_notify">
|
|
|
|
<input name="comments_notify" type="checkbox" id="comments_notify" value="1" <?php checked('1', get_settings('comments_notify')); ?> />
|
|
|
|
Anyone posts a comment </label>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<label for="moderation_notify">
|
|
|
|
<input name="moderation_notify" type="checkbox" id="moderation_notify" value="1" <?php checked('1', get_settings('moderation_notify')); ?> />
|
|
|
|
A comment is approved or declined </label>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2004-03-25 11:11:58 +01:00
|
|
|
<h3>Before a comment appears:</h3>
|
2004-03-11 09:53:05 +01:00
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<label for="comment_moderation">
|
|
|
|
<input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked('1', get_settings('comment_moderation')); ?> />
|
|
|
|
An administrator must approve the comment (regardless of any matches below) </label>
|
|
|
|
</li>
|
|
|
|
<li>
|
2004-03-24 16:13:22 +01:00
|
|
|
<label for="require_name_email">
|
|
|
|
<input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked('1', get_settings('require_name_email')); ?> />
|
2004-03-11 09:53:05 +01:00
|
|
|
User must fill out name and email </label>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2004-03-25 11:11:58 +01:00
|
|
|
<h3>Comment Moderation:</h3>
|
|
|
|
<p>Hold a comment in the queue if it contains more than
|
|
|
|
<input name="comment_max_links" type="text" id="comment_max_links" size="3" value="<?php echo get_settings('comment_max_links'); ?>" />
|
|
|
|
links. (A common characteristic of comment spam is a large number of hyperlinks.)</p>
|
|
|
|
<p>When a comment contains any of these words in its content, name, URI, email, or IP, hold it in the moderation queue: (Seperate multiple words with new lines.) <a href="http://wiki.wordpress.org/index.php/SpamWords">Common spam words</a>.</p>
|
2004-03-11 09:53:05 +01:00
|
|
|
<p>
|
|
|
|
<textarea name="moderation_keys" cols="60" rows="4" id="moderation_keys" style="width: 98%;"><?php echo get_settings('moderation_keys'); ?></textarea>
|
|
|
|
</p>
|
|
|
|
<p style="text-align: right;">
|
|
|
|
<input type="submit" name="Submit" value="Update Options" />
|
|
|
|
</p>
|
|
|
|
</form>
|
2004-02-29 09:30:56 +01:00
|
|
|
</div>
|
|
|
|
<?php include("admin-footer.php") ?>
|