當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ITSEC_Core::get_backup_creation_page_url方法代碼示例

本文整理匯總了PHP中ITSEC_Core::get_backup_creation_page_url方法的典型用法代碼示例。如果您正苦於以下問題:PHP ITSEC_Core::get_backup_creation_page_url方法的具體用法?PHP ITSEC_Core::get_backup_creation_page_url怎麽用?PHP ITSEC_Core::get_backup_creation_page_url使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ITSEC_Core的用法示例。


在下文中一共展示了ITSEC_Core::get_backup_creation_page_url方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: render_settings

    protected function render_settings($form)
    {
        ?>
	<div class="itsec-warning-message"><?php 
        printf(__('<span>Warning:</span> The changes made by this tool could cause compatibility issues with some plugins, themes, or customizations. Ensure that you <a href="%s">create a database backup</a> before using this tool.', 'better-wp-security'), esc_url(ITSEC_Core::get_backup_creation_page_url()));
        ?>
</div>
	
	<table class="form-table itsec-settings-section">
		<?php 
        if (username_exists('admin')) {
            ?>
			<tr>
				<th scope="row"><label for="itsec-admin-user-new_username"><?php 
            _e('New Admin Username', 'better-wp-security');
            ?>
</label></th>
				<td>
					<?php 
            $form->add_text('new_username', array('class' => 'code'));
            ?>
					<br />
					<p class="description"><?php 
            _e('Enter a new username to replace "admin." Please note that if you are logged in as admin you will have to log in again.', 'better-wp-security');
            ?>
</p>
				</td>
			</tr>
		<?php 
        }
        ?>
		<?php 
        if (ITSEC_Lib::user_id_exists(1)) {
            ?>
			<tr>
				<th scope="row"><label for="itsec-admin-user-change_id"><?php 
            _e('Change User ID 1', 'better-wp-security');
            ?>
</label></th>
				<td>
					<?php 
            $form->add_checkbox('change_id');
            ?>
					<label for="itsec-admin-user-change_id"><?php 
            _e('Change the ID of the user with ID 1.', 'better-wp-security');
            ?>
</label>
				</td>
			</tr>
		<?php 
        }
        ?>
	</table>
<?php 
    }
開發者ID:Garth619,項目名稱:Femi9,代碼行數:55,代碼來源:settings-page.php

示例2: render_description

    protected function render_description($form)
    {
        ?>
	<p><?php 
        _e('By default, WordPress assigns the prefix <code>wp_</code> to all tables in the database where your content, users, and objects exist. For potential attackers, this means it is easier to write scripts that can target WordPress databases as all the important table names for 95% of sites are already known. Changing the <code>wp_</code> prefix makes it more difficult for tools that are trying to take advantage of vulnerabilities in other places to affect the database of your site. <strong>Before using this tool, we strongly recommend creating a backup of your database.</strong>', 'better-wp-security');
        ?>
</p>
	<p><?php 
        _e('Note: The use of this tool requires quite a bit of system memory which may be more than some hosts can handle. If you back your database up you can\'t do any permanent damage but without a proper backup you risk breaking your site and having to perform a rather difficult fix.', 'better-wp-security');
        ?>
</p>
	<div class="itsec-warning-message"><?php 
        printf(__('<span>WARNING: </span><a href="%1$s">Backup your database</a> before using this tool.', 'better-wp-security'), ITSEC_Core::get_backup_creation_page_url());
        ?>
</div>
<?php 
    }
開發者ID:Garth619,項目名稱:Femi9,代碼行數:17,代碼來源:settings-page.php


注:本文中的ITSEC_Core::get_backup_creation_page_url方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。