Uname:Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64

Base Dir : /var/www/html

User : gavin


403WebShell
403Webshell
Server IP : 68.183.124.220  /  Your IP : 216.73.217.137
Web Server : Apache/2.4.18 (Ubuntu)
System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User : gavin ( 1000)
PHP Version : 7.0.33-0ubuntu0.16.04.16
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 : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/wp-content/plugins/wp-statistics/includes/settings/tabs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/wp-statistics/includes/settings/tabs/wps-maintenance.php
<?php
if ( $wps_nonce_valid ) {

	$wps_option_list = array(
		'wps_schedule_dbmaint',
		'wps_schedule_dbmaint_days',
		'wps_schedule_dbmaint_visitor',
		'wps_schedule_dbmaint_visitor_hits',
	);

	foreach ( $wps_option_list as $option ) {
		$new_option = str_replace( "wps_", "", $option );
		if ( array_key_exists( $option, $_POST ) ) {
			$value = $_POST[ $option ];
		} else {
			$value = '';
		}
		$WP_Statistics->store_option( $new_option, $value );
	}
}

?>
    <script type="text/javascript">
        function DBMaintWarning() {
            var checkbox = jQuery('#wps_schedule_dbmaint');

            if (checkbox.attr('checked') == 'checked') {
                if (!confirm('<?php _e( 'This will permanently delete data from the database each day, are you sure you want to enable this option?', 'wp-statistics' ); ?>'))
                    checkbox.attr('checked', false);
            }


        }
    </script>
    <table class="form-table">
        <tbody>
        <tr valign="top">
            <th scope="row" colspan="2"><h3><?php _e( 'Purge Old Data Daily', 'wp-statistics' ); ?></h3></th>
        </tr>

        <tr valign="top">
            <th scope="row">
                <label for="wps_schedule_dbmaint"><?php _e( 'Enabled:', 'wp-statistics' ); ?></label>
            </th>

            <td>
                <input id="wps_schedule_dbmaint" type="checkbox"
                       name="wps_schedule_dbmaint" <?php echo $WP_Statistics->get_option( 'schedule_dbmaint' ) == true
					? "checked='checked'" : ''; ?> onclick='DBMaintWarning();'>
                <label for="wps_schedule_dbmaint"><?php _e( 'Enable', 'wp-statistics' ); ?></label>

                <p class="description"><?php _e(
						'A WP Cron job will be run daily to purge any data older than a set number of days.',
						'wp-statistics'
					); ?></p>
            </td>
        </tr>

        <tr valign="top">
            <th scope="row">
                <label for="wps_schedule_dbmaint_days"><?php _e( 'Purge data older than:', 'wp-statistics' ); ?></label>
            </th>

            <td>
                <input type="text" class="small-text code" id="wps_schedule_dbmaint_days"
                       name="wps_schedule_dbmaint_days" value="<?php echo htmlentities(
					$WP_Statistics->get_option( 'schedule_dbmaint_days', "365" ),
					ENT_QUOTES
				); ?>"/>
				<?php _e( 'Days', 'wp-statistics' ); ?>
                <p class="description"><?php echo __(
						'The number of days to keep statistics for.',
						'wp-statistics'
					) . ' ' . __(
						'Minimum value is 30 days.',
						'wp-statistics'
					) . ' ' . __(
						'Invalid values will disable the daily maintenance.',
						'wp-statistics'
					); ?></p>
            </td>
        </tr>

        <tr valign="top">
            <th scope="row" colspan="2"><h3><?php _e( 'Purge High Hit Count Visitors Daily', 'wp-statistics' ); ?></h3>
            </th>
        </tr>

        <tr valign="top">
            <th scope="row">
                <label for="wps_schedule_dbmaint_visitor"><?php _e( 'Enabled:', 'wp-statistics' ); ?></label>
            </th>

            <td>
                <input id="wps_schedule_dbmaint_visitor" type="checkbox"
                       name="wps_schedule_dbmaint_visitor" <?php echo $WP_Statistics->get_option(
					'schedule_dbmaint_visitor'
				) == true ? "checked='checked'" : ''; ?> onclick='DBMaintWarning();'>
                <label for="wps_schedule_dbmaint_visitor"><?php _e( 'Enable', 'wp-statistics' ); ?></label>

                <p class="description"><?php _e(
						'A WP Cron job will be run daily to purge any users statistics data where the user has more than the defined number of hits in a day (aka they are probably a bot).',
						'wp-statistics'
					); ?></p>
            </td>
        </tr>

        <tr valign="top">
            <th scope="row">
                <label for="wps_schedule_dbmaint_visitor_hits"><?php _e(
						'Purge visitors with more than:',
						'wp-statistics'
					); ?></label>
            </th>

            <td>
                <input type="text" class="small-text code" id="wps_schedule_dbmaint_visitor_hits"
                       name="wps_schedule_dbmaint_visitor_hits" value="<?php echo htmlentities(
					$WP_Statistics->get_option( 'schedule_dbmaint_visitor_hits', '50' ),
					ENT_QUOTES
				); ?>"/>
				<?php _e( 'Hits', 'wp-statistics' ); ?>
                <p class="description"><?php echo __(
						'The number of hits required to delete the visitor.',
						'wp-statistics'
					) . ' ' . __(
						'Minimum value is 10 hits.',
						'wp-statistics'
					) . ' ' . __(
						'Invalid values will disable the daily maintenance.',
						'wp-statistics'
					); ?></p>
            </td>
        </tr>

        </tbody>
    </table>

<?php submit_button( __( 'Update', 'wp-statistics' ), 'primary', 'submit' );

Youez - 2016 - github.com/yon3zu
LinuXploit