本文整理匯總了PHP中pb_backupbuddy::nonce_url方法的典型用法代碼示例。如果您正苦於以下問題:PHP pb_backupbuddy::nonce_url方法的具體用法?PHP pb_backupbuddy::nonce_url怎麽用?PHP pb_backupbuddy::nonce_url使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pb_backupbuddy
的用法示例。
在下文中一共展示了pb_backupbuddy::nonce_url方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: network_admin_url
if (is_multisite()) {
$admin_url = network_admin_url('admin.php');
} else {
$admin_url = admin_url('admin.php');
}
?>
<h3><?php
_e('Disconnect from Stash Live', 'it-l10n-backupbuddy');
?>
</h3>
<?php
_e('Please authenticate with your iThemes Member Login to validate your access and disconnect this site from Stash Live.', 'it-l10n-backupbuddy');
?>
<br><br>
<form method="post" action="<?php
echo pb_backupbuddy::nonce_url($admin_url . '?page=pb_backupbuddy_live&live_action=disconnect');
?>
">
<input type="hidden" name="disconnect" value="yes">
<table>
<tr>
<td>iThemes Username:</td>
<td><input type="text" name="username" value="<?php
echo $destination_settings['itxapi_username'];
?>
" disabled="disabled"></td>
</tr>
<tr>
<td>iThemes Password:</td>
<td><input type="password" name="password"></td>
</tr>
示例2: urlencode
files displayed.</b><br><br>
<?php
if ($backup_count >= $settings['max_filelist_keys']) {
?>
<?php
if ('' != pb_backupbuddy::_GET('marker')) {
?>
<a href="<?php
echo pb_backupbuddy::page_url();
?>
&live_action=view_files&marker=<?php
echo urlencode(pb_backupbuddy::_GET('back'));
?>
" class="button button-secondary button-tertiary">Previous Page</a>
<?php
}
?>
<a href="<?php
echo pb_backupbuddy::nonce_url(pb_backupbuddy::page_url() . '&live_action=view_files_tables&marker=' . urlencode($marker) . '&back=' . urlencode(pb_backupbuddy::_GET('marker')));
?>
" class="button button-secondary button-tertiary">Next Page</a>
<?php
}
?>
</center>
<?php
echo '<br style="clear: both;">';
return;