File: /www/wwwroot/www.cytocare.cn/wp-content/plugins/security-safe/core/admin/pages/AdminPagePrivacy.php
<?php
	namespace SovereignStack\SecuritySafe;
	// Prevent Direct Access
	( defined( 'ABSPATH' ) ) || die;
	/**
	 * Class AdminPagePrivacy
	 * @package SecuritySafe
	 * @since  0.2.0
	 */
	class AdminPagePrivacy extends AdminPage {
		/**
		 * This populates all the metaboxes for this specific page.
		 *
		 * @return string
		 *
		 * @since  0.2.0
		 */
		function tab_settings() {
			$html = '';
			// Shutoff Switch - All Privacy Policies
			$classes = ( $this->page_settings['on'] ) ? '' : 'notice-warning';
			$rows = $this->form_select(
				$this->page_settings,
				__( 'Privacy Policies', SECSAFE_TRANSLATE ),
				'on',
				[ '0' => __( 'Disabled', SECSAFE_TRANSLATE ), '1' => __( 'Enabled', SECSAFE_TRANSLATE ) ],
				__( 'If you experience a problem, you may want to temporarily turn off all privacy policies at once to troubleshoot the issue.', SECSAFE_TRANSLATE ),
				$classes );
			$html .= $this->form_table( $rows );
			// Source Code Versions ================
			$html .= $this->form_section(
				__( 'Software Privacy', SECSAFE_TRANSLATE ),
				__( 'It is important to conceal what versions of software you are using.', SECSAFE_TRANSLATE )
			);
			// WordPress Version
			$classes = '';
			$rows = $this->form_checkbox(
				$this->page_settings,
				__( 'WordPress Version', SECSAFE_TRANSLATE ),
				'wp_generator',
				__( 'Hide WordPress Version Publicly', SECSAFE_TRANSLATE ),
				__( 'WordPress leaves little public footprints about the version of your site in multiple places visible to the public. This feature removes the WordPress version from the generator tag and RSS feed.', SECSAFE_TRANSLATE ),
				$classes,
				false );
			$classes = '';
			$rows .= $this->form_checkbox(
				$this->page_settings,
				'',
				'wp_version_admin_footer',
				__( 'Hide WordPress Version in Admin Footer', SECSAFE_TRANSLATE ),
				__( 'WordPress places the version number at the bottom of the WP-Admin screen.', SECSAFE_TRANSLATE ),
				$classes,
				false );
			// Script Versions
			$classes = '';
			$rows .= $this->form_checkbox(
				$this->page_settings,
				__( 'Script Versions', SECSAFE_TRANSLATE ),
				'hide_script_versions',
				__( 'Hide Script Versions', SECSAFE_TRANSLATE ),
				__( 'This replaces all script versions appended to the enqueued JS and CSS files with the current date (YYYYMMDD).', SECSAFE_TRANSLATE ),
				$classes,
				false );
			$rows .= '<tr><td colspan="2">' . sprintf( __( '<i>NOTICE: You can also <a href="%s">deny access to files</a> that disclose software versions.</i>', SECSAFE_TRANSLATE ), admin_url( 'admin.php?page='.SECSAFE_SLUG.'-files#file-access' ) ) . '</td></tr>';
			$html .= $this->form_table( $rows );
			// Website Privacy ================
			$html .= $this->form_section(
				__( 'Website Privacy', SECSAFE_TRANSLATE ),
				__( 'Do not share unnecessary information about your website.', SECSAFE_TRANSLATE )
			);
			// Website Information
			$classes = '';
			$rows    = $this->form_checkbox(
				$this->page_settings,
				__( 'Website Information', SECSAFE_TRANSLATE ),
				'http_headers_useragent',
				__( 'Make Website Anonymous', SECSAFE_TRANSLATE ),
				__( 'When checking for updates, WordPress gets access to your current version and your website URL. The default info looks like this: "WordPress/X.X; https://www.your-website.com" This feature removes your URL address from the information sent.', SECSAFE_TRANSLATE ),
				$classes,
				false );
			$html .= $this->form_table( $rows );
			// Save Button ================
			$html .= $this->button( __( 'Save Settings', SECSAFE_TRANSLATE ) );
			return $html;
		}
		/**
		 * This sets the variables for the page.
		 *
		 * @since  0.1.0
		 */
		protected function set_page() {
			$this->slug        = SECSAFE_SLUG . '-privacy';
			$this->title       = __( 'Privacy', SECSAFE_TRANSLATE );
			$this->description = __( 'Anonymity is one of your fundamental rights. Embody it in principle.', SECSAFE_TRANSLATE );
			$this->tabs[] = [
				'id'               => 'settings',
				'label'            => __( 'Settings', SECSAFE_TRANSLATE ),
				'title'            => __( 'Privacy Settings', SECSAFE_TRANSLATE ),
				'heading'          => false,
				'intro'            => false,
				'content_callback' => 'tab_settings',
			];
		}
	}