%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/emergentqj/jugement/wp-content/plugins/backup-guard-platinum/public/ajax/
Upload File :
Create Path :
Current File : /home/emergentqj/jugement/wp-content/plugins/backup-guard-platinum/public/ajax/getFileDownloadProgress.php

<?php
	require_once(dirname(__FILE__).'/../boot.php');

	if(backupGuardIsAjax() && count($_POST))
	{
		$file = basename($_POST['file']);
		$size = $_POST['size'];

		if(file_exists(SG_BACKUP_DIRECTORY.$file)) {
			$currentFileSize = backupGuardRealFilesize(SG_BACKUP_DIRECTORY.$file);
			$progress = ($currentFileSize/($size))*100;
		}
		else {
			$progress = 0;
		}

		die(json_encode(array(
			'progress' => $progress
		)));
	}

Zerion Mini Shell 1.0