����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
require_once(dirname(__FILE__).'/SGState.php');
class SGUploadState extends SGState
{
private $activeDirectory = '';
private $currentUploadChunksCount = 0;
private $totalUploadChunksCount = 0;
private $uploadId = 0;
private $chunkSize = 0;
private $parts = array();
private $storageType = null;
private $backupId = null;
private $profileId = null;
function __construct()
{
$this->type = SG_STATE_TYPE_UPLOAD;
}
public function setBackupId($backupId)
{
$this->backupId = $backupId;
}
public function getBackupId()
{
return $this->backupId;
}
public function setProfileId($profileId)
{
$this->profileId = $profileId;
}
public function getProfileId()
{
return $this->profileId;
}
public function setActiveDirectory($activeDirectory)
{
$this->activeDirectory = $activeDirectory;
}
public function setCurrentUploadChunksCount($currentUploadChunksCount)
{
$this->currentUploadChunksCount = $currentUploadChunksCount;
}
public function setTotalUploadChunksCount($totalUploadChunksCount)
{
$this->totalUploadChunksCount = $totalUploadChunksCount;
}
public function setUploadId($uploadId)
{
$this->uploadId = $uploadId;
}
public function setParts($parts)
{
$this->parts = $parts;
}
public function setStorageType($storageType)
{
$this->storageType = $storageType;
}
public function getStorageType()
{
return $this->storageType;
}
public function getCurrentUploadChunksCount()
{
return $this->currentUploadChunksCount;
}
public function getTotalUploadChunksCount()
{
return $this->totalUploadChunksCount;
}
public function getUploadId()
{
return $this->uploadId;
}
public function getParts()
{
return $this->parts;
}
public function getChunkSize(){
return $this->chunkSize;
}
public function setChunkSize($chunkSize){
$this->chunkSize = $chunkSize;
}
public function getActiveDirectory()
{
return $this->activeDirectory;
}
public function init($stateJson)
{
$this->type = $stateJson['type'];
$this->parts = $stateJson['parts'];
$this->offset = $stateJson['offset'];
$this->action = $stateJson['action'];
$this->uploadId = $stateJson['uploadId'];
$this->actionId = $stateJson['actionId'];
$this->progress = $stateJson['progress'];
$this->backupId = $stateJson['backupId'];
$this->profileId = $stateJson['profileId'];
$this->inprogress = $stateJson['inprogress'];
$this->storageType = $stateJson['storageType'];
$this->actionStartTs = $stateJson['actionStartTs'];
$this->warningsFound = $stateJson['warningsFound'];
$this->backupFileName = $stateJson['backupFileName'];
$this->backupFilePath = $stateJson['backupFilePath'];
$this->activeDirectory = $stateJson['activeDirectory'];
$this->chunkSize = $stateJson['chunkSize'];
$this->pendingStorageUploads = $stateJson['pendingStorageUploads'];
$this->totalUploadChunksCount = $stateJson['totalUploadChunksCount'];
$this->currentUploadChunksCount = $stateJson['currentUploadChunksCount'];
return $this;
}
public function save()
{
file_put_contents(SG_BACKUP_DIRECTORY.SG_STATE_FILE_NAME, json_encode(array(
'type' => $this->type,
'parts' => $this->parts,
'token' => $this->token,
'offset' => $this->offset,
'action' => $this->action,
'uploadId' => $this->uploadId,
'chunkSize' => $this->chunkSize,
'actionId' => $this->actionId,
'progress' => $this->progress,
'backupId' => $this->backupId,
'profileId' => $this->profileId,
'inprogress' => $this->inprogress,
'storageType' => $this->storageType,
'actionStartTs' => $this->actionStartTs,
'warningsFound' => $this->warningsFound,
'backupFileName' => $this->backupFileName,
'backupFilePath' => $this->backupFilePath,
'activeDirectory' => $this->activeDirectory,
'pendingStorageUploads' => $this->pendingStorageUploads,
'totalUploadChunksCount' => $this->totalUploadChunksCount,
'currentUploadChunksCount' => $this->currentUploadChunksCount
)));
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| BackupGuard | Folder | 0755 |
|
|
| Dropbox | Folder | 0755 |
|
|
| Request | Folder | 0755 |
|
|
| SGArchive.php | File | 21.39 KB | 0644 |
|
| SGAuthClient.php | File | 6.68 KB | 0644 |
|
| SGCallback.php | File | 870 B | 0644 |
|
| SGCdrEntry.php | File | 1.01 KB | 0644 |
|
| SGCharsetHandler.php | File | 2.37 KB | 0644 |
|
| SGDBState.php | File | 2.95 KB | 0644 |
|
| SGEntry.php | File | 155 B | 0644 |
|
| SGFileEntry.php | File | 917 B | 0644 |
|
| SGFileState.php | File | 4.42 KB | 0644 |
|
| SGMigrateState.php | File | 1.17 KB | 0644 |
|
| SGMysqldump.php | File | 45.07 KB | 0644 |
|
| SGReloadHandler.php | File | 804 B | 0644 |
|
| SGReloader.php | File | 2.27 KB | 0644 |
|
| SGReloaderState.php | File | 1.2 KB | 0644 |
|
| SGReviewManager.php | File | 12.04 KB | 0644 |
|
| SGState.php | File | 3.21 KB | 0644 |
|
| SGStatsRequests.php | File | 1.81 KB | 0644 |
|
| SGUploadHandler.php | File | 905 B | 0644 |
|
| SGUploadState.php | File | 4.04 KB | 0644 |
|