当前位置: 首页>>代码示例>>PHP>>正文


PHP ITSEC_Core::do_settings_section方法代码示例

本文整理汇总了PHP中ITSEC_Core::do_settings_section方法的典型用法代码示例。如果您正苦于以下问题:PHP ITSEC_Core::do_settings_section方法的具体用法?PHP ITSEC_Core::do_settings_section怎么用?PHP ITSEC_Core::do_settings_section使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ITSEC_Core的用法示例。


在下文中一共展示了ITSEC_Core::do_settings_section方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: metabox_advanced_settings

 /**
  * Render the settings metabox
  *
  * Displays the contents of the module's settings metabox on the "Settings"
  * page with all module options.
  *
  * @since 4.0.0
  *
  * @return void
  */
 public function metabox_advanced_settings()
 {
     echo '<p>' . __('One of the best ways to protect yourself from an attack is to have access to a database backup of your site. If something goes wrong, you can get your site back by restoring the database from a backup and replacing the files with fresh ones. Use the button below to create a backup of your database for this purpose. You can also schedule automated backups and download or delete previous backups.', 'it-l10n-ithemes-security-pro') . '</p>';
     $this->core->do_settings_section('security_page_toplevel_page_itsec_settings', 'backup-settings-2', false);
     $this->core->do_settings_section('security_page_toplevel_page_itsec_settings', 'backup-enabled', false);
     $this->core->do_settings_section('security_page_toplevel_page_itsec_settings', 'backup-settings', false);
     echo '<p>' . PHP_EOL;
     settings_fields('security_page_toplevel_page_itsec_settings');
     echo '<input class="button-primary" name="submit" type="submit" value="' . __('Save All Changes', 'it-l10n-ithemes-security-pro') . '" />' . PHP_EOL;
     echo '</p>' . PHP_EOL;
 }
开发者ID:femgineer,项目名称:website,代码行数:21,代码来源:class-itsec-backup-admin.php

示例2: metabox_advanced_file_change_settings

 /**
  * Render the settings metabox
  *
  * Displays the contents of the module's settings metabox on the "Settings"
  * page with all module options.
  *
  * @since 4.0.0
  *
  * @return void
  */
 public function metabox_advanced_file_change_settings()
 {
     echo '<p>' . __('Even the best security solutions can fail. How do you know if someone gets into your site? You will know because they will change something. File Change detection will tell you what files have changed in your WordPress installation alerting you to changes not made by yourself. Unlike other solutions this plugin will look only at your installation and compare files to the last check instead of comparing them with a remote installation thereby taking into account whether or not you modify the files yourself.', 'it-l10n-better-wp-security') . '</p>';
     echo $this->file_change_form('logs');
     $this->core->do_settings_section('security_page_toplevel_page_itsec_settings', 'file_change-enabled', false);
     $this->core->do_settings_section('security_page_toplevel_page_itsec_settings', 'file_change-settings', false);
     echo '<p>' . PHP_EOL;
     settings_fields('security_page_toplevel_page_itsec_settings');
     echo '<input class="button-primary" name="submit" type="submit" value="' . __('Save All Changes', 'it-l10n-better-wp-security') . '" />' . PHP_EOL;
     echo '</p>' . PHP_EOL;
 }
开发者ID:erikdukker,项目名称:medisom,代码行数:21,代码来源:class-itsec-file-change-admin.php

示例3: metabox_two_factor_settings

 /**
  * Render the settings metabox
  *
  * Displays the contents of the module's settings metabox on the "Pro"
  * page with all module options.
  *
  * @since 1.2.0
  *
  * @return void
  */
 public function metabox_two_factor_settings()
 {
     global $itsec_globals;
     echo '<p>' . __('Allow users to log in with two-factor authentication devices such as Google Authenticator or Authy', 'it-l10n-ithemes-security-pro') . '</p>';
     echo sprintf('<div class="itsec-notice-message"><span>%s: </span> %s <strong>%s</strong> %s <a href="%s">%s</a>.</div>', __('Notice', 'it-l10n-ithemes-security-pro'), __('Please verify your server\'s time is correct before enabling this feature. Your server time must be within 30 seconds of your two-factor device for this to be successful. Your server is reporting the current time as', 'it-l10n-ithemes-security-pro'), date('g:i:s a', $itsec_globals['current_time']), __('This time was taken when this page was loaded and may be old. You may want to refresh this page to verify the correct time. If the time is incorrect please verify your', 'it-l10n-ithemes-security-pro'), admin_url('options-general.php#timezone_string'), __('timezone settings on the WordPress settings page', 'it-l10n-ithemes-security-pro'), __('', 'it-l10n-ithemes-security-pro'));
     $this->core->do_settings_section('security_page_toplevel_page_itsec_pro', 'two_factor-enabled', false);
     $this->core->do_settings_section('security_page_toplevel_page_itsec_pro', 'two_factor-settings', false);
     echo '<p>' . PHP_EOL;
     settings_fields('security_page_toplevel_page_itsec_pro');
     echo '<input class="button-primary" name="submit" type="submit" value="' . __('Save All Changes', 'it-l10n-ithemes-security-pro') . '" />' . PHP_EOL;
     echo '</p>' . PHP_EOL;
 }
开发者ID:femgineer,项目名称:website,代码行数:22,代码来源:class-itsec-two-factor-admin.php

示例4: metabox_advanced_file_change_settings

 /**
  * Render the settings metabox
  *
  * Displays the contents of the module's settings metabox on the "Settings"
  * page with all module options.
  *
  * @since 4.0.0
  *
  * @return void
  */
 public function metabox_advanced_file_change_settings()
 {
     echo '<p>' . __('Even the best security solutions can fail. How do you know if someone gets into your site? You will know because they will change something. File Change detection will tell you what files have changed in your WordPress installation alerting you to changes not made by yourself. Unlike other solutions this plugin will look only at your installation and compare files to the last check instead of comparing them with a remote installation thereby taking into account whether or not you modify the files yourself.', 'better-wp-security') . '</p>';
     if (ITSEC_Lib::get_memory_limit() < 128) {
         echo '<div class="itsec-warning-message">' . __('Warning: Your server has less than 128MB of RAM dedicated to PHP. If you have many files in your installation or a lot of active plugins activating this feature may result in your site becoming disabled with a memory error. See the plugin homepage for more information.', 'better-wp-security') . '</div>';
     }
     echo $this->file_change_form('logs');
     $this->core->do_settings_section('security_page_toplevel_page_itsec_settings', 'file_change-enabled', false);
     $this->core->do_settings_section('security_page_toplevel_page_itsec_settings', 'file_change-settings', false);
     echo '<p>' . PHP_EOL;
     settings_fields('security_page_toplevel_page_itsec_settings');
     echo '<input class="button-primary" name="submit" type="submit" value="' . __('Save All Changes', 'better-wp-security') . '" />' . PHP_EOL;
     echo '</p>' . PHP_EOL;
 }
开发者ID:Garth619,项目名称:DMA-Franconnect-Local,代码行数:24,代码来源:class-itsec-file-change-admin.php

示例5: metabox_two_factor_settings

	/**
	 * Render the settings metabox
	 *
	 * Displays the contents of the module's settings metabox on the "Pro"
	 * page with all module options.
	 *
	 * @since 1.2.0
	 *
	 * @return void
	 */
	public function metabox_two_factor_settings() {

		global $itsec_globals;

		echo '<p>' . sprintf( __( "To allow users to log in with two-factor authentication, enable one or more two-factor providers. Once at least one two-factor provider is enabled, users can configure two-factor authentication from their <a href='%s'>profile</a>.", 'it-l10n-ithemes-security-pro' ), get_edit_profile_url() ) . '</p>';
		echo '<p>' . __( 'If possible, all providers should be enabled. A provider should only be disabled if it will not work properly with your site. For instance, the email provider should not be enabled if your site cannot send emails.', 'it-l10n-ithemes-security-pro' ) . '</p>';

		$this->_core->do_settings_section( 'security_page_toplevel_page_itsec_pro', 'two-factor-providers', false );

		echo '<p>' . PHP_EOL;

		settings_fields( 'security_page_toplevel_page_itsec_pro' );

		echo '<input class="button-primary" name="submit" type="submit" value="' . __( 'Save All Changes', 'it-l10n-ithemes-security-pro' ) . '" />' . PHP_EOL;

		echo '</p>' . PHP_EOL;

	}
开发者ID:helloworld-digital,项目名称:insightvision,代码行数:28,代码来源:class-itsec-two-factor-admin.php


注:本文中的ITSEC_Core::do_settings_section方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。