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


PHP DUP_Package::TmpCleanup方法代碼示例

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


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

示例1: duplicator_package_scan

/**
 *  DUPLICATOR_PACKAGE_SCAN
 *  Returns a json scan report object which contains data about the system
 *  
 *  @return json   json report object
 *  @example	   to test: /wp-admin/admin-ajax.php?action=duplicator_package_scan
 */
function duplicator_package_scan()
{
    @set_time_limit(0);
    $errLevel = error_reporting();
    error_reporting(E_ERROR);
    DUP_Util::InitSnapshotDirectory();
    $Package = DUP_Package::GetActive();
    $report = $Package->Scan();
    $Package->SaveActiveItem('ScanFile', $Package->ScanFile);
    $json_response = json_encode($report);
    DUP_Package::TmpCleanup();
    error_reporting($errLevel);
    die($json_response);
}
開發者ID:carlosburbano,項目名稱:lb_009_cchc_saloninmobiliario,代碼行數:21,代碼來源:actions.php

示例2: duplicator_package_scan

/**
 *  DUPLICATOR_PACKAGE_SCAN
 *  Returns a json scan report object which contains data about the system
 *  
 *  @return json   json report object
 *  @example	   to test: /wp-admin/admin-ajax.php?action=duplicator_package_scan
 */
function duplicator_package_scan()
{
    header('Content-Type: application/json;');
    DUP_Util::CheckPermissions('export');
    @set_time_limit(0);
    $errLevel = error_reporting();
    error_reporting(E_ERROR);
    DUP_Util::InitSnapshotDirectory();
    $Package = DUP_Package::GetActive();
    $report = $Package->Scan();
    $Package->SaveActiveItem('ScanFile', $Package->ScanFile);
    $json_response = json_encode($report);
    DUP_Package::TmpCleanup();
    error_reporting($errLevel);
    die($json_response);
}
開發者ID:DylanGroenewoud,項目名稱:PVNG,代碼行數:23,代碼來源:actions.php

示例3: switch

    }
}
$txt_found = DUP_Util::__("File Found");
$txt_not_found = DUP_Util::__("File Removed");
$installer_files = DUP_Server::GetInstallerFiles();
switch ($_GET['action']) {
    case 'installer':
        $action_response = __('Installer file cleanup ran!');
        $css_hide_msg = 'div.error {display:none}';
        break;
    case 'legacy':
        DUP_Settings::LegacyClean();
        $action_response = __('Legacy data removed.');
        break;
    case 'tmp-cache':
        DUP_Package::TmpCleanup(true);
        $action_response = __('Build cache removed.');
        break;
}
?>

<style type="text/css">
	<?php 
echo isset($css_hide_msg) ? $css_hide_msg : '';
?>
	div.success {color:#4A8254}
	div.failed {color:red}
	table.dup-reset-opts td:first-child {font-weight: bold}
	table.dup-reset-opts td {padding:10px}
	form#dup-settings-form {padding: 0px 10px 0px 10px}
	a.dup-fixed-btn {min-width: 150px; text-align: center}
開發者ID:davidHuanghw,項目名稱:david_blog,代碼行數:31,代碼來源:cleanup.php


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