HEX
Server: Apache/2.4.46 (Ubuntu)
System: Linux localhost 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64
User: root (0)
PHP: 7.4.16
Disabled: 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/dooblo.cccinfotech.com/wp-content/plugins/disable-json-api/admin.php
<div class="wrap">
    <h1><?php esc_html_e( "Disable REST API", "disable-json-api" ); ?></h1>
	<?php settings_errors( 'DRA-notices' ); ?>

    <p><?php esc_html_e( "By default, this plugin ensures that the entire REST API is protected from non-authenticated users. You may use this page to specify which endpoints should be allowed to behave as normal.", "disable-json-api" ); ?></p>
    <p>
        <strong><?php esc_html_e( "IMPORTANT NOTE:", "disable-json-api" ); ?></strong> <?php esc_html_e( "Checking a box merely restores default functionality to an endpoint. Other authentication and/or permissions may still be required for access, or other themes/plugins may also affect access to those endpoints.", "disable-json-api" ); ?>
    </p>

    <hr/>

    <div id="select-container">
        <?php esc_html_e( "Rules for", "disable-json-api" ); ?>: <select name="role" id="dra-role">
            <option value="none"><?php esc_html_e( "Unauthenticated Users", "disable-json-api" ); ?></option>
			<?php
			$role = ( isset( $_GET['role'] ) ) ? $_GET['role'] : 'none';
			wp_dropdown_roles( $role );
			?>
        </select>
    </div>

    <hr/>

    <form method="post" action="" id="DRA_form">
		<?php wp_nonce_field( 'DRA_admin_nonce' ); ?>
        <input type="hidden" name="role" value="<?php echo esc_attr( $role ); ?>">

        <div id="default-allow-container">
			<?php DRA_Admin::display_role_default_allow( $role ); ?>
        </div>

        <hr/>

        <div id="route-container">
			<?php DRA_Admin::display_route_checkboxes( $role ); ?>
            <hr/>
        </div>

        <div id="button-container">
            <?php submit_button(); ?>
            <input type="submit" name="reset" id="dra-reset-button"
                   value="<?php esc_attr_e( "Reset Allowed List of Routes", "disable-json-api" ); ?>"
                   onclick="return confirm('<?php esc_attr_e( "Are you sure you wish to reset all allowed routes for this user role?", "disable-json-api" ); ?>');">
        </div>

    </form>

</div>