Esempio n. 1
0
						</a>						
					</td>
				</tr>
			<?php 
        }
        ?>
			<?php 
        $totalSize = $totalSize + $pack_archive_size;
        $rowCount++;
    }
    ?>
	<tfoot>
		<tr>
			<th colspan="4">					
				<?php 
    echo DUP_UI::ShowRandomAffilateLink();
    ?>
			</th>
			<th colspan="7" style='text-align:right; font-size:12px'>						
				<?php 
    echo _e("Packages", 'duplicator') . ': ' . $totalElements;
    ?>
 |
				<?php 
    echo _e("Total Size", 'duplicator') . ': ' . DUP_Util::ByteSize($totalSize);
    ?>
 
			</th>
		</tr>
	</tfoot>
	</table>
Esempio n. 2
0
phpinfo();
$serverinfo = ob_get_contents();
ob_end_clean();
$serverinfo = preg_replace('%^.*<body>(.*)</body>.*$%ms', '$1', $serverinfo);
$serverinfo = preg_replace('%^.*<title>(.*)</title>.*$%ms', '$1', $serverinfo);
$action_response = null;
$dbvar_maxtime = DUP_Util::MysqlVariableValue('wait_timeout');
$dbvar_maxpacks = DUP_Util::MysqlVariableValue('max_allowed_packet');
$dbvar_maxtime = is_null($dbvar_maxtime) ? __("unknow", 'wpduplicator') : $dbvar_maxtime;
$dbvar_maxpacks = is_null($dbvar_maxpacks) ? __("unknow", 'wpduplicator') : $dbvar_maxpacks;
$space = @disk_total_space(DUPLICATOR_WPROOTPATH);
$space_free = @disk_free_space(DUPLICATOR_WPROOTPATH);
$perc = @round(100 / $space * $space_free, 2);
$mysqldumpPath = DUP_Database::GetMySqlDumpPath();
$mysqlDumpSupport = $mysqldumpPath ? $mysqldumpPath : 'Path Not Found';
$view_state = DUP_UI::GetViewStateArray();
$ui_css_srv_panel = isset($view_state['dup-settings-diag-srv-panel']) && $view_state['dup-settings-diag-srv-panel'] ? 'display:block' : 'display:none';
$ui_css_opts_panel = isset($view_state['dup-settings-diag-opts-panel']) && $view_state['dup-settings-diag-opts-panel'] ? 'display:block' : 'display:none';
//POST BACK
$action_updated = null;
if (isset($_POST['action'])) {
    $action_result = DUP_Settings::DeleteWPOption($_POST['action']);
    switch ($_POST['action']) {
        case 'duplicator_settings':
            $action_response = __('Plugin settings reset.', 'wpduplicator');
            break;
        case 'duplicator_ui_view_state':
            $action_response = __('View state settings reset.', 'wpduplicator');
            break;
        case 'duplicator_package_active':
            $action_response = __('Active package settings reset.', 'wpduplicator');
Esempio n. 3
0
<?php

$notice01 = DUP_UI::GetViewStateValue('dup-notice01-chk');
?>

<div id='dup-list-alert-nodata'>
	<b><i class="fa fa-archive"></i> 
		<?php 
_e("No Packages Found.", 'wpduplicator');
?>
<br/>
		<?php 
_e("Click the 'Create New' tab to build a package.", 'wpduplicator');
?>
 <br/><br/>
	</b>
	<i>
		<?php 
printf("%s <a href='admin.php?page=duplicator-support'>%s</a> %s", __("Please visit the", 'wpduplicator'), __("support section", 'wpduplicator'), __("for additional help topics", 'wpduplicator'));
?>
	</i>
	
	<!-- NOTICE01: 0.5.0 and above -->
	<?php 
if (!$notice01) {
    ?>
		<div id="dup-notice-01" class='dup-notice-msg'>
			<i class="fa fa-exclamation-triangle fa-lg"></i>
			<?php 
    _e("Older packages prior to 0.5.0 are no longer supported in this version.", 'wpduplicator');
    printf("  %s <a href='admin.php?page=duplicator-support'>%s</a> %s", __("To get an older package please visit the", 'wpduplicator'), __("support page", 'wpduplicator'), __("and look for the Change Log link for additional instructions.", 'wpduplicator'));