本文整理匯總了PHP中backupbuddy_core::verifyAjaxAccess方法的典型用法代碼示例。如果您正苦於以下問題:PHP backupbuddy_core::verifyAjaxAccess方法的具體用法?PHP backupbuddy_core::verifyAjaxAccess怎麽用?PHP backupbuddy_core::verifyAjaxAccess使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類backupbuddy_core
的用法示例。
在下文中一共展示了backupbuddy_core::verifyAjaxAccess方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: explode
<?php
backupbuddy_core::verifyAjaxAccess();
// File restorer (actual unzip/restore) in the file restore page.
/* restore_file_restore()
*
* AJAX page for thickbox for restoring a file from inside an archive..
*
*/
$files = pb_backupbuddy::_GET('files');
// file to extract.
$files_array = explode(',', $files);
$files = array();
foreach ($files_array as $file) {
if (substr($file, -1) == '/') {
// If directory then add wildcard.
$file = $file . '*';
}
$files[$file] = $file;
}
unset($files_array);
pb_backupbuddy::$ui->ajax_header(true, false);
// js, no padding
?>
<style>html { background: inherit !important; }</style>
<script type="text/javascript">
function pb_status_append( json ) {
if( 'undefined' === typeof statusBox ) { // No status box yet so may need to create it.
statusBox = jQuery( '#backupbuddy_messages' );
if( statusBox.length == 0 ) { // No status box yet so suppress.