2004-02-29 03:30:56 -05:00
< ? php
2004-04-20 23:00:44 -04:00
require_once ( '../wp-includes/wp-l10n.php' );
2004-02-29 03:30:56 -05:00
$title = 'Discussion Options' ;
2004-04-19 04:09:27 -04:00
$parent_file = 'options-general.php' ;
2004-02-29 03:30:56 -05:00
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 ()) {
2004-04-20 18:56:47 -04:00
$_GET = add_magic_quotes ( $_GET );
$_POST = add_magic_quotes ( $_POST );
$_COOKIE = add_magic_quotes ( $_COOKIE );
2004-02-29 03:30:56 -05:00
}
$wpvarstoreset = array ( 'action' , 'standalone' , 'option_group_id' );
for ( $i = 0 ; $i < count ( $wpvarstoreset ); $i += 1 ) {
$wpvar = $wpvarstoreset [ $i ];
if ( ! isset ( $$wpvar )) {
2004-04-20 18:56:47 -04:00
if ( empty ( $_POST [ " $wpvar " ])) {
if ( empty ( $_GET [ " $wpvar " ])) {
2004-02-29 03:30:56 -05:00
$$wpvar = '' ;
} else {
2004-04-20 18:56:47 -04:00
$$wpvar = $_GET [ " $wpvar " ];
2004-02-29 03:30:56 -05:00
}
} else {
2004-04-20 18:56:47 -04:00
$$wpvar = $_POST [ " $wpvar " ];
2004-02-29 03:30:56 -05:00
}
}
}
$standalone = 0 ;
include_once ( 'admin-header.php' );
2004-04-11 04:15:10 -04:00
include ( 'options-head.php' );
2004-02-29 03:30:56 -05:00
?>
2004-04-11 04:15:10 -04:00
2004-02-29 03:30:56 -05:00
< div class = " wrap " >
2004-04-20 23:00:44 -04:00
< h2 >< ? php _e ( 'Discussion Options' ) ?> </h2>
2004-03-11 03:53:05 -05:00
< form name = " form1 " method = " post " action = " options.php " >
< input type = " hidden " name = " action " value = " update " />
2004-03-25 05:11:58 -05: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' " />
2004-04-15 05:15:56 -04:00
< fieldset class = " options " >
2004-04-21 17:38:38 -04:00
< legend >< ? php _e ( 'Usual settings for an article: <em>(These settings may be overridden for individual articles.)</em>' ) ?> </legend>
2004-03-11 03:53:05 -05: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' )); ?> />
2004-04-20 23:00:44 -04:00
< ? php _e ( 'Attempt to notify any Weblogs linked to from the article (slows down posting.)' ) ?> </label>
2004-03-11 03:53:05 -05:00
</ 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' )); ?> />
2004-04-20 23:00:44 -04:00
< ? php _e ( 'Allow link notifications from other Weblogs (pingbacks and trackbacks.)' ) ?> </label>
2004-03-11 03:53:05 -05:00
</ 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' )); ?> />
2004-04-20 23:00:44 -04:00
< ? php _e ( 'Allow people to post comments on the article' ) ?> </label>
2004-03-11 03:53:05 -05:00
</ li >
</ ul >
2004-04-15 05:15:56 -04:00
</ fieldset >
< fieldset class = " options " >
2004-04-20 23:00:44 -04:00
< legend >< ? php _e ( 'Email me whenever:' ) ?> </legend>
2004-03-11 03:53:05 -05: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' )); ?> />
2004-04-20 23:00:44 -04:00
< ? php _e ( 'Anyone posts a comment' ) ?> </label>
2004-03-11 03:53:05 -05:00
</ li >
< li >
< label for = " moderation_notify " >
< input name = " moderation_notify " type = " checkbox " id = " moderation_notify " value = " 1 " < ? php checked ( '1' , get_settings ( 'moderation_notify' )); ?> />
2004-04-20 23:00:44 -04:00
< ? php _e ( 'A comment is approved or declined' ) ?> </label>
2004-03-11 03:53:05 -05:00
</ li >
</ ul >
2004-04-15 05:15:56 -04:00
</ fieldset >
< fieldset class = " options " >
2004-04-20 23:00:44 -04:00
< legend >< ? php _e ( 'Before a comment appears:' ) ?> </legend>
2004-03-11 03:53:05 -05: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' )); ?> />
2004-04-20 23:00:44 -04:00
< ? php _e ( 'An administrator must approve the comment (regardless of any matches below)' ) ?> </label>
2004-03-11 03:53:05 -05:00
</ li >
< li >
2004-03-24 10:13:22 -05: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-04-20 23:00:44 -04:00
< ? php _e ( 'User must fill out name and email' ) ?> </label>
2004-03-11 03:53:05 -05:00
</ li >
</ ul >
2004-04-15 05:15:56 -04:00
</ fieldset >
2004-04-14 17:23:52 -04:00
< fieldset class = " options " >
2004-04-20 23:00:44 -04:00
< legend >< ? php _e ( 'Comment Moderation' ) ?> </legend>
< p >< ? php printf ( __ ( 'Hold a comment in the queue if it contains more than %s links. (A common characteristic of comment spam is a large number of hyperlinks.)' ), '<input name="comment_max_links" type="text" id="comment_max_links" size="3" value="' . get_settings ( 'comment_max_links' ) . '" />' ) ?> </p>
2004-04-21 17:38:38 -04:00
< p >< ? php _e ( 'When a comment contains any of these words in its content, name, URI, email, or IP, hold it in the moderation queue: (Separate multiple words with new lines.) <a href="http://wiki.wordpress.org/index.php/SpamWords">Common spam words</a>.' ) ?> </p>
2004-03-11 03:53:05 -05:00
< p >
2004-04-15 05:15:56 -04:00
< textarea name = " moderation_keys " cols = " 60 " rows = " 4 " id = " moderation_keys " style = " width: 98%; font-size: 12px; " class = " code " >< ? php echo get_settings ( 'moderation_keys' ); ?> </textarea>
2004-03-11 03:53:05 -05:00
</ p >
2004-04-14 17:23:52 -04:00
</ fieldset >
2004-03-11 03:53:05 -05:00
< p style = " text-align: right; " >
2004-04-20 23:00:44 -04:00
< input type = " submit " name = " Submit " value = " <?php _e('Update Options') ?> " />
2004-03-11 03:53:05 -05:00
</ p >
</ form >
2004-02-29 03:30:56 -05:00
</ div >
< ? php include ( " admin-footer.php " ) ?>